On 12/2/2010 3:37 PM, David C. Rankin wrote:
Guys,
What would I use to get a list of hosts on the local subnet aside from dumping the forward zone in bind or doing a ping -c .1 subnet.1-254? I want to find something I can call from a script to return the list to either a single variable or an array.
I'm open to anything, but would prefer a BASH or c solution.
I use my Nexus One. Use to use my iPhone. Lots of apps for that. When no tools at hand: ping -c 2 -b <broadcast IP> (something like 192.168.1.255 - You need -b option) -c 2 sends just two pings. No need to get crazy. then immediatly do /sbin/arp -n And you will have a list of hosts by IP. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org