Skip to content

Instantly share code, notes, and snippets.

@vndmtrx
Created September 3, 2012 19:12
Show Gist options
  • Select an option

  • Save vndmtrx/3612522 to your computer and use it in GitHub Desktop.

Select an option

Save vndmtrx/3612522 to your computer and use it in GitHub Desktop.
Retrieve list of connected clients and compare with dhcp list.
#!/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