11-22-2016 02:44 PM
Hello,
I'm trying to write a script to hit my 371s via SNMP and pull client associations (specifically their MAC addresses).
I've tried most of the OIDs I've found mentioned in similar threads / google to no avail.
Does anyone know the magic (if there is any) or better yet have this working ?
Thanks.
Solved! Go to Solution.
06-26-2017 09:28 PM
Hi,
old reply I know. The MACs are there - they are the last 6 digits in the oids.
eg from above:
SNMPv2-SMI::enterprises.9.6.1.104.1.7.1.1.2.0.34.250.97.149.218 = STRING: "wlan0"
0.34.250.97.149.218 is 00:22:fa:61:95:da
# perl -le '$oid="0.34.250.97.149.218";print join(":",map{sprintf"%02x",$_}(split(/\./,$oid)))'
11-23-2016 11:42 AM
I think I might have answered my own question - and it's not good.
I believe the OID I want is 1.3.6.1.4.1.9.6.1.104.1.7.1.1.1. This is under the ciscosb (small business) part of the tree. This one is apAssocStationMac. It doesn't return anything below.
However 1.3.6.1.4.1.9.6.1.104.1.7.1.1.2 does. This is apAssocInterface. I.e the interface on the AP where the associations are.
Basically if you walk the 371 up a level at 1.3.6.1.4.1.9.6.1.104.1.7.1.1 - you get a smattering of info. Client uptime, RSSI etc. But not the client MACs ! :(
vom@ice:~$ snmpwalk -v 2c -c public ap-wap371-1 1.3.6.1.4.1.9.6.1.104.1.7.1.1.1
SNMPv2-SMI::enterprises.9.6.1.104.1.7.1.1.1 = No Such Object available on this agent at this OID
vom@ice:~$ snmpwalk -v 2c -c public ap-wap371-1 1.3.6.1.4.1.9.6.1.104.1.7.1.1.2
SNMPv2-SMI::enterprises.9.6.1.104.1.7.1.1.2.0.34.250.97.149.218 = STRING: "wlan0"
SNMPv2-SMI::enterprises.9.6.1.104.1.7.1.1.2.4.12.206.219.101.244 = STRING: "wlan0"
SNMPv2-SMI::enterprises.9.6.1.104.1.7.1.1.2.16.218.67.21.181.153 = STRING: "wlan0"
SNMPv2-SMI::enterprises.9.6.1.104.1.7.1.1.2.24.180.48.116.218.176 = STRING: "wlan0"
SNMPv2-SMI::enterprises.9.6.1.104.1.7.1.1.2.156.243.135.186.2.148 = STRING: "wlan0"
Can anyone from Cisco look into this ? I'd so love to have that single OID respond - my script is literally working other than the AP not giving me the info (I tested it using the dot1dFDB part of the tree).
06-26-2017 09:28 PM
Hi,
old reply I know. The MACs are there - they are the last 6 digits in the oids.
eg from above:
SNMPv2-SMI::enterprises.9.6.1.104.1.7.1.1.2.0.34.250.97.149.218 = STRING: "wlan0"
0.34.250.97.149.218 is 00:22:fa:61:95:da
# perl -le '$oid="0.34.250.97.149.218";print join(":",map{sprintf"%02x",$_}(split(/\./,$oid)))'
06-29-2017 01:23 PM
Wow - thanks so much for the reply. I'm rewriting my client report script right now.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: