02-03-2014 10:56 AM
I would like to have the ability to programatically/remotely tell what Access Point a Client is connected to given only it's mac address. I can think of two ways to do this. Create a script to take the mac address as the input and then connect to the controller and run some commands to pull the AP name. Something like..
#show ap association client-mac MAC-ADDRESS | include MAC-ADDRESS
or do something through snmp. If possible I prefer the SNMP method as then I don't have to store the username/password for the controller in a file. Is this possible to do through SNMP, if so how? Also if I'm missing an easier way please let me know.
Solved! Go to Solution.
02-03-2014 11:01 AM
Do you have AirWave ?
Lead Mobility Engineer @ Integration Partners
AMFX | ACMX | ACDX | ACCX | CWAP | CWDP | CWNA
02-03-2014 11:17 AM
You could SNMP walk the switches and based on the port that the MAC appears on you can trace what AP is on that port and thus understand to what AP he is connected.
02-03-2014 11:39 AM
02-03-2014 11:49 AM
Thats what I mean .... you SNMP walk the ports on the switch ... thus you find the user on SW A port X - in the documentation then I would think you could see that AP-Y is connected to that port. Thus the Client is connected to AP-Y.
02-03-2014 03:02 PM
You can use these SNMP MIBS to achieve this:
Get list of clients with their physical addresses:
snmpwalk -Os -c public -v 2c 184.108.40.206 iso.3.6.1.private.enterprises.148220.127.116.11.18.104.22.168.2
userPhyAddress.172.16.206.246 = STRING: b8:17:c2:00:11:22
Get a list of locations per client IP:
snmpwalk -Os -c public -v 2c 22.214.171.124 iso.3.6.1.private.enterprises.148126.96.36.199.188.8.131.52.7
userLocation.172.16.206.246 = STRING: AP1
You can download the Aruba MIBS and documentation from the Aruba support website.
ACMX#255 | ACMP | ACCP | AWMP