scan network script

note:

a small script to check a 192.168.1.x subnet for pingable addresses:

x=0
while [ $x -lt 255 ]
do
   x=$(($x+1))
  ping -c 1 -t 1 192.168.1.$x | head -2 | tail -1
done 

Leave a Reply

Your email address will not be published. Required fields are marked *