#28 Add device support for Cisco Nexus series

closed-postponed
5
2014-03-08
2010-08-11
No

Hi, I'm currently running 2.02-cvs and 1.1-cvs of Netdisco and unable to query ARP/MAC info for these devices. Please let me know if I can assist by providing additional information or doing a webex to provide access to the device to test. All Cisco MIBs have been updated as well.

http://www.cisco.com/en/US/docs/switches/datacenter/nexus5000/sw/mib/reference/NX5000_MIBRef.html

netdisco@netdisco2:~$ ./netdisco -D -A 172.17.0.50
Version string '2.02-cvs' contains invalid data; ignoring: '-cvs' at (eval 17) line 2.
n e t d i s c o
--------------------------------------------------
Using Config File : /usr/local/netdisco-cvs-1.1/netdisco.conf
arpnip(172.17.0.50) :
get_device(172.17.0.50)
get_device(172.17.0.50) - Connecting using cached info: 172.17.0.50/c/2
create_device(172.17.0.50,c,2*,AutoSpecify,bw:default)
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/allied
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/arista
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/aruba
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/asante
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cabletron
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cisco
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cyclades
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/dell
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/enterasys
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/extreme
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/foundry
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/hp
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/juniper
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/netscreen
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/nortel
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/rfc
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/net-snmp
SNMP::Info::_global layers : sysServices.0
SNMP::Info::_global description : sysDescr.0
SNMP::Info::_global id : sysObjectID.0
SNMP::Info 2.02-cvs ($Id: Info.pm,v 1.157 2010/07/26 14:31:41 jeroenvi Exp $)
SNMP::Info::device_type() layers:01000110 id:9 sysDescr:"Cisco NX-OS(tm) n5000, Software (n5000-uk9), Version 4.2(1)N1(1), RELEASE SOFTWARE Copyright (c) 2002-2010 by Cisco Systems, Inc. Device Manager Version 5.0(1a), Compiled 4/29/2010 19:00:00"
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/allied
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/arista
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/aruba
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/asante
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cabletron
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cisco
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cyclades
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/dell
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/enterasys
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/extreme
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/foundry
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/hp
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/juniper
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/netscreen
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/nortel
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/rfc
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/net-snmp
SNMP::Info::specify() - Changed Class to SNMP::Info::Layer3::Cisco.
SNMP::Info::_global layers : sysServices.0
SNMP::Info::_global description : sysDescr.0
[172.17.0.50] Device Type : SNMP::Info::Layer3::Cisco
mac_getportmacs() ... found 37923 MACs.
SNMP::Info::_load_attr at_paddr : ipNetToMediaPhysAddress
SNMP::Info::_load_attr old_at_paddr : atPhysAddress
SNMP::Info::_load_attr at_netaddr : ipNetToMediaNetAddress
SNMP::Info::_load_attr old_at_netaddr : atNetAddress
[172.17.0.50] Processed 0 ARP Cache entries.
SNMP::Info::_load_attr ip_netmask : ipAdEntNetMask
netdisco@netdisco2:~$ ./netdisco -D -M 172.17.0.50
Version string '2.02-cvs' contains invalid data; ignoring: '-cvs' at (eval 17) line 2.
n e t d i s c o
--------------------------------------------------
Using Config File : /usr/local/netdisco-cvs-1.1/netdisco.conf
macsuck(172.17.0.50) :
load_old_devices()
mac_getportmacs() ... found 37923 MACs.
get_device(172.17.0.50)
get_device(172.17.0.50) - Connecting using cached info: 172.17.0.50/c/2
create_device(172.17.0.50,c,2*,AutoSpecify,bw:default)
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/allied
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/arista
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/aruba
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/asante
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cabletron
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cisco
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cyclades
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/dell
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/enterasys
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/extreme
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/foundry
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/hp
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/juniper
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/netscreen
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/nortel
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/rfc
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/net-snmp
SNMP::Info::_global layers : sysServices.0
SNMP::Info::_global description : sysDescr.0
SNMP::Info::_global id : sysObjectID.0
SNMP::Info 2.02-cvs ($Id: Info.pm,v 1.157 2010/07/26 14:31:41 jeroenvi Exp $)
SNMP::Info::device_type() layers:01000110 id:9 sysDescr:"Cisco NX-OS(tm) n5000, Software (n5000-uk9), Version 4.2(1)N1(1), RELEASE SOFTWARE Copyright (c) 2002-2010 by Cisco Systems, Inc. Device Manager Version 5.0(1a), Compiled 4/29/2010 19:00:00"
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/allied
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/arista
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/aruba
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/asante
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cabletron
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cisco
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/cyclades
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/dell
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/enterasys
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/extreme
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/foundry
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/hp
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/juniper
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/netscreen
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/nortel
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/rfc
SNMP::Info::init() - Adding new mibdir:/usr/local/netdisco/mibs/net-snmp
SNMP::Info::specify() - Changed Class to SNMP::Info::Layer3::Cisco.
SNMP::Info::_global layers : sysServices.0
SNMP::Info::_global description : sysDescr.0
[172.17.0.50] Device Type : SNMP::Info::Layer3::Cisco
SNMP::Info::_load_attr i_index : ifIndex
SNMP::Info::_load_attr i_description : ifDescr
SNMP::Info::_load_attr fw_mac : dot1dTpFdbAddress
SNMP::Info::_load_attr fw_port : dot1dTpFdbPort
SNMP::Info::_load_attr bp_index : dot1dBasePortIfIndex
Saw : 0 forwarding table entries. Took 3 seconds.

Discussion

  • Jeroen van Ingen

    • assigned_to: nobody --> jeroenvi
     
  • Jeroen van Ingen

    Let's look at the arpnip part first. The NX5k supports the IP-MIB according to the MIb reference, but the question is whether it returns data from ipNetToMediaPhysAddress and ipNetToMediaNetAddress.

    Could you try a snmpwalk on those objects and see if both return data? I'd at least expect data from ipNetToMediaPhysAddress.

    If both objects are empty, please try snmpwalking ipNetToMediaPhysicalPhysAddress.

     
  • Brian Wilson

    Brian Wilson - 2010-08-12

    Thanks for following up, Jeroen! I ran the individual commands on ipNetToMediaPhysAddress, ipNetToMediaNetAddress, and ipNetToMediaPhysicalPhysAddress and got nothing. Ran from the ~/netdisco/mibs directory with these options:

    snmpwalk -m ALL -M cisco:rfc:net-snmp -c string-v 1 172.17.0.50

    I will send you a separate message where you can see the full snmpwalk information for this host since these all returned nothing.

    Thanks again for your assistance!
    Brian

     
  • Jeroen van Ingen

    OK, given the snmpwalk output (and a quick Google lookup), it seems like the Nexus 5k is a layer 2 switch only, it doesn't do routing. Is that correct? The only routing info it gives points to your management network (interface mgmt0). See the IP-FORWARD-MIB section in your snmpwalk output.

    Then for the macsuck part: the current output doesn't contain MAC to port mappings, but the Nexus 5k might use "community based indexing", in which case a VLAN ID has to be specified for which to retrieve the forwarding table.

    Assuming you have several VLANs configured, could you try a snmpwalk with "@vlanid" added to the community string? Eg for vlan 2, "snmpwalk -m ALL -M cisco:rfc -c community@2 172.17.0.50" ?

     
  • Brian Wilson

    Brian Wilson - 2010-08-12

    Yes, this is just layer2, sorry for the confusion there. I just logged into the device to confirm which vlans were active on the device. I tested 3 VLAN's that I know were active with @ community-based indexing, and got "no response from host".

    I tried both -v 1 and -v 2c with -c string@vlan (where I tried both VLAN 15, 16 and 19 which are active on this device).

    I confirmed the @vlan community based indexing worked on another cisco device (non nexus) to insure I had the syntax correct.

     
  • Jeroen van Ingen

    Strange, very strange. I'd expect the forwarding table to be accessible through SNMP, but the regular methods don't seem to work.
    Do you happen to ahve some kind of support on the device? Could you ask your supplier what MIB or OID to use, if you want to use SNMP to see which MACs have been learned on which ports?

     
  • Brian Wilson

    Brian Wilson - 2010-08-12

    I asked a coworker who has done more on these devices than I the same question, here was his response:

    It doesn't look like the Nexus switches support the Bridge MIB.I found a list of supported MIBs, and none of the bridging MIBs were on that list. It was for version 4.0.0 of the OS, and we're running 4.1.1. I'm looking for a newer list.

    I've done some MIB walks and I haven't found the MAC table. It is not under the usual MIB-2 tree, so if it does exist it is under a Cisco-specific MIB.

     
  • Brian Wilson

    Brian Wilson - 2010-08-13

    Response from Cisco:

    The BRIDGE-MIB will start support in the software branch code-named "EagleHawk"
    and it's slated for release Q4CY2010.

     
  • Jeroen van Ingen

    • status: open --> closed-postponed
     
  • Jeroen van Ingen

    * Arpnip not supported since the device is L3 only,
    * Macsuck not yet supported since the device doesn't expose forwarding tables through SNMP. We'll have to check new software releases after Q4Y2010 for BRIDGE-MIB support.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks