MacTrack not getting MAC addresses on 2960 and Nexus 5000

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
brettrandall
Posts: 3
Joined: Sun Mar 03, 2013 10:51 pm

MacTrack not getting MAC addresses on 2960 and Nexus 5000

Post by brettrandall »

Hi all

Used Mactrack years ago and setting it up from scratch again. Our switches are Cisco 2960s and Nexus 5000s. Running Cacti 0.8.8b (NET_SNMP 5.5) and Mactrack 2.9.

Problem is that I've added Device Types for these two and can now get them to scan, and it finds lots of ports, but no MAC addresses. The 2960 is a straight switch, the Nexus is a switch/router. On both the 2960 and the 5000, when I run mactrack_scanner.php with debug, I basically get the exact same thing:

...
DEBUG: VLAN Analysis for VLAN: 10/Desktops is complete. ACTIVE PORTS: 199
...
DEBUG: Processing has begun for VLAN: 10
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 10, VLAN_NAME: Desktops, ACTIVE PORTS: 0

That happens for every VLAN.

These are my device types:

Code: Select all

mysql> select * from mac_track_device_types;
+----------------+------------------+--------+-------------+----------------+-------------------+-------------------------------+-----------------------------+-------------------+---------+----------+
| device_type_id | description      | vendor | device_type | sysDescr_match | sysObjectID_match | scanning_function             | ip_scanning_function        | serial_number_oid | lowPort | highPort |
+----------------+------------------+--------+-------------+----------------+-------------------+-------------------------------+-----------------------------+-------------------+---------+----------+
|              1 | Cisco 2960       | Cisco  | 1           | C2960S         | .1.3.6.1.4.1.9    | get_IOS_dot1dTpFdbEntry_ports | Not Applicable - Switch/Hub |                   |       0 |        0 |
|              2 | Cisco Nexus 5000 | Cisco  | 1           | n5000          | .1.3.6.1.4.1.9    | get_IOS_dot1dTpFdbEntry_ports | get_standard_arp_table      |                   |       0 |        0 |
+----------------+------------------+--------+-------------+----------------+-------------------+-------------------------------+-----------------------------+-------------------+---------+----------+
What other info can I provide to get help with this? Having been awhile, I struggled to even remember that I had to manually specify device types so I really can't remember if I'm missing something here...

Brett.
brettrandall
Posts: 3
Joined: Sun Mar 03, 2013 10:51 pm

Re: MacTrack not getting MAC addresses on 2960 and Nexus 500

Post by brettrandall »

Bump...
tommyj
Posts: 43
Joined: Thu Jun 23, 2005 5:16 pm
Location: Stockholm, Sweden

Re: MacTrack not getting MAC addresses on 2960 and Nexus 500

Post by tommyj »

Which version of NX-OS are you on the Nexus 5000? Prior to 5.2 something the SNMP support was limited and did not work at all. I got it working as a L2 switch with version 5.2(1)N1(6)

I think you should change the Device Type to Switch/Router as well for the Nexus 5000.

Also, are you using the 5000 with vrf:s? You may need to configure separate SNMP communities as described in this post:
http://forums.cacti.net/viewtopic.php?f ... s&start=15
configure your nexus snmp sever:
1- create the snmp context and map it to the second VRF :
snmp-server context (context name) vrf (second vrf name)

2- define the second community:
snmp-server community second_community_string

3- set the mib parameters for the second context
snmp-server mib community-map (second_community_string) context (second vrf name)
Hope this helps
brettrandall
Posts: 3
Joined: Sun Mar 03, 2013 10:51 pm

Re: MacTrack not getting MAC addresses on 2960 and Nexus 500

Post by brettrandall »

Hi Tommy

Thanks for replying, had all but given up hope!

We are not using VRFs (just have the default "management" one on there). We are running 5.2(1)N1(4) which is a couple of minor versions earlier than yours, might try an upgrade after-hours on it and see if it suddenly comes to life!

Brett.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest