On Sun, Nov 06, 2005 at 09:19:32PM -0500, Kwan Lowe wrote:
>
> > 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.
>
My version of ping does not allow this option (Debian unstable).
However, Ian's nmap appears to work.
Paul
-----------------------------------------------------------------------
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:51:24 EDT