<< Click to Display Table of Contents >> Navigation: Network Tools > fping > Usage |
Command Line Parameters
fping /count:packets /size:packetsize /delay:delay /loop <hostname|ip|partial-ip|hostnameWithPort|IpWithPort>
/a |
Resolve IP addresses to host names |
/u |
Shows unhelpful comments when performing a brief ping |
/b |
Performs a quick ping and only indicates whether target host is up or down. Cannot be used with /verbose |
/v |
Verbose output (default) |
/x |
Clears all stored defaults |
/w |
Use current options as default |
/f <1|2|3|4> |
Play one of 4 built-in sounds on ping failure |
/p <1|2|3|4> |
Play one of 4 built-in sounds on ping success |
/c packets |
Sets the number of ICMP packets to send, default are 4 |
/s packetsize |
Sets the payload size of the ICMP packets in bytes, default are 32 |
/t timeout |
Max amount of seconds to wait before interrupting a TCP port check (applies to TCP port checks only, default is 2 seconds) |
/d delay |
Determines how long (in ms) to wait between each ICMP packet, default are 150ms. |
/loop |
Pings host indefinitely, abort with CTRL-C |
hostname|ip|CIDR|* |
The host to ping, CIDR format to scan an entire subnet or * to scan the current subnet.
To connect to a TCP port instead of using ICMP, append the port separated with a colon (e.g. myserver:445)
A partial IP address may be specified by skipping up to the first three octets; fping will try to guess the remainder of the IP address based on the current IP address and subnet mask. |
Examples
Example 1: Ping host www.netikus.net
fping www.netikus.net
Example 2: Ping host www.eventsentry.com with 8 packets and 64 bytes in size
fping /c 8 /s 64 www.eventsentry.com
Example 3: Continuously ping 10.10.0.1 and play sound if ping times out
fping /l /f 1 10.10.0.1
Example 3: Ping www.netikus.net with 2 packets, play sound on success, and use these options as a default for all future pings
fping /c 2 /p 2 /w www.netikus.net
Example 4: Check if port 80 is available on host www.netikus.net
fping www.netikus.net:80
Example 5: Discover all IPs that are online in the 192.168.1.0/24 subnet
fping 192.168.1.0/24
Example 6: Discover all IPs in the current subnet with an open port 80
fping *:80
Example 7: Find all IPs in the current subnet
fping *
Example 8: Ping 192.168.1.1 (with the local IP address being 192.168.1.50/255.255.255.0)
fping 1
Sample Output
c:\>fping /c 2 /s 128 /d 300 www.eventsentry.com
Binging www.eventsentry.com@216.92.10.83
Reply from 216.92.10.83: bytes=128 time=15ms ttl=49 seq=0
Reply from 216.92.10.83: bytes=128 time=17ms ttl=49 seq=0
Roundtrip Summary:
Average: 16 ms, Minimum: 15 ms, Maximum: 17 ms, Rate: 100%