Created
April 24, 2014 15:09
-
-
Save maxclark/11258216 to your computer and use it in GitHub Desktop.
Ping a range of IPs without using NMAP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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