fping命令可以接受一个机器列表,以round-robin方式ping,效率很高,也支持将结果输出到一个文件中。Ubuntu用户可以直接使用apt-get安装,其他Linux发行版可以至文末点击官方网站下载安装。
参数
-a 显示alive的系统
-g IP地址范围
-d 解析主机名
-n 同-d
-f 读入目标机器列表文件
-u 显示无法到达的目标
相关命令
-
fping -a -g 192.168.1.2 192.168.1.10
-
192.168.1.8
-
ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.2 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.2 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.2 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.4 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.4 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.4 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.5 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.5 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.5 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.6 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.6 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.6 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.7 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.7 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.7 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.9 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.9 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.9 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.10 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.10 ICMP Host Unreachable from 192.168.1.36 for ICMP Echo sent to 192.168.1.10
结果显示192.168.1.8在线
阅读(1507) | 评论(0) | 转发(0) |