fping的使用方法

fping 的优点:

1. 可以一次ping多个主机

2. 可以从主机列表文件ping

3. 结果清晰 便于脚本处理

4. 速度快

 

有用的参数:

-g ping 网段

-s 显示统计

-r 1 设置重试次数

 

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

-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)

-i n       interval between sending ping packets (in millisec) (default 25)

-l         loop sending pings forever

-m         ping multiple interfaces on target host

-n         show targets by name (-d is equivalent)

-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)

-s         print final stats

-t n       individual target initial timeout (in millisec) (default 500)

-u         show targets that are unreachable

-v         show version

targets    list of targets to check (if no -f specified)

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值