Unix rendszeren:
for ip in $(perl -e '$,="\n"; print 1 .. 254;') ; do ping -t 1 -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done
Windows rendszeren:
for /L %I in (1,1,254) DO ping -w 30 -n1 192.168.1.%I | find "Reply"