用fping工具取代ping

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



赶快试试吧,很爽的!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值