Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2111160
  • 博文数量: 227
  • 博客积分: 10521
  • 博客等级: 上将
  • 技术积分: 3452
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-20 14:59
个人简介

低调做人,高调做事!

文章分类

全部博文(227)

文章存档

2013年(4)

2012年(8)

2011年(16)

2010年(24)

2009年(92)

2008年(83)

分类: LINUX

2008-09-19 11:22:18

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



赶快试试吧,很爽的!



   
阅读(6037) | 评论(0) | 转发(0) |
0

上一篇:MySQL单表大小问题

下一篇:Perl-->FTP的使用

给主人留下些什么吧!~~