pruebas de red para ambiente de produccion
This commit is contained in:
parent
45b6b94ceb
commit
d3e4f7ff33
3 changed files with 21 additions and 8 deletions
|
@ -3,8 +3,8 @@
|
|||
source scan-netdev
|
||||
|
||||
#echo "scan-bonding: Ping test:"
|
||||
test-ping | tee $OUTPUT_DIR/test-ping.out \
|
||||
| grep error
|
||||
#test-ping | tee $OUTPUT_DIR/test-ping.out \
|
||||
# | grep error
|
||||
|
||||
for BOND_N in {0..4} ; do
|
||||
BOND=bond$BOND_N
|
||||
|
|
|
@ -19,9 +19,10 @@ echo $$ > /run/batch.pid
|
|||
#stat-bonding out > $OUTPUT_DIR/stat-bonding.pre.1.out
|
||||
#test-bonding
|
||||
#stat-bonding out > $OUTPUT_DIR/stat-bonding.post.1.out
|
||||
#screen -dmS test-fio test-fio-sequential
|
||||
# Take snapshot
|
||||
mkdir -p $SNAPSHOT_D
|
||||
cp -af $OUTPUT_DIR/* $SNAPSHOT_D/
|
||||
#mkdir -p $SNAPSHOT_D
|
||||
#cp -af $OUTPUT_DIR/* $SNAPSHOT_D/
|
||||
|
||||
rm -f /run/batch.pid
|
||||
#echo '--'
|
||||
|
|
|
@ -2,10 +2,15 @@
|
|||
|
||||
source scan-netdev
|
||||
|
||||
MY_DATE=`date +%Y-%m-%d_%H-%M-%S`
|
||||
stat-bonding out > $OUTPUT_DIR/bonding.out
|
||||
echo -n "START: " > $OUTPUT_DIR/ping.out
|
||||
date >> $OUTPUT_DIR/ping.out
|
||||
for VLAN in {401..408} ; do
|
||||
if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then
|
||||
VLAN_CONF=`grep $SERVER_SERIAL \
|
||||
/etc/netdev/vlan.$VLAN.csv`
|
||||
VLAN_CONF=`cat /etc/netdev/vlan.$VLAN.csv \
|
||||
| sed 's/#.*$//' \
|
||||
| grep $SERVER_SERIAL `
|
||||
fi
|
||||
if [[ -z $VLAN_CONF ]] ; then
|
||||
continue
|
||||
|
@ -15,8 +20,15 @@ for VLAN in {401..408} ; do
|
|||
| cut -d ',' -f 3 \
|
||||
| grep '^[0-9]' | sort`
|
||||
for IP in $IP_LIST; do
|
||||
echo -n "$IP - "
|
||||
ping -c100 -f $IP | grep 'received'
|
||||
echo -n "$IP - " \
|
||||
| tee -a $OUTPUT_DIR/ping.out
|
||||
ping -c100 -W1 -f $IP \
|
||||
| grep 'received' \
|
||||
| tee -a $OUTPUT_DIR/ping.out
|
||||
done
|
||||
done
|
||||
echo -n "END: " >> $OUTPUT_DIR/ping.out
|
||||
date >> $OUTPUT_DIR/ping.out
|
||||
cp -vf $OUTPUT_DIR/ping.out $OUTPUT_DIR/ping-$MY_DATE.out
|
||||
cp -vf $OUTPUT_DIR/bonding.out $OUTPUT_DIR/bonding-$MY_DATE.out
|
||||
|
||||
|
|
Loading…
Reference in a new issue