Non standard switches and MacTrack

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
johng7777777
Posts: 18
Joined: Thu Jan 19, 2012 3:11 pm

Non standard switches and MacTrack

Post by johng7777777 »

Hi again,

So we got our test case working on our Cisco 2960 Catalyst Switch...now comes the heavy lifting. How do we get MacTrack going on switches that don't have a predefined template? MacTrack/Cacti can currently poll these Tellabs 7345 Ethernet Aggregation switches and collect interfaces, bandwidth, different packet types per second, etc. What we really need though is a way to help manage devices/MACs on our carrier network...this is why we are hopeful about MacTrack.

Our specifics are:

We are running Cacti Version 0.8.7i

With MacTrack Version 2.9.1 with PIA 3.1 ontop of a CentOS 5.6, with PHP 5.3.3

----------

The debug on the commandline for this particular device looks like this when I use "get_generic_switch_ports":

[root@sflow mactrack]# php mactrack_scanner.php -id=1 -d
DEBUG: HOST: xxx.xxx.xxx.xxx is alive, processing has begun.
DEBUG: Scanning function is 'get_generic_switch_ports'
DEBUG: ifIndexes data collection complete
DEBUG: ifIndexes data collection complete. '5' rows found!
DEBUG: ifTypes data collection complete. '5' rows found!
DEBUG: ifNames data collection complete. '5' rows found!
DEBUG: ipAddrTable scanning for link ports data collection complete. '2' rows found!
DEBUG: ifSpeed data collection complete. '5' rows found!
DEBUG: ifHighSpeed data collection complete. '5' rows found!
DEBUG: ifDuplex data collection complete. '4' rows found!
DEBUG: ifDescr data collection complete. '5' rows found!
DEBUG: ifMtu data collection complete. '5' rows found!
DEBUG: ifPhysAddress data collection complete. '5' rows found!
DEBUG: ifAdminStatus data collection complete. '5' rows found!
DEBUG: ifOperStatus data collection complete. '5' rows found!
DEBUG: ifLastChange data collection complete. '5' rows found!
DEBUG: ifInOctets data collection complete. '5' rows found!
DEBUG: ifOutOctets data collection complete. '5' rows found!
DEBUG: ifHCInOctets data collection complete. '5' rows found!
DEBUG: ifHCOutOctets data collection complete. '5' rows found!
DEBUG: ifInNUcastPkts data collection complete. '5' rows found!
DEBUG: ifOutNUcastPkts data collection complete. '5' rows found!
DEBUG: ifInUcastPkts data collection complete. '5' rows found!
DEBUG: ifOutUcastPkts data collection complete. '5' rows found!
DEBUG: ifInDiscards data collection complete. '5' rows found!
DEBUG: ifInErrors data collection complete. '5' rows found!
DEBUG: ifInUnknownProtos data collection complete. '5' rows found!
DEBUG: ifOutDiscards data collection complete. '5' rows found!
DEBUG: ifOutErrors data collection complete. '5' rows found!
DEBUG: ifInterfaces assembly complete: 5060
DEBUG: Adding IfInterfaces Records
INFO: HOST: xxx.xxx.xxx.xxx, TYPE: Tellabs 7345 Ethernet Aggregation Switch, TOTAL PORTS: 4, OPER PORTS: 3
DEBUG: Port number information collected.
DEBUG: No user ports on this network.
[root@sflow mactrack]#

and like this when i use "get_generic_dot1q_switch_ports":

[root@sflow mactrack]# php mactrack_scanner.php -id=1 -d
DEBUG: HOST: xxx.xxx.xxx.xxx is alive, processing has begun.
DEBUG: Scanning function is 'get_generic_dot1q_switch_ports'
DEBUG: ifIndexes data collection complete
DEBUG: ifIndexes data collection complete. '5' rows found!
DEBUG: ifTypes data collection complete. '5' rows found!
DEBUG: ifNames data collection complete. '5' rows found!
DEBUG: ipAddrTable scanning for link ports data collection complete. '2' rows found!
DEBUG: ifSpeed data collection complete. '5' rows found!
DEBUG: ifHighSpeed data collection complete. '5' rows found!
DEBUG: ifDuplex data collection complete. '4' rows found!
DEBUG: ifDescr data collection complete. '5' rows found!
DEBUG: ifMtu data collection complete. '5' rows found!
DEBUG: ifPhysAddress data collection complete. '5' rows found!
DEBUG: ifAdminStatus data collection complete. '5' rows found!
DEBUG: ifOperStatus data collection complete. '5' rows found!
DEBUG: ifLastChange data collection complete. '5' rows found!
DEBUG: ifInOctets data collection complete. '5' rows found!
DEBUG: ifOutOctets data collection complete. '5' rows found!
DEBUG: ifHCInOctets data collection complete. '5' rows found!
DEBUG: ifHCOutOctets data collection complete. '5' rows found!
DEBUG: ifInNUcastPkts data collection complete. '5' rows found!
DEBUG: ifOutNUcastPkts data collection complete. '5' rows found!
DEBUG: ifInUcastPkts data collection complete. '5' rows found!
DEBUG: ifOutUcastPkts data collection complete. '5' rows found!
DEBUG: ifInDiscards data collection complete. '5' rows found!
DEBUG: ifInErrors data collection complete. '5' rows found!
DEBUG: ifInUnknownProtos data collection complete. '5' rows found!
DEBUG: ifOutDiscards data collection complete. '5' rows found!
DEBUG: ifOutErrors data collection complete. '5' rows found!
DEBUG: ifInterfaces assembly complete: 5062
DEBUG: Adding IfInterfaces Records
INFO: HOST: xxx.xxx.xxx.xxx, TYPE: Tellabs 7345 Ethernet Aggregation Switch, TOTAL PORTS: 4, OPER PORTS: 3
DEBUG: Port number information collected.
DEBUG: No user ports on this network.
[root@sflow mactrack]#

---------------------

Do I need to somehow pass something special in the "SNMP Options" section of MacTrack? If so, what would this be exactly? Something akin to "show mac-address table" that I can issue on the CLI of the switch? Do I need to walk the MIB and find this OID and then define that for the device in MacTrack?

Thanks for any insight you guys may be able to provide....this would really help our company when things go bad on our network.

The switches only work with SNMP Version 3 by the way.

A top of the snmpwalk of a switch looks like so:

[Wed Nov 07 | root@xxxx:~]$ less xxx-2-walk-new.txt
SNMPv2-MIB::sysDescr.0 = STRING: Tellabs 7345 Ethernet Aggregation Switch
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.1397.2.35
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (127541503) 14 days, 18:16:55.03
SNMPv2-MIB::sysContact.0 = STRING: Tellabs Technical Assistance at 1.800.443.5555
SNMPv2-MIB::sysName.0 = STRING: xxx-Node1
SNMPv2-MIB::sysLocation.0 = STRING: Tellabs Operations, Inc, USA
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (127540396) 14 days, 18:16:43.96
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-SMI::enterprises.2076.99
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-SMI::enterprises.2076.27.1
SNMPv2-MIB::sysORID.3 = OID: IF-MIB::interfaces
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-SMI::transmission.7.2
SNMPv2-MIB::sysORID.5 = OID: SNMPv2-SMI::mib-2.158.1.1
SNMPv2-MIB::sysORID.6 = OID: SNMPv2-SMI::enterprises.2076.121.1
SNMPv2-MIB::sysORID.7 = OID: SNMPv2-SMI::enterprises.1397.2.33.22
SNMPv2-MIB::sysORID.8 = OID: SNMPv2-SMI::enterprises.2076.116.2.3
SNMPv2-MIB::sysORID.9 = OID: SNMPv2-SMI::enterprises.2076.119.1
SNMPv2-MIB::sysORID.10 = OID: SNMPv2-SMI::enterprises.2076.134.1.1
SNMPv2-MIB::sysORID.11 = OID: SNMPv2-SMI::enterprises.2076.118.1
SNMPv2-MIB::sysORID.12 = OID: SNMPv2-SMI::mib-2.17.2.19
SNMPv2-MIB::sysORID.13 = OID: SNMPv2-SMI::enterprises.2076.79
SNMPv2-MIB::sysORID.14 = OID: SNMPv2-SMI::enterprises.2076.123.1
SNMPv2-MIB::sysORID.15 = OID: SNMPv2-SMI::enterprises.1397.2.33.9
SNMPv2-MIB::sysORID.16 = OID: SNMPv2-SMI::enterprises.2076.80.1
SNMPv2-MIB::sysORID.17 = OID: SNMPv2-SMI::enterprises.1397.2.33.8
johng7777777
Posts: 18
Joined: Thu Jan 19, 2012 3:11 pm

Re: Non standard switches and MacTrack

Post by johng7777777 »

Hmmm... I think I need to write a new add a new "MAC Address Scanning Function". SNMP Options in the MAC Track GUI is not what I want.

Anyone have any tips on writing a new MAC Address Scanning Function? Do I need to find the OID for "sh mac addresses"?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest