OS Manuals

/usr/bin/fping

A utility to ping multiple hosts at once

From fping 5.5-r4 (os), captured 2026-11-05 by running fping --help (exit 0). permalink

Usage: /usr/bin/fping [options] [targets...]

Probing options:
   -4, --ipv4         only ping IPv4 addresses
   -6, --ipv6         only ping IPv6 addresses
   -b, --size=BYTES   amount of ping data to send, in bytes (default: 56)
   -B, --backoff=N    set exponential backoff factor to N (default: 1.5)
   -c, --count=N      count mode: send N pings to each target and report stats
   -f, --file=FILE    read list of targets from a file ( - means stdin)
   -g, --generate     generate target list (only if no -f specified),
                      limited to at most 131072 targets
                      (give start and end IP in the target list, or a CIDR address)
                      (ex. /usr/bin/fping -g 192.168.1.0 192.168.1.255 or /usr/bin/fping -g 192.168.1.0/24)
   -H, --ttl=N        set the IP TTL value (Time To Live hops)
   -i, --interval=MSEC  interval between sending ping packets (default: 10 ms)
   -I, --iface=IFACE  bind to a particular interface
   -k, --fwmark=FWMARK set the routing mark
   -l, --loop         loop mode: send pings forever
   -m, --all          use all IPs of provided hostnames (e.g. IPv4 and IPv6), use with -A
   -M, --dontfrag     set the Don't Fragment flag
   -O, --tos=N        set the type of service (tos) flag on the ICMP packets
   -p, --period=MSEC  interval between ping packets to one target (in ms)
                      (in loop and count modes, default: 1000 ms)
   -r, --retry=N      number of retries (default: 3)
   -R, --random       random packet data (to foil link data compression)
   -S, --src=IP       set source address
       --seqmap-timeout=MSEC sequence number mapping timeout (default: 10000 ms)
   -t, --timeout=MSEC individual target initial timeout (default: 500 ms,
                      except with -l/-c/-C, where it's the -p period up to 2000 ms)
       --check-source discard replies not from target address
       --icmp-timestamp use ICMP Timestamp instead of ICMP Echo

Output options:
   -a, --alive        show targets that are alive
   -A, --addr         show targets by address
   -C, --vcount=N     same as -c, report results (not stats) in verbose format
   -d, --rdns         show targets by name (force reverse-DNS lookup)
   -D, --timestamp    print timestamp before each output line
       --timestamp-format=FORMAT  show timestamp in the given format (-D required): ctime|iso|rfc3339
   -e, --elapsed      show elapsed time on return packets
   -J, --json         output in JSON format (-c, -C, or -l required)
   -n, --name         show targets by name (reverse-DNS lookup for target IPs)
   -N, --netdata      output compatible for netdata (-l -Q are required)
   -o, --outage       show the accumulated outage time (lost packets * packet interval)
   -q, --quiet        quiet (don't show per-target/per-ping results)
   -Q, --squiet=SECS[,cumulative]  same as -q, but add interval summary every SECS seconds,
                                   with 'cumulative', print stats since beginning
   -s, --stats        print final stats
   -u, --unreach      show targets that are unreachable
   -v, --version      show version
   -x, --reachable=N  shows if >=N hosts are reachable or not
   -X, --fast-reachable=N exits true immediately when N hosts are found
       --print-tos    show received TOS value
       --print-ttl    show IP TTL value
Options (45)
OptionDescriptionSource
-4, --ipv4Restrict name resolution and IPs to IPv4 addresses.help + man
-6, --ipv6Restrict name resolution and IPs to IPv6 addresses.help + man
-b, --size BYTESamount of ping data to send, in bytes (default: 56)help + man
-B, --backoff Nset exponential backoff factor to N (default: 1.5)help + man
-c, --count Ncount mode: send N pings to each target and report statshelp + man
-f, --file FILEread list of targets from a file ( - means stdin)help + man
-g, --generate addr/maskgenerate target list (only if no -f specified), limited to at most 131072 targets (give start and end IP in the target list, or a CIDR address) (ex.help + man
-H, --ttl NSet the IP TTL field (time to live hops).help + man
-i, --interval MSECThe minimum amount of time (in milliseconds) between sending a ping packet to any target (default is 10, minimum is 0 (1 for non-root users if fping was configured with "--enable-safe-limits")).help + man
-I, --iface IFACESet the interface (requires SO_BINDTODEVICE support).help + man
-l, --loopLoop sending packets to each target indefinitely.help + man
-m, --allSend pings to each of a target host's multiple IP addresses (use of option '-A' is recommended).help + man
-M, --dontfragSet the "Don't Fragment" bit in the IP header (used to determine/test the MTU).help + man
-O, --tos Nset the type of service (tos) flag on the ICMP packetshelp + man
-p, --period MSECIn looping or counting modes (-l, -c, or -C), this parameter sets the time in milliseconds that fping waits between successive packets to an individual target.help + man
-r, --retry Nnumber of retries (default: 3)help + man
-R, --randomInstead of using all-zeros as the packet data, generate random bytes.help + man
-S, --src IPSet source address.help + man
-a, --aliveShow systems that are alive.help + man
-A, --addrDisplay targets by address rather than DNS name.help + man
-C, --vcount NSimilar to -c, but the per-target statistics are displayed in a format designed for automated response-time statistics gathering.help + man
-d, --rdnsshow targets by name (force reverse-DNS lookup)help + man
-D, --timestampAdd Unix timestamps in front of output lines generated with in looping or counting modes (-l, -c, or -C).help + man
--timestamp-format FORMATshow timestamp in the given format (-D required): ctime|iso|rfc3339help
-e, --elapsedShow elapsed (round-trip) time of packets.help + man
-J, --jsonoutput in JSON format (-c, -C, or -l required)help + man
-n, --nameIf targets are specified as IP addresses, do a reverse-DNS lookup on them to print hostnames in the output.help + man
-N, --netdataoutput compatible for netdata (-l -Q are required)help + man
-o, --outageCalculate "outage time" based on the number of lost pings and the interval used (useful for network convergence tests).help + man
-q, --quietquiet (don't show per-target/per-ping results)help + man
-Q, --squiet SECSsame as -q, but add interval summary every SECS seconds, with 'cumulative', print stats since beginninghelp
-s, --statsPrint cumulative statistics upon exit.help + man
-u, --unreachShow targets that are unreachable.help + man
-v, --versionPrint fping version information.help + man
-x, --reachable NGiven a list of hosts, this mode checks if number of reachable hosts is >= N and exits true in that case.help + man
--print-tosDisplays the TOS value in the output.help + man
--print-ttlDisplays the IPv4 TTL value from the IP Header in the output.help + man
--check-sourceDiscard Echo replies that are sourced from a different address than the target address. (in the manual page but not in --help)man
-h, --helpPrint usage message. (in the manual page but not in --help)man
--icmp-timestampSend ICMP timestamp requests (ICMP type 13) instead of ICMP Echo requests. (in the manual page but not in --help)man
-k, --fwmark FWMARKSet FWMARK on ping packets for policy-based routing. (in the manual page but not in --help)man
--seqmap-timeout MSECTimeout for sequence number mappings in milliseconds. (in the manual page but not in --help)man
-t, --timeout MSECInitial target timeout in milliseconds. (in the manual page but not in --help)man
-T nIgnored (for compatibility with fping 2.4). (in the manual page but not in --help)man
-X, --fast-reachable NGiven a list of hosts, this mode immediately exits true once N alive hosts have been found. (in the manual page but not in --help)man
Exit status (3) from the manual page
0all the hosts (or the number of hosts specified with -x or -X) are reachable
1some (or too many with -x or -X) hosts were unreachable
2any IP addresses were not found
Examples (1) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.