Skip to content

xops ping

Command usage and available options are listed below. Check --help for options supported by your installed version.

text
This command has two modes:
1. ICMP Ping (1 argument):
   Sends ICMP requests to test network connectivity, similar to the system ping tool.
   Example: xops ping 8.8.8.8
   On Linux, ICMP raw sockets require elevated privileges:
   Set sysctl net.ipv4.ping_group_range="0 2147483647"
   Or: setcap cap_net_raw+eip /path/to/xops
   Or run with sudo.

2. TCP port check (2 arguments):
   Attempts a TCP connection to determine if the port is open.
   Example: xops ping 8.8.8.8 53

Usage:
  xops ping <ip> [port] [flags]

Flags:
  -h, --help   help for ping

Global Flags:
      --color string       ANSI color output (auto=detect pipe/redirect, never=disable, always=force enable)
      --debug              Enable debug mode (equivalent to --log-level=debug)
      --lang string        Interface language (zh/en)
      --log-level string   Set internal diagnostic log level (debug, info, warn, error)

MIT License