Skip to content

Commit

Permalink
ipvscript-collect
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeOwlu committed Jun 11, 2024
1 parent 4811402 commit 8ccb6df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log-collector-script/linux/eks-log-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ get_iptables_info() {
else
# check that ip_vs module is loaded in get_modinfo()
try "collect ipvs information"
ipvsadm --save | tee -a "${COLLECT_DIR}"/networking/ipvsadm.txt && sed -i '1s/^/add \tproto \tvirt-server \tscheduler algthm \treal-server \n/' "${COLLECT_DIR}"/networking/ipvsadm.txt
ipvsadm --save | tee "${COLLECT_DIR}"/networking/ipvsadm.txt && sed -i '1s/^/add:service/server \tprotocol \tvirtual-server \tscheduler algorithm \treal-server \n/' "${COLLECT_DIR}"/networking/ipvsadm.txt
ipvsadm --list --numeric --rate | tee -a "${COLLECT_DIR}"/networking/ipvsadm.txt
ok -e "\n" | tee -a "${COLLECT_DIR}"/networking/ipvsadm.txt
ipvsadm --list --numeric --stats --exact | tee -a "${COLLECT_DIR}"/networking/ipvsadm.txt
ipvsadm --list --numeric --stats --exact | tee "${COLLECT_DIR}"/networking/ipvsadm.txt
ipset --list | tee -a "${COLLECT_DIR}"/networking/ipset.txt
ok -e "\n" | tee -a "${COLLECT_DIR}"/networking/ipset.txt
ipset --save | tee -a "${COLLECT_DIR}"/networking/ipset.txt
Expand Down

0 comments on commit 8ccb6df

Please sign in to comment.