ping test 썸네일형 리스트형 [draft] tcping 명령어 tcping 명령어tcping 설치- TCP 연결을 통해 pinghttps://elifulkerson.com/projects/tcping.phptcping 사용법tcping--------------------------------------------------------------tcping.exe by Eli FulkersonPlease see http://www.elifulkerson.com/projects/ for updates.--------------------------------------------------------------Usage: tcping [-flags] server-address [server-port]Usage (full): tcping [-t] [-d] [-i inte.. 더보기 [draft] 리눅스에서 tcping을 설치하고 사용하는 방법 리눅스에서 tcping을 설치하고 사용하는 방법tcping 명령어는 TCP 포트에 대한 ping 테스트를 수행하는 데 사용됩니다. 이 도구는 목표 호스트와 포트에 대한 연결을 시도하고 응답 시간을 측정합니다. 일반적으로 ping 명령어가 ICMP를 사용하여 호스트의 응답을 확인하는 데 사용되지만 tcping은 TCP 연결을 테스트하는 데 사용됩니다.tcping 설치CentOSsudo yum install -y tcpingUbuntusudo apt-get install -y tcpingSnap 패키지를 사용하여 tcping을 설치snap install tcping$ snap install tcpingtcping 0.0.80 from Aibulat installedtcping 버전 정보 확인tcping --.. 더보기 [draft] ping check 스크립트 ping check 스크립트vim pingcheck.sh#!/bin/bashwhile 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 1done이제 위의 코드는 1초마다 192.168.2.1에 대한 ping을 수행하고 결과를 tempfile에 기록하는 스크립트로 사용할 수 있습니다.chmod +x pingcheck.shbash pingcheck.sh &$ tail -f tempfile2015-.. 더보기 이전 1 다음