[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: list all the devices connected to the router



Dne, 25. 04. 2011 01:47:01 je Kamaraju S Kusumanchi napisal(a):

Any other ideas?
thanks

Well, here's the one-liner I use (a crontab entry actually):

for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip" || : ; done

Found it on the Internet a while ago. Hope it works on your system too.


--
Cheerio,

Klistvud http://bufferoverflow.tiddlyspot.com Certifiable Loonix User #481801 Please reply to the list, not to me.


Reply to: