> Anyone know of a command that will cause other machines on a subnet to
> echo back their IPs and names? Obviously, this wouldn't work if you had
> to know the names of the machines first. So it would have to be like a
> broadcast command that used ICMP or something to cause others to answer.
> Anyone know of such a beast? Seems like I should know this, but I don't.
>
You can do a broadcast ping.
For a /24 network:
ping -b 192.168.8.255
Or /16, etc..
ping -b 192.168.255.255
You could probably grab the output and pass it through the "host" command to return
the hostnames.
-- * The Digital Hermit http://www.digitalhermit.com * Unix and Linux Solutions kwan@digitalhermit.com ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:49:56 EDT