Foliador en stat-iperf

This commit is contained in:
Sandino Araico Sanchez 2021-11-03 14:55:13 -06:00
parent 757ab816bd
commit 2b1dd7c74f
2 changed files with 14 additions and 11 deletions

View file

@ -15,8 +15,9 @@ fi
date >> $OUTPUT_DIR/ping.error.log date >> $OUTPUT_DIR/ping.error.log
echo "stat-ping: start" >> $OUTPUT_DIR/ping.error.log echo "stat-ping: start" >> $OUTPUT_DIR/ping.error.log
SERIAL=1
while [[ 1 ]] ; do while [[ 1 ]] ; do
stat-bonding out stat-bonding out | grep bond
for VLAN in {10..4000} ; do for VLAN in {10..4000} ; do
if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then
VLAN_CONF=`sed 's/#.*$//' /etc/netdev/vlan.$VLAN.csv \ VLAN_CONF=`sed 's/#.*$//' /etc/netdev/vlan.$VLAN.csv \
@ -43,15 +44,15 @@ while [[ 1 ]] ; do
fi fi
done done
if [[ -n $FAILED ]] ; then 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 date >> $OUTPUT_DIR/ping.error.log
echo "vLAN $VLAN failed: $FAILED " \ echo "$SERIAL vLAN $VLAN failed: $FAILED " \
>> $OUTPUT_DIR/ping.error.log >> $OUTPUT_DIR/ping.error.log
if [[ -n $OK_LST ]] ; then if [[ -n $OK_LST ]] ; then
echo "vLAN $GRN$VLAN$OFF Ok: $OK_LST" echo "$SERIAL vLAN $GRN$VLAN$OFF Ok: $OK_LST"
fi fi
else else
echo "vLAN $GRN$VLAN$OFF: Ok all" echo "$SERIAL vLAN $GRN$VLAN$OFF: Ok all"
fi fi
done done
echo echo

View file

@ -15,8 +15,9 @@ fi
date >> $OUTPUT_DIR/ping.error.log date >> $OUTPUT_DIR/ping.error.log
echo "stat-ping: start" >> $OUTPUT_DIR/ping.error.log echo "stat-ping: start" >> $OUTPUT_DIR/ping.error.log
SERIAL=1
while [[ 1 ]] ; do while [[ 1 ]] ; do
stat-bonding out stat-bonding out | grep bond
VLAN=110 ; VLAN=110 ;
if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then
VLAN_CONF=`sed 's/#.*$//' /etc/netdev/vlan.$VLAN.csv \ VLAN_CONF=`sed 's/#.*$//' /etc/netdev/vlan.$VLAN.csv \
@ -43,16 +44,17 @@ while [[ 1 ]] ; do
fi fi
done done
if [[ -n $FAILED ]] ; then 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 date >> $OUTPUT_DIR/ping.error.log
echo "vLAN $VLAN failed: $FAILED " \ echo "$SERIAL vLAN $VLAN failed: $FAILED " \
>> $OUTPUT_DIR/ping.error.log >> $OUTPUT_DIR/ping.error.log
if [[ -n $OK_LST ]] ; then if [[ -n $OK_LST ]] ; then
echo "vLAN $GRN$VLAN$OFF Ok: $OK_LST" echo "$SERIAL vLAN $GRN$VLAN$OFF Ok: $OK_LST"
fi fi
else else
echo "vLAN $GRN$VLAN$OFF: Ok all" echo "$SERIAL vLAN $GRN$VLAN$OFF: Ok all"
fi fi
echo #echo
sleep 1 sleep 1
SERIAL=$(( SERIAL + 1 ))
done done