Foliador en stat-iperf
This commit is contained in:
parent
757ab816bd
commit
2b1dd7c74f
2 changed files with 14 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue