Linux system installed fping 3.15 --CentOS 7.6.1810

1. Create an installation directory

mkdir -p /usr/local/fping && cd /usr/local/fping

2, the installation package download fping3.15

wget http://fping.org/dist/fping-3.15.tar.gz

3, extract the installation package

tar -zxvf fping-3.15.tar.gz && cd fping-3.15

4, compile and install

./configure --prefix=/usr/local/fping && make && make install

5, configure the environment variables, and entry into force

sed -i '1i\export PATH=$PATH:/usr/local/fping/sbin' /etc/profile && source /etc/profile

6, configure the environment variables permanent

echo "export PATH=$PATH:/usr/local/fping/sbin" >> /etc/bashrc

7, the test is successful or not?

fping -v

 

Help Files

Usage (Usage): fping [options] [target ...]

-a line shows whether the destination address
-A display an IP address, and determines whether or not online
-bn ping packet amount of transmission data, in bytes (default 56), n the number of languages, the following parameters with this
-B f setting index backoff factor F
-CN calculated to be transmitted ping signal to each destination (a transmission packet by default)
-C function with n--c, report the results in more detail
-D stamp printed on each output line
display returns -e runtime package
-f file to read the target list from a file (- means stdin) (only if no -g specified)

-g generate a target list (NO -f IF only specified)
(specified in the target list start and end IP, or IP network providing a mask)
(EX. fping 192.168.1.0 192.168.1.255 or -g -g fping 192.168. 1.0 / 24)

-H n value set IP TTL (Time hops the To Live)
-IN transmission interval (in millisec ms) (default 25) between the ping packet
-I if bound to a specific interface
-l loop sending pings forever never
-m ping a plurality of interfaces on the target host
-M the Do not Fragment flag
-n displayed as name of the target (-d is equivalent equivalent)
-N-compatible network data output (-l -Q are required necessary)
-o display total downtime (lost packets * packet interval interval)
-O n-service type (TOS) flag in the ICMP packet

-pn ping packet to interval (in millisec) between a target
(in looping and counting modes, default 1000)

-q Quiet mode (do Not Show per-target / per-Results of ping)
-Q is n function as -q, every n seconds show summaries
-rn repetitions (default. 3)
-R & lt randomized data (to foil blocking link data compression compression)
-s print the last statistics
-S disposed source address
-tn initial timeout single destination (in Millisec) (default 500)
-T n-ignored (for compatibility 2.4 fping compatibility with)
-u display Destination unreachable
-v show version
to check the list of targets (if no -f specified)

 

English Version

fping: Version 3.15

fping: comments to [email protected]

Usage: fping [options] [targets...]
-a show targets that are alive
-A show targets by address
-b n amount of ping data to send, in bytes (default 56)
-B f set exponential backoff factor to f
-c n count of pings to send to each target (default 1)
-C n same as -c, report results in verbose format
-D print timestamp before each output line
-e show elapsed time on return packets
-f file read list of targets from a file ( - means stdin) (only if no -g specified)
-g generate target list (only if no -f specified)
(specify the start and end IP in the target list, or supply a IP netmask)
(ex. fping -g 192.168.1.0 192.168.1.255 or fping -g 192.168.1.0/24)
-H n Set the IP TTL value (Time To Live hops)
-i n interval between sending ping packets (in millisec) (default 25)
-I if bind to a particular interface
-l loop sending pings forever
-m ping multiple interfaces on target host
-M set the Don't Fragment flag
-n show targets by name (-d is equivalent)
-N output compatible for netdata (-l -Q are required)
-o show the accumulated outage time (lost packets * packet interval)
-O n set the type of service (tos) flag on the ICMP packets
-p n interval between ping packets to one target (in millisec)
(in looping and counting modes, default 1000)
-q quiet (don't show per-target/per-ping results)
-Q n same as -q, but show summary every n seconds
-r n number of retries (default 3)
-R random packet data (to foil link data compression)
-s print final stats
-S addr set source address
-t n individual target initial timeout (in millisec) (default 500)
-T n ignored (for compatibility with fping 2.4)
-u show targets that are unreachable
-v show version
targets list of targets to check (if no -f specified)

Increased physical need to exercise; increased knowledge required reading; since ancient times only talented students, not the teacher of genius;

Guess you like

Origin www.cnblogs.com/struohnssebxsc/p/11243545.html