玩命加载中 . . .

ping test


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

文章作者: Gavin Wang
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Gavin Wang !
  目录