Skip to content

Instantly share code, notes, and snippets.

@maxclark
Created April 24, 2014 15:09
Show Gist options
  • Save maxclark/11258216 to your computer and use it in GitHub Desktop.
Save maxclark/11258216 to your computer and use it in GitHub Desktop.
Ping a range of IPs without using NMAP
# In BASH shell
for i in {1..254}; do
ping -c 1 -W 1 10.1.1.$i
done
# In TCSH
foreach number ( `jot 254` )
do ping -c 1 -W 1 10.1.1.$i
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment