tcpping
Использование
net tools tcpping [-h] [--to_file] [-I NAME] [-a ADDRESS] [-f FIRST-TTL] [-m MAX-TTL] [-p PORT] [-s PACKETSIZE] [-i INTERVAL] [-Q TOS] [-c COUNT] [-j] [-o FIELDS] [HOSTNAME] [PORT]
Описание
Утилита проверки доступности удаленного узла с использованием TCP.
Аргументы
HOSTNAME- destination hostnamePORT- target port number--to_file- Redirect output to file (/tmp/cli-stdout.txt).-I,- --interface NAME use named network interface-a,- --address ADDRESS bind the outgoing socket to ADDRESS-f,- --first-ttl FIRST-TTL set what TTL to start-m,- --max-ttl MAX-TTL maximum number of hops-p,- --port PORT target port number for TCP, SCTP, or UDP-s,- --psize PACKETSIZE set the packet size used for probing-i,- --interval INTERVAL ICMP echo request interval-Q,- --tos TOS type of service field in IP header-c,- --report-cycles COUNT set the number of pings sent-j,- --json output json-o,- --order FIELDS select output fields
Примеры использования
Performing a host availability check in report mode and specifying the destination port:net tools tcpping <HOSTNAME> 179Performing a host availability check in report mode and setting the maximum packet size and their number:net tools tcpping <HOSTNAME> 443 -s 1500 -c 100Performing a host availability check in JSON mode:net tools tcpping -j <HOSTNAME> 22