Welcome, Guest. Please login or register.

Author Topic: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?  (Read 22576 times)

brunonilo

  • Guest
Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« on: January 21, 2010, 03:37:47 PM »
With default discovery , the interfaces was discovered and summary too, but the links, modules and vlans was not discovered...

Discovered the MIBs, but don't know how to proceed with needed changes...
ftp://ftp-sj.cisco.com/pub/mibs/supportlists/nexus5000/Nexus5000MIBSupportList.html

could anyone  help me?

Thanks
« Last Edit: January 21, 2010, 03:45:18 PM by whitehatguy »

brunonilo

  • Guest
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #1 on: January 22, 2010, 10:19:43 PM »
# Definition for 1.3.6.1.4.1.9.12.3.1.3.719 created by Defgen 1.5 on 22.Jan 10 18:52 (admin)

# General
SNMPv   2HC
Type    N5K-C5020P-BF
OS      IOS
Icon    c3bd
Bridge  VLX
Dispro  CDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11.22
Bimage  1.3.6.1.2.1.47.1.1.1.1.9.22

# Vlan Specific
VLnams 
VTPdom 
VTPmod 
   
# Interfaces
IFalia  1.3.6.1.2.1.31.1.1.1.18
IFalix
IFvlan  1.3.6.1.4.1.9.9.68.1.2.2.1.2
IFvlix
IFdupl
IFduix
Halfdp  1
Fulldp  2

# Modules
Modesc  1.3.6.1.2.1.47.1.1.1.1.2
Moclas  1.3.6.1.2.1.47.1.1.1.1.5
Movalu  9
Moslot  1.3.6.1.2.1.47.1.1.1.1.7
Modhw   1.3.6.1.2.1.47.1.1.1.1.8
Modsw   1.3.6.1.2.1.47.1.1.1.1.10
Modfw   1.3.6.1.2.1.47.1.1.1.1.9
Modser  1.3.6.1.2.1.47.1.1.1.1.11
Momodl  1.3.6.1.2.1.47.1.1.1.1.13

# RRD Graphing
CPUutl
Temp
MemCPU
Custom

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2749
    • View Profile
    • NeDi
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #2 on: January 26, 2010, 06:58:34 PM »
I use snmpwalk > file and grep in such cases. Creating a vlan like 1717 helps finding it. Of course using a proper MIB browser helps too (e.g. the one on NeDi's homepage)...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

rufer

  • Guest
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #3 on: September 15, 2010, 01:43:42 PM »
Here's my version. I chose to filter for removable modules, not for a module class. So the power supplies and fan trays appear as modules.
I chose the chassis serial number as the serial number, because this is the number on the case and the number advertised by CDP.

Code: [Select]
# Definition for 1.3.6.1.4.1.9.12.3.1.3.719 created by Defgen 1.4 on 15.Sep 10:42:29 (M. Rufer)

# General
SNMPv   2HC
Type    N5K-C5020P-BF
OS      IOS
Icon    c2bn
Bridge  VLX
Dispro  CDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11.10
Bimage  1.3.6.1.2.1.47.1.1.1.1.9.22

# Vlan Specific
VLnams  1.3.6.1.4.1.9.9.46.1.3.1.1.4
VTPdom
VTPmod

# Interfaces
IFalia  1.3.6.1.2.1.31.1.1.1.18
IFalix
IFvlan  1.3.6.1.4.1.9.9.68.1.2.2.1.2
IFvlix
IFdupl  1.3.6.1.2.1.10.7.2.1.19
IFduix
Halfdp  2
Fulldp  3

# Modules
Modesc  1.3.6.1.2.1.47.1.1.1.1.2
Moclas  1.3.6.1.2.1.47.1.1.1.1.16
Movalu  1
Moslot  1.3.6.1.2.1.47.1.1.1.1.7
Modhw   1.3.6.1.2.1.47.1.1.1.1.8
Modsw   1.3.6.1.2.1.47.1.1.1.1.9
Modfw   1.3.6.1.2.1.47.1.1.1.1.10
Modser  1.3.6.1.2.1.47.1.1.1.1.11
Momodl  1.3.6.1.2.1.47.1.1.1.1.13

# RRD Graphing
CPUutl  1.3.6.1.4.1.9.9.109.1.1.1.1.8.1
Temp
MemCPU
MemIO

Greetings
Rufer
« Last Edit: November 02, 2010, 11:03:23 AM by rufer »

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2749
    • View Profile
    • NeDi
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #4 on: September 15, 2010, 10:40:29 PM »
Does Config backup work? In other words is NX-OS like IOS in that respect or do we need a NX-OS class? Sorry don't have access to Nexei (plural of Nexus?) these days...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

rufer

  • Guest
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #5 on: September 21, 2010, 01:29:54 PM »
Didn't try that so far. What I remarked is that they finally removed the "wr" command, so you now have to type "copy run start" :)
But for most things, NX OS seems to be like IOS. The commands are very similar.

Greetings
Rufer

GuyMontag

  • Guest
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #6 on: September 21, 2010, 04:17:10 PM »

Do not use a Cisco trademark in the plural or possessive form.
Plural example:
Do not say: The Cisco Nexuses.
Do say: The Cisco Nexus switches.

Found in "Cisco Policy on Trademarks"
http://www.cisco.com/web/about/ac50/ac47/downloads/logo/trademark.pdf

So Nexuses would be the adequate plural, even if they don't like it  ;D

rufer

  • Guest
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #7 on: September 21, 2010, 05:44:36 PM »
Edited the IF duplex OIDs, they were wrong.

The DEF file posted works for Nexus 5010, too:

Code: [Select]
# Definition for 1.3.6.1.4.1.9.12.3.1.3.798 created by Defgen 1.4 on 21.Sep 10:42:29 (M. Rufer)

# General
SNMPv   2HC
Type    N5K-C5010P-BF
OS      IOS
Icon    c2bp
Bridge  VLX
Dispro  CDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11.10
Bimage  1.3.6.1.2.1.47.1.1.1.1.9.22

# Vlan Specific
VLnams  1.3.6.1.4.1.9.9.46.1.3.1.1.4
VTPdom
VTPmod

# Interfaces
IFalia  1.3.6.1.2.1.31.1.1.1.18
IFalix
IFvlan  1.3.6.1.4.1.9.9.68.1.2.2.1.2
IFvlix
IFdupl  1.3.6.1.2.1.10.7.2.1.19
IFduix
Halfdp  2
Fulldp  3

# Modules
Modesc  1.3.6.1.2.1.47.1.1.1.1.2
Moclas  1.3.6.1.2.1.47.1.1.1.1.16
Movalu  1
Moslot  1.3.6.1.2.1.47.1.1.1.1.7
Modhw   1.3.6.1.2.1.47.1.1.1.1.8
Modsw   1.3.6.1.2.1.47.1.1.1.1.9
Modfw   1.3.6.1.2.1.47.1.1.1.1.10
Modser  1.3.6.1.2.1.47.1.1.1.1.11
Momodl  1.3.6.1.2.1.47.1.1.1.1.13

# RRD Graphing
CPUutl  1.3.6.1.4.1.9.9.109.1.1.1.1.8.1
Temp
MemCPU
MemIO

Greetings
Rufer
« Last Edit: November 02, 2010, 11:03:38 AM by rufer »

rufer

  • Guest
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #8 on: September 22, 2010, 11:02:58 AM »
I just attached some fabric extenders and the entity MIB gets way big like this. Too big for the NetSNMP defaults, the message size has to be increased:

#libsnmp.pl, sub Modules, when the SNMP session is established
#add line "-maxmsgsize => '5000',"
Code: [Select]
($session, $error) = Net::SNMP->session(-hostname  => $main::dev{$_[0]}{ip},
                                                -community => $main::dev{$_[0]}{cm},
                                                -timeout   => $misc::timeout,
                                                -version   => $main::dev{$_[0]}{sp},
                                                -translate => [-octetstring => 0x0],
                                                -maxmsgsize => '5000',
                                                -port      => '161');

The value has been found in some cacti forums, not sure if it is useful but it works for the moment.

Greetings
Rufer

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2749
    • View Profile
    • NeDi
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #9 on: September 24, 2010, 06:11:41 PM »
Thanks rufer, this came up already. The new snmp library uses this parameter in the Connect() function:


                  -maxmsgsize   => 5500,   # Nexus need this, tx whitehatguy


Hope it doesn't create problems, but it's been working just fine in my home network so far...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

rufer

  • Guest
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #10 on: November 01, 2010, 05:51:17 PM »
Another point is that the Nexus have very big ifindex values, too big for the SMALLINT value older Nedi versions (up to 1.0) use in the database. Newer versions of Nedi afaik are already working, older ones need the db field changed to at least INT.
PS: My DEFs were missing "bridge VLX"

Greetings
Rufer
« Last Edit: November 02, 2010, 11:06:04 AM by rufer »

rufer

  • Guest
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #11 on: November 04, 2010, 10:55:32 AM »
Yet another remark. The ifdupl oid doesn't work for ports on a FEX (Nexus 2000 series) :( It seems the mibs are missing.

Greetings
Rufer

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2749
    • View Profile
    • NeDi
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #12 on: November 06, 2010, 05:12:23 PM »
Ok, hope Halfudplex is out of question in CEE anyways! BTW won't we need a new OS type like NXOS? Has anyone tried backing up configs yet?
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

rufer

  • Guest
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #13 on: November 08, 2010, 07:59:59 AM »
Introducing NXOS would be a good idea. If you use VPC and config-sync, the command to get the complete configuration is:
show running-config include-switch-profile
So that's already different to IOS.

Greetings
Rufer

rufer

  • Guest
Re: Nexus 5000 def files (oid 1.3.6.1.4.1.9.12.3.1.3.719)?
« Reply #14 on: November 15, 2010, 02:43:44 PM »
I went back to standard entityMIB with the module definitions because there was a bit too much info with the version posted above. With the standard definition, you just see the supervisor and the FEX as modules (plus probably optional modules that I don't have).
It is also possible to skip ifalia, because it is the "standard" value for Cisco. Not sure if this is very clever though, because if we put the value in the file it is obvious at which OID it is read.

PS: Same goes for Nexus 5010

Greetings
Rufer

# Definition for 1.3.6.1.4.1.9.12.3.1.3.719 created by Defgen 1.4 on 15.Sep 10:42:29 (M. Rufer)

# General
SNMPv   2HC
Type    N5K-C5020P-BF
OS      NXOS
Icon    c2bn
Bridge  VLX
Dispro  CDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11.10
Bimage  1.3.6.1.2.1.47.1.1.1.1.9.22

# Vlan Specific
VLnams  1.3.6.1.4.1.9.9.46.1.3.1.1.4
VTPdom
VTPmod

# Interfaces
IFalia
IFalix
IFvlan  1.3.6.1.4.1.9.9.68.1.2.2.1.2
IFvlix
IFdupl  1.3.6.1.2.1.10.7.2.1.19
IFduix
Halfdp  2
Fulldp  3

# Modules
Modesc
Moclas  1.3.6.1.2.1.47.1.1.1.1.5
Movalu  9
Moslot  1.3.6.1.2.1.47.1.1.1.1.7
Modhw   1.3.6.1.2.1.47.1.1.1.1.8
Modsw   1.3.6.1.2.1.47.1.1.1.1.9
Modfw   1.3.6.1.2.1.47.1.1.1.1.10
Modser  1.3.6.1.2.1.47.1.1.1.1.11
Momodl  1.3.6.1.2.1.47.1.1.1.1.13

# RRD Graphing
CPUutl  1.3.6.1.4.1.9.9.109.1.1.1.1.8.1
Temp
MemCPU
MemIO
« Last Edit: November 15, 2010, 03:13:11 PM by rufer »