Перейти к содержанию

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 hostname
  • PORT - target port number
  • --to_file - Redirect output to file (/tmp/cli-stdout.txt).
  • -I - NAME, --interface NAME use named network interface
  • -a - ADDRESS, --address ADDRESS bind the outgoing socket to ADDRESS
  • -f - FIRST-TTL, --first-ttl FIRST-TTL set what TTL to start
  • -m - MAX-TTL, --max-ttl MAX-TTL maximum number of hops
  • -p - PORT, --port PORT target port number for TCP, SCTP, or UDP
  • -s - PACKETSIZE, --psize PACKETSIZE set the packet size used for probing
  • -i - INTERVAL, --interval INTERVAL ICMP echo request interval
  • -Q - TOS, --tos TOS type of service field in IP header
  • -c - COUNT, --report-cycles COUNT set the number of pings sent
  • -j, - --json output json
  • -o - FIELDS, --order FIELDS select output fields

Примеры использования

  • Performing a host availability check in report mode and specifying the destination port:
  • net tools tcpping <HOSTNAME> 179
  • Performing a host availability check in report mode and setting the maximum packet size and their number:
  • net tools tcpping <HOSTNAME> 443 -s 1500 -c 100
  • Performing a host availability check in JSON mode:
  • net tools tcpping -j <HOSTNAME> 22