![]() I accepted the fping solution (thanks for all the other answers). This is why I do not want to scan all the subnet (with a ping -b for example). ![]() ![]() They are on the same vlan and subnet as the users (for simplicity of deployment and replacement). The hosts I am trying to ping are actually access points.Is there a way to set the timeout to a lower value? If not, are there any alternatives? I tried to set it to below a second, but it does not seem to take the parameter into account at all: ping -c 1 -W 0.1 10.0.0.1 # timeout option is ignored, apparently I think I'm interested in the latter.īut waiting one second per offline host is still too long. I checked man ping, there seem to be two options to set the timeout delay: -w deadline and -W timeout. Unfortunately, when a host is offline, the ping takes a long time to timeout. ![]() So, my script launches a single ping for each host: ping -c 1 10.0.0.1 I have the DHCP leases file, so I have all the IPs (say, 10.0.0.1, 10.0.0.2, etc.), all I need is the ping status for each host. I am trying to write a script that lists all the hosts on my LAN (there a about 20 of them) and writes the ping status next to each host. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |