Created
September 3, 2012 19:12
-
-
Save vndmtrx/3612522 to your computer and use it in GitHub Desktop.
Retrieve list of connected clients and compare with dhcp list.
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
| #!/usr/bin/env zsh | |
| iw dev wlan0 station dump | grep -i Station | cut -d " " -f 2 | xargs -I % zsh -c "echo '%: '; grep -i % /etc/dhcpd.conf" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment