码迷,mamicode.com
首页 > 其他好文 > 详细

fping

时间:2020-04-03 00:46:46      阅读:76      评论:0      收藏:0      [点我收藏+]

标签:not   set   主机   font   with   bind   src   star   ber   

fping  

fping程序类似ping,也是通过发送ICMP包协议回复请求检测主机是否存在,不过fping可以在命令行中指定要ping的主机数量范围,也可以指定含有要ping的主机列表文件。fping可以实现多主机同ping,当指定的主机被ping通时,就会从待ping主机列表中移除,当指定主机未ping通时,系统会先放置等待后续进一步指令。以下是fping指令

Probing options:

  1. -4, --ipv4 only ping IPv4 addresses
  2. -6, --ipv6 only ping IPv6 addresses
  3. -b, --size=BYTES amount of ping data to send, in bytes (default: 56)
  4. -B, --backoff=N set exponential backoff factor to N (default: 1.5)
  5. -c, --count=N count mode: send N pings to each target
  6. -f, --file=FILE read list of targets from a file ( - means stdin)
  7. -g, --generate generate target list (only if no -f specified)
  8. (give start and end IP in the target list, or a CIDR address)
  9. (ex. fping -g 192.168.1.0 192.168.1.255 or fping -g 192.168.1.0/24)
  10. -H, --ttl=N set the IP TTL value (Time To Live hops)
  11. -I, --iface=IFACE bind to a particular interface
  12. -l, --loop loop mode: send pings forever
  13. -m, --all use all IPs of provided hostnames (e.g. IPv4 and IPv6), use with -A
  14. -M, --dontfrag set the Don‘t Fragment flag
  15. -O, --tos=N set the type of service (tos) flag on the ICMP packets
  16. -p, --period=MSEC interval between ping packets to one target (in ms)
  17. (in loop and count modes, default: 1000 ms)
  18. -r, --retry=N number of retries (default: 3)
  19. -R, --random random packet data (to foil link data compression)
  20. -S, --src=IP set source address
  21. -t, --timeout=MSEC individual target initial timeout (default: 500 ms,
  22. except with -l/-c/-C, where it‘s the -p period up to 2000 ms)

Output options:

  1. -a, --alive show targets that are alive
  2. -A, --addr show targets by address
  3. -C, --vcount=N same as -c, report results in verbose format
  4. -D, --timestamp print timestamp before each output line
  5. -e, --elapsed show elapsed time on return packets
  6. -i, --interval=MSEC interval between sending ping packets (default: 10 ms)
  7. -n, --name show targets by name (-d is equivalent)
  8. -N, --netdata output compatible for netdata (-l -Q are required)
  9. -o, --outage show the accumulated outage time (lost packets * packet interval)
  10. -q, --quiet quiet (don‘t show per-target/per-ping results)
  11. -Q, --squiet=SECS same as -q, but show summary every n seconds
  12. -s, --stats print final stats
  13. -u, --unreach show targets that are unreachable
  14. -v, --version show version
  15. -x, --reachable=N shows if >=N hosts are reachable or not

fping

标签:not   set   主机   font   with   bind   src   star   ber   

原文地址:https://www.cnblogs.com/sunyyer/p/12621423.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!