If there is no Cisco MIB to find the total MAC address count then we cant do much either,we rely on SNMP data like every other NMS.
On the comment that most people pull data from MAC address count per VLANs and then add them up.Are they using MIB values from each VLAN for MAC address count to add them up?
If yes ,please share the MIBs.We should then be able to find an answer.If no,we would like to know more on the script.
Yes I understand that it all has to be done through SNMP
There's no specific MIB to get the data I want, but you can find out the number of MAC addresses on each VLAN and then add them up. Cisco describes part of it in this document: http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094a9b.shtml. The document is actually describing how to use SNMP to find out the port that a MAC address was learned on, but it's a good starting point. One of the steps in the document is:
nms-server2:/home/ccarring> snmpwalk -c public@1 126.96.36.199 dot1dTpFdbAddress
.188.8.131.52.184.108.40.206.220.127.116.11.18.104.22.168.251 = Hex-STRING: 00 D0 D3 6A 47 FB
nms-server2:/home/ccarring> snmpwalk -c public@2 22.214.171.124 dot1dTpFdbAddress
nms-server2:/home/ccarring> snmpwalk -c public@6 126.96.36.199 dot1dTpFdbAddress
.188.8.131.52.184.108.40.206.220.127.116.11.18.104.22.168.102 = Hex-STRING: 00 02 B9 90 4C 66
.22.214.171.124.126.96.36.199.188.8.131.52.184.108.40.206.243 = Hex-STRING: 00 02 FD 6A AA F3
.220.127.116.11.18.104.22.168.22.214.171.124.126.96.36.199.0 = Hex-STRING: 00 10 0D 38 10 00
.188.8.131.52.184.108.40.206.220.127.116.11.18.104.22.168.0 = Hex-STRING: 00 60 54 90 F8 00
.22.214.171.124.126.96.36.199.188.8.131.52.184.108.40.206.10 = Hex-STRING: 00 D0 02 D6 78 0A
.220.127.116.11.18.104.22.168.22.214.171.124.126.96.36.199.60 = Hex-STRING: 00 D0 D3 36 A2 3C
.188.8.131.52.184.108.40.206.220.127.116.11.18.104.22.168.210 = Hex-STRING: 00 E0 1E 9F 0A D2
nms-server2:/home/ccarring> snmpwalk -c public@7 22.214.171.124 dot1dTpFdbAddress
.126.96.36.199.188.8.131.52.184.108.40.206.220.127.116.11.32 = Hex-STRING: 00 10 0D A1 18 20
... and so forth for each VLAN discovered in the first step.
From that point, people talk about writing a script to add up the MACs discovered in each of the VLANs. I haven't actually seen an example script, I've just seen people say that they've done it. There's a discussion about it at this link: https://supportforums.cisco.com/thread/2097158.
It seems pretty easy to do, but I'm trying to keep it in Solarwinds instead of writing an outside script to do it. I'm hoping that there's a way to create a poller in SW to get the MACs and then add them up, but I'm having two problems:
- When testing dot1dTpFdbAddress in SW it only picks up a few MACs on the switch. I think the reason is because you're supposed to specify the VLAN that you want to poll (see Cisco's example above) but I can't find a way to do that in SW.
- If I could find how to do it, I'm not sure how to create a poller that would hit each VLAN on the switch and then add up the MACs. Is that even possible?