본문 바로가기

728x90

핑 테스트

ping, telnet으로 통신(포트) 상태 확인 ping, telnet으로 통신(포트) 상태 확인 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.. 더보기
ping check 스크립트 ping check 스크립트 vim pingcheck.sh #!/bin/bash while true; do if ping -c 1 192.168.2.1 >/dev/null; then echo "$(date '+%Y-%m-%d %H:%M:%S') : Success" >> tempfile else echo "$(date '+%Y-%m-%d %H:%M:%S') : Fail" >> tempfile fi sleep 1 done 이제 위의 코드는 1초마다 192.168.2.1에 대한 ping을 수행하고 결과를 tempfile에 기록하는 스크립트로 사용할 수 있습니다. chmod +x pingcheck.sh bash pingcheck.sh & $ tail -f tempfile 2015-03-27 13:41:35 : .. 더보기
[원도우] tcping 명령어 tcping 명령어 tcping 설치 - TCP 연결을 통해 ping https://elifulkerson.com/projects/tcping.php tcping 사용법 tcping -------------------------------------------------------------- tcping.exe by Eli Fulkerson Please see http://www.elifulkerson.com/projects/ for updates. -------------------------------------------------------------- Usage: tcping [-flags] server-address [server-port] Usage (full): tcping [-t] [-.. 더보기
리눅스에서 tcping을 설치하고 사용하는 방법 리눅스에서 tcping을 설치하고 사용하는 방법 tcping 명령어는 TCP 포트에 대한 ping 테스트를 수행하는 데 사용됩니다. 이 도구는 목표 호스트와 포트에 대한 연결을 시도하고 응답 시간을 측정합니다. 일반적으로 ping 명령어가 ICMP를 사용하여 호스트의 응답을 확인하는 데 사용되지만, tcping은 TCP 연결을 테스트하는 데 사용됩니다. tcping 설치 CentOS sudo yum install -y tcping Ubuntu sudo apt-get install -y tcping Snap 패키지를 사용하여 tcping을 설치 snap install tcping $ snap install tcping tcping 0.0.80 from Aibulat installed tcping 버전 정보.. 더보기

728x90