On Thu, Jun 17, 2010 at 6:07 PM, Shrinivasan T <[email protected]> wrote: > If you are on a LAN and wish to find out which computers in it > currently have access to that certain LAN, > you can use the following command: > > for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq > 0 ] && echo “192.168.1.$ip UP” || : ; done > > This will ping each computer on the 192.168.1.x subnet one time, with > a one second interval between pings. > The output should be something like > > 192.168.1.1 UP > 192.168.1.17 UP > 192.168.1.24 UP > … > > > Alternatively, you can use netdiscover: > > sudo apt-get install netdiscover > netdiscover -r 192.168.1.0/24
Another option is fping. _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
