June 2009 archives

Entry no.: 760

4 Jun 2009, 1:26 PM

Tags: , , ,

Comments: 2

Apple Monitoring AirPort access

Who's there?

As Macintosh computers proliferate and AirPort Wi-Fi base stations are no longer the esoteric boxes they used to be 7 years ago, I hear more and more often the question "How can I monitor my AirPort for intruder access?". Luckily, Mac OS X is built upon UNIX, so all the tools are there, waiting to be used.

Here is a little one-liner, a shell script I wrote a number of years ago and used ever since to monitor the access on different generations of Apple AirPort base stations:

snmpwalk -v 2c -c [SNMP Community String] -Oq [Airport IP] RFC1213-MIB::atPhysAddress | grep -Eo "([0-9a-fA-F]{2} ){5}([0-9a-fA-F]{2})" | tr "[:lower:]" "[:upper:]" | sed -e 's/[\. ]/:/g' -e 's/[MAC address 1]/[Station name 1]/' -e 's/[MAC address n]/[Station name n]/' | sort | awk '{print FNR "\t" $0}'

Continue reading "Monitoring AirPort access" »