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)
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的fping的使用方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 各种协议中的协议类型对应的值
- 下一篇: LCP概念