Difference between revisions of "Fping"

From wikieduonline
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}<code>fping</code> ([https://fping.org/fping.1.html man]) send [[ICMP]] ECHO_REQUEST packets to network hosts
 +
 +
[[brew install fping]]
 +
 +
  
 
== Basic usage ==
 
== Basic usage ==
Line 7: Line 12:
 
</pre>
 
</pre>
 
* Sending ''ping packets'' in a loop (<code>-l</code>)
 
* Sending ''ping packets'' in a loop (<code>-l</code>)
<pre>
+
 
fping -l 8.8.8.8
+
fping -l 8.8.8.8
8.8.8.8 : [0], 84 bytes, 19.9 ms (19.9 avg, 0% loss)
+
8.8.8.8 : [0], 84 bytes, 19.9 ms (19.9 avg, 0% loss)
8.8.8.8 : [1], 84 bytes, 17.1 ms (18.5 avg, 0% loss)
+
8.8.8.8 : [1], 84 bytes, 17.1 ms (18.5 avg, 0% loss)
8.8.8.8 : [2], 84 bytes, 15.5 ms (17.5 avg, 0% loss)
+
8.8.8.8 : [2], 84 bytes, 15.5 ms (17.5 avg, 0% loss)
8.8.8.8 : [3], 84 bytes, 19.1 ms (17.9 avg, 0% loss)
+
8.8.8.8 : [3], 84 bytes, 19.1 ms (17.9 avg, 0% loss)
8.8.8.8 : [4], 84 bytes, 9.87 ms (16.3 avg, 0% loss)
+
8.8.8.8 : [4], 84 bytes, 9.87 ms (16.3 avg, 0% loss)
^C
+
^C
8.8.8.8 : xmt/rcv/%loss = 5/5/0%, min/avg/max = 9.87/16.3/19.9
+
8.8.8.8 : xmt/rcv/%loss = 5/5/0%, min/avg/max = 9.87/16.3/19.9
</pre>
+
 
 +
* <code>fping -l 8.8.8.8 1.1.1.1</code>
 +
* <code>fping -D -l 8.8.8.8 1.1.1.1</code>
 +
 
 +
 
 +
 
 
* Send 1 packet with a 50 milliseconds timeout  
 
* Send 1 packet with a 50 milliseconds timeout  
 
<pre>
 
<pre>
Line 24: Line 34:
 
8.8.8.8 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 42.6/42.6/42.6
 
8.8.8.8 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 42.6/42.6/42.6
 
</pre>
 
</pre>
 +
 +
 +
−s, −−src Print cumulative statistics upon exit
  
 
== See also ==
 
== See also ==
 +
* {{fping}}
 
* {{ping}}
 
* {{ping}}
  

Latest revision as of 17:00, 10 November 2024

fping (man) send ICMP ECHO_REQUEST packets to network hosts

brew install fping


Basic usage[edit]

  • Ping a machine:
fping 8.8.8.8
8.8.8.8 is alive
  • Sending ping packets in a loop (-l)
fping -l 8.8.8.8
8.8.8.8 : [0], 84 bytes, 19.9 ms (19.9 avg, 0% loss)
8.8.8.8 : [1], 84 bytes, 17.1 ms (18.5 avg, 0% loss)
8.8.8.8 : [2], 84 bytes, 15.5 ms (17.5 avg, 0% loss)
8.8.8.8 : [3], 84 bytes, 19.1 ms (17.9 avg, 0% loss)
8.8.8.8 : [4], 84 bytes, 9.87 ms (16.3 avg, 0% loss)
^C
8.8.8.8 : xmt/rcv/%loss = 5/5/0%, min/avg/max = 9.87/16.3/19.9
  • fping -l 8.8.8.8 1.1.1.1
  • fping -D -l 8.8.8.8 1.1.1.1


  • Send 1 packet with a 50 milliseconds timeout
fping -c 1 8.8.8.8 -t 50
8.8.8.8 : [0], 84 bytes, 42.6 ms (42.6 avg, 0% loss)

8.8.8.8 : xmt/rcv/%loss = 1/1/0%, min/avg/max = 42.6/42.6/42.6


−s, −−src Print cumulative statistics upon exit

See also[edit]


Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Source: https://en.wikiversity.org/wiki/Computer_Networks/Ping/Sweep/fping

Advertising: