…Details…

Icon

Thoughts that's escape, only details.

Discovery Subnet with Ping

Sometime we need to discover an entire subnet.

This is a small script not so fast but easy:

#!/bin/sh
subnet=10.10.10.
addr=1
while [ $addr -lt 256 ]; do
ping -c 1 -t 1 $subnet$addr > /dev/null && echo $subnet$addr Is Alive
let addr=addr+1
done

Category: Scripting

Tagged: , , ,

Leave a Reply

You must be logged in to post a comment.

Archive