Created
January 9, 2019 06:16
-
-
Save Kr0n0/c86c6aa8197746ff873693e56d0297e9 to your computer and use it in GitHub Desktop.
Check which machines are up by pinging all the network
This file contains hidden or 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
#!/bin/sh | |
IP_RANGE=192.168.1. | |
for i in $(seq 1 254); do (ping ${IP_RANGE}$i -c 1 -w 5 >/dev/null && echo "${IP_RANGE}$i" &) ;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment