Skip to content

Instantly share code, notes, and snippets.

@miltonlab
Created December 11, 2014 17:29
Show Gist options
  • Save miltonlab/ebeab978910df2bc16a0 to your computer and use it in GitHub Desktop.
Save miltonlab/ebeab978910df2bc16a0 to your computer and use it in GitHub Desktop.
Verify conection to certain IPs range
echo "" > /tmp/bads.txt
inicio=164
fin=165
for i in `seq $inicio $fin`
do
ip=10.10.$i.1
if ping $ip -w2 | grep "0 received"
then
echo $ip >> /tmp/bads.txt
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment