I have two Nexus switches OS version not detected in device info

Hi Team, I have two Nexus switches OS version not detected ran snmpwalk against ENTITY-MIB::entPhysicalSoftwareRev

Got this error “MIB search path: /opt/librenms/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf Cannot find module (ENTITY-MIB): At line 1 in (none) ENTITY-MIB::entPhysicalSoftwareRev: Unknown Object Identifier”

  1. I run SNMPWALK with oid "librenms@xxx:/home/xxx$ snmpwalk -v3 -l authPriv -u xx -a sha -A xxx -x aes-128 -X xx xxx.xx.xx.xxx .1.3.6.1.2.1.47.1.1.1.1.10 iso.3.6.1.2.1.47.1.1.1.1.10.10 = “” iso.3.6.1.2.1.47.1.1.1.1.10.24 = STRING: “10.4(6)” iso.3.6.1.2.1.47.1.1.1.1.10.25 = STRING: “10.4(6)” iso.3.6.1.2.1.47.1.1.1.1.10.43 = STRING: “10.4(6)” iso.3.6.1.2.1.47.1.1.1.1.10.44 = STRING: “10.4(6)” iso.3.6.1.2.1.47.1.1.1.1.10.45 = STRING: “10.4(6)” iso.3.6.1.2.1.47.1.1.1.1.10.46 = STRING: “10.4(6)” iso.3.6.1.2.1.47.1.1.1.1.10.47 = STRING: “10.4(6)” iso.3.6.1.2.1.47.1.1.1.1.10.48 = STRING: “10.4(6)” iso.3.6.1.2.1.47.1.1.1.1.10.49 = STRING: “10.4(6)” iso.3.6.1.2.1.47.1.1.1.1.10.50 = STRING: “10.4(6)” iso.3.6.1.2.1.47.1.1.1.1.10.51 = STRING: “10.4(6)”

  2. I can see it with OID SNMPWALK.

Ran discovery:

SNMP[‘/usr/bin/snmpget’ ‘-v3’ ‘-l’ ‘authPriv’ ‘-n’ “” ‘-a’ ‘MD5’ ‘-A’ ‘PASSWORD’ ‘-u’ ‘USER’ ‘-x’ ‘AES’ ‘-X’ ‘PASSWORD’ ‘-OUQ’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/xxxx’ ‘udp:HOSTNAME:161’ ‘ENTITY-MIB::entPhysicalSoftwareRev.22’ ‘ENTITY-MIB::entPhysicalName.149’ ‘ENTITY-MIB::entPhysicalSerialNum.10’]

ENTITY-MIB::entPhysicalSoftwareRev.22 = No Such Instance currently exists at this OID
ENTITY-MIB::entPhysicalName.149 = N9K-C9508
ENTITY-MIB::entPhysicalSerialNum.10 = xxxxxx

Yaml OS data: {“ENTITY-MIB::entPhysicalName.149”:“N9K-C9508”,“ENTITY-MIB::entPhysicalSerialNum.10”:“xxxxxxxxxxx”}

Location:

Hardware: N9K-C9508

OS Version:

OS Features:

I have other Nexus devices can see OS version for it any help please.

You have a custom mib path set. Check /etc/snmp/snmp.conf

It should really be empty or at most contain just mib:

I checked /etc/snmp/snmp.conf contain just mib:

As the snmp packages come without MIB files due to license reasons, loading

of MIBs is disabled by default. If you added the MIBs you can reenable

loading them by commenting out the following line.

mibs :

If you want to globally change where snmp libraries, commands and daemons

look for MIBS, change the line below. Note you can set this for individual

tools with the -M option or MIBDIRS environment variable.

mibdirs /usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf

Your MIB search path does NOT include the LibreNMS shipped MIBs (/opt/librenms/mibs) so of course you can’t find MIBs supplied by LibreNMS…

I suspect you set mib_dir. If you are going to do that you need to copy all MIBs from LibreNMS and keep them up-to-date when LibreNMS updates… I highly suggest NOT doing that and just leave mib_dir default.

I am new to Librenms should edit the MIB path to /opt/librenms/mibs? or what I should do to fix that?

first check the current path with below command
lnms config:get mib_dir

image

I checked the current path:

librenms@xxxxxxx:~$ lnms config:get mib_dir
/opt/librenms/mibs

Please notice have other Nexus devices i can see the OS version in device info I would like to know the issue with libreNMS or devices configs.

You derailed this a bit with your manual walk not including mibs where it looked like that was LibreNMS’ walk, not one you ran manually.

nxos.yaml says:
```
modules:
os:
version: ‘ENTITY-MIB::entPhysicalSoftwareRev.22’
hardware: ‘ENTITY-MIB::entPhysicalName.149’
serial: ‘ENTITY-MIB::entPhysicalSerialNum.10’
```

Looks like it only tries those exact OIDs which ENTITY-MIB::entPhysicalSoftwareRev.22 doesn’t work for your hardware.

You could try adding ENTITY-MIB::entPhysicalSoftwareRev.24