Overvicw
ping the node under test to confirm whether the network can communicate properly.
Script of ping_test.sh
#!/bin/bash
node_ip="10.10.128.2"
cmd=`ping -i 1 ${node_ip} -w 1 | grep "icmp_req=1"`
#while true
#do
# date_time=`date +"%Y-%m-%d %H:%M:%S"`
# echo "[${date_time}] ${cmd}" >>/home/ping.log
# sleep 1
#done
i=0
while [ ${i} -le 172800 ]
do
date_time=`date +"%Y-%m-%d %H:%M:%S"`
echo "[${date_time}] ${cmd}" >>/home/ping_node2.log
sleep 1
i=$((${i}+1))
echo ${i}
done