From 2b1dd7c74f0f75c2fb1969cd9bdac6f5b0f84add Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Wed, 3 Nov 2021 14:55:13 -0600 Subject: [PATCH] Foliador en stat-iperf --- scripts/stat-ping | 11 ++++++----- scripts/stat-ping110 | 14 ++++++++------ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/scripts/stat-ping b/scripts/stat-ping index 8d88f39..a1dfb37 100755 --- a/scripts/stat-ping +++ b/scripts/stat-ping @@ -15,8 +15,9 @@ fi date >> $OUTPUT_DIR/ping.error.log echo "stat-ping: start" >> $OUTPUT_DIR/ping.error.log +SERIAL=1 while [[ 1 ]] ; do - stat-bonding out + stat-bonding out | grep bond for VLAN in {10..4000} ; do if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then VLAN_CONF=`sed 's/#.*$//' /etc/netdev/vlan.$VLAN.csv \ @@ -43,15 +44,15 @@ while [[ 1 ]] ; do fi done if [[ -n $FAILED ]] ; then - echo "vLAN $RED$VLAN$OFF failed: $FAILED " + echo "$SERIAL vLAN $RED$VLAN$OFF failed: $FAILED " date >> $OUTPUT_DIR/ping.error.log - echo "vLAN $VLAN failed: $FAILED " \ + echo "$SERIAL vLAN $VLAN failed: $FAILED " \ >> $OUTPUT_DIR/ping.error.log if [[ -n $OK_LST ]] ; then - echo "vLAN $GRN$VLAN$OFF Ok: $OK_LST" + echo "$SERIAL vLAN $GRN$VLAN$OFF Ok: $OK_LST" fi else - echo "vLAN $GRN$VLAN$OFF: Ok all" + echo "$SERIAL vLAN $GRN$VLAN$OFF: Ok all" fi done echo diff --git a/scripts/stat-ping110 b/scripts/stat-ping110 index 7040ae9..ec31b26 100755 --- a/scripts/stat-ping110 +++ b/scripts/stat-ping110 @@ -15,8 +15,9 @@ fi date >> $OUTPUT_DIR/ping.error.log echo "stat-ping: start" >> $OUTPUT_DIR/ping.error.log +SERIAL=1 while [[ 1 ]] ; do - stat-bonding out + stat-bonding out | grep bond VLAN=110 ; if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then VLAN_CONF=`sed 's/#.*$//' /etc/netdev/vlan.$VLAN.csv \ @@ -43,16 +44,17 @@ while [[ 1 ]] ; do fi done if [[ -n $FAILED ]] ; then - echo "vLAN $RED$VLAN$OFF failed: $FAILED " + echo "$SERIAL vLAN $RED$VLAN$OFF failed: $FAILED " date >> $OUTPUT_DIR/ping.error.log - echo "vLAN $VLAN failed: $FAILED " \ + echo "$SERIAL vLAN $VLAN failed: $FAILED " \ >> $OUTPUT_DIR/ping.error.log if [[ -n $OK_LST ]] ; then - echo "vLAN $GRN$VLAN$OFF Ok: $OK_LST" + echo "$SERIAL vLAN $GRN$VLAN$OFF Ok: $OK_LST" fi else - echo "vLAN $GRN$VLAN$OFF: Ok all" + echo "$SERIAL vLAN $GRN$VLAN$OFF: Ok all" fi - echo + #echo sleep 1 + SERIAL=$(( SERIAL + 1 )) done