목록ping (7)
변군이글루

tcping 명령어 tcping 설치 $ yum install -y tcping tcping 사용법 Usage: tcping [-q] [-t timeout_sec] [-u timeout_usec] ###closed $ tcping sangchul.kr 80 sangchul.kr port 80 closed. ###open $ tcping sangchul.kr 80 sangchul.kr port 80 open. $ tcping sangchul.kr 443 sangchul.kr port 443 open.

ping 명령어 $ ping google.com | xargs -n1 -i bash -c 'echo `date +%F\ %T`" {}"' | ccze $ yum install -y ccze $ ping google.com | xargs -n1 -i bash -c 'echo `date +%F\ %T`" {}"' | ccze -A 2020-10-13 17:38:02 PING google.com (172.217.24.142) 56(84) bytes of data. 2020-10-13 17:38:02 64 bytes from nrt20s01-in-f14.1e100.net (172.217.24.142): icmp_seq=1 ttl=104 time=31.9 ms 2020-10-13 17:38:03 64 bytes ..

ping test(ICMP) $ ping -c 3 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=105 time=26.5 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=105 time=26.5 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=105 time=26.5 ms --- 8.8.8.8 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 26.519/26.523/26.529/0.133 ms 응답이 ..
ping check 프로그램 # cat pingcheck.sh #!/bin/sh while true; do sleep 1 PING_CHECK=`ping -c 1 192.168.2.1 | grep icmp_seq | awk {'print $4'}` if [ "$PING_CHECK" == "192.168.2.1:" ]; then # echo "Success" echo "`date '+%Y-%m-%d %H:%M:%S'` : Success" >> tempfile else # echo "Fail" echo "`date '+%Y-%m-%d %H:%M:%S'` : Fail" >> tempfile fi done # sh pingcheck.sh & # tail -f tempfile 2015-03-27 13:41:35 :..