I want to send one packet to the broadcast address, but wait for all responses.
If I do ping -c 1 192.168.1.255, it sends just one packet, but it quits after getting the first response.
|
I want to send one packet to the broadcast address, but wait for all responses. If I do |
|||
| show 2 more comments |
|
How would To find out which hosts on a subnet are up, something like
|
|||||
|
|
This quick check for hosts possibly fails nowadays. There is an increasing number of operating systems that blocks incoming ICMP/ping by default. Perhaps there are better - and possibly faster ways to achieve your goal. If you have SNMP-read-access to the involved router(s) you might get the information (number of hosts in a network) by a simple SNMP-get-request of the corresponding traffic statistic table. |
|||||||||
|
nmap, but it has been a bit slow in my experience, compared toping. – houbysoft Feb 9 '12 at 22:17pingon Mac OS X 10.7.3. I can't seem to find a switch for it to tell its version (tried-v,--version, searching the man page...). – houbysoft Feb 9 '12 at 22:47pinghave a-woption to specify a length of time to wait, regardless of how many reply packets have been received. – jw013 Feb 10 '12 at 4:43