Utility to ping multiple hosts at once.
fping is a ping-like program which uses the Internet Control Message Protocol (ICMP) echo request to determine if a target host is responding.
fping is different from ping in that you can specify any number of hosts on the command line, or specify a file containing the lists of hosts to ping. Instead of trying one host until it timeouts or replies, fping will send out a ping packet and move on to the next host in a round-robin fashion.
If a host replies, it is noted and removed from the list of hosts to check. If a host does not respond within a certain time
limit and/or retry limit it will be considered unreachable.
fping最大的好处就是一次可以ping多个地址,而且速度更快!
下载地址:
1,fgping通过配置文件检测主机状态
建立一个文件,并把IP地址按每行一个的格式写入,如下所示:
192.168.1.1
192.168.1.9
192.168.1.10
192.168.1.14
192.168.1.16
然后使用“-f”参数读入这个文件,如下所示:
[root@localhost sysadmin]# fping -a -f hosts
192.168.1.1
192.168.1.9
192.168.1.10
192.168.1.14
192.168.1.16
2,fping扫描一个网段存活的主机
fping -a -g 192.168.1.1 192.168.1.255 -s -n > test.txt
赶快试试吧,很爽的!
用fping工具取代ping
最新推荐文章于 2024-05-20 17:01:33 发布