火曜日, 9月 03, 2013

【どうでもいい】fping 結果いろいろ【わりと】

誰も求めてないが自分のためのfpingメモ

【OS】
Manaka@server$ uname -a
Linux server 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
Manaka@server$


【fping バージョン】
Manaka@server$ ./fping -v
./fping: Version 2.4b2_to $Date: 2002/01/16 00:33:42 $
./fping: comments to david@remote.net
Manaka@server$

【よく使うオプション -e -A】


  • 引いたアドレスを教えてくれる。
  • round-trip timeも教えてくれる。

Manaka@server$ /usr/sbin/fping -e -A www.google.com
173.194.38.112 is alive (3.76 ms)
Manaka@server$


【fping 結果いろいろ】
Manaka@server$ ./fping 8.8.8.8
8.8.8.8 is alive
Manaka@server$ 
Manaka@server$ ./fping -a 8.8.8.8
8.8.8.8
Manaka@server$ 
Manaka@server$ ./fping -A 8.8.8.8
8.8.8.8 is alive
Manaka@server$ 
Manaka@server$ ./fping -b 8 8.8.8.8
8.8.8.8 is alive
Manaka@server$ 
Manaka@server$ ./fping -c 1 8.8.8.8
8.8.8.8 : [0], 92 bytes, 35.5 ms (35.5 avg, 0% loss)
8.8.8.8 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 35.5/35.5/35.5
Manaka@server$ 
Manaka@server$ ./fping -C 1 8.8.8.8
8.8.8.8 : [0], 92 bytes, 35.5 ms (35.5 avg, 0% loss)
8.8.8.8 : 35.54
Manaka@server$ 
Manaka@server$ ./fping -e 8.8.8.8
8.8.8.8 is alive (36.5 ms)
Manaka@server$ 
Manaka@server$ ./fping -l 8.8.8.8
8.8.8.8 : [0], 92 bytes, 36.1 ms (36.1 avg, 0% loss)
8.8.8.8 : [1], 92 bytes, 36.0 ms (36.0 avg, 0% loss)
8.8.8.8 : [2], 92 bytes, 36.1 ms (36.1 avg, 0% loss)
8.8.8.8 : xmt/rcv/%loss = 3/3/0%, min/avg/max = 36.0/36.1/36.1
Manaka@server$ 
Manaka@server$ ./fping -m 8.8.8.8
8.8.8.8 is alive
Manaka@server$ 
Manaka@server$ ./fping -n 8.8.8.8
google-public-dns-a.google.com is alive
Manaka@server$ 
Manaka@server$ ./fping -p 1000 8.8.8.8
8.8.8.8 is alive
Manaka@server$ 
Manaka@server$ ./fping -q 8.8.8.8
Manaka@server$ 
Manaka@server$ ./fping -r 3  8.8.8.8
8.8.8.8 is alive
Manaka@server$ 
Manaka@server$ ./fping -s 8.8.8.8
8.8.8.8 is alive
       1 targets
       1 alive
       0 unreachable
       0 unknown addresses
       0 timeouts (waiting for response)
       1 ICMP Echos sent
       1 ICMP Echo Replies received
       0 other ICMP received
 36.6 ms (min round trip time)
 36.6 ms (avg round trip time)
 36.6 ms (max round trip time)
        0.046 sec (elapsed real time)
Manaka@server$ 
Manaka@server$ ./fping -t 100 aol.com
aol.com is unreachable
Manaka@server$ 
Manaka@server$ ./fping -u 8.8.8.8 
Manaka@server$ 
Manaka@server$ ./fping -u aol.com
aol.com
Manaka@server$