I have a web application that runs through thousands of IP addresses and checks if they're online. Basically, if a server uses more than 250ms to respond, it's considered offline in our case. It would be an enormous timesaver if we could get the ping command to give up after about 300 ms, instead of what seems to be the minimum value of the -W parameter, 1 second.
|
feedback
|
|
Found a similar question out there, and the answer was a ping alternative called fping. Maybe it'll be of some use to you. http://serverfault.com/questions/200468/how-can-i-set-a-short-timeout-with-the-ping-command | |||
|
feedback
|
|
From the man pages on ping it looks as though it is the -o to send only 1 packet...
That should return much more quickly also the -W parameter is in milliseconds, so that should send 1 packet and only wait 250ms for a response. EDIT You Sure?:
| |||||||||
feedback
|