Skip to content

Instantly share code, notes, and snippets.

@jglenn9k
Created October 26, 2014 03:29
Show Gist options
  • Save jglenn9k/e4ce8bb9d5cd7f8d0650 to your computer and use it in GitHub Desktop.
Save jglenn9k/e4ce8bb9d5cd7f8d0650 to your computer and use it in GitHub Desktop.
for i in $(seq 1 253); do x=$(arping -c 3 10.200.61.$i | awk '{ if ($0 ~ "^Unicast reply") { print $4" "$5 } }' | sort -u); [ "$x" ] && echo $x || echo 10.200.61.$i FREE; done > freeips.txt
@jglenn9k
Copy link
Author

Check arp for unused IPs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment