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