Skip to content

Instantly share code, notes, and snippets.

@Kr0n0
Created January 9, 2019 06:16
Show Gist options
  • Save Kr0n0/c86c6aa8197746ff873693e56d0297e9 to your computer and use it in GitHub Desktop.
Save Kr0n0/c86c6aa8197746ff873693e56d0297e9 to your computer and use it in GitHub Desktop.
Check which machines are up by pinging all the network
#!/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