Dealing with SNMP MIBS dependencies

Marcel Pineda
Tera Contributor

Hello all,

 

I am trying to load SNMP MIB files from Brocade, because I want to receive SNMP traps from those devices and by loading the MIB files, events will be properly formatted.

Vendor provides a package with 10 .mib files, and there are dependencies between them. 

https://techdocs.broadcom.com/us/en/fibre-channel-networking/fabric-os/fabric-os-mib/9-1-x/understan...

I went into 'MID Server > SNMP MIBs' and created 10 entries, one for each .mib file. Then I restarted MID server.

When I check MID server logs, I see errors like this:

2023-11-27 12:22:23 WARN (MIB Initializer) [SNMP_MIBs:85] MIB loader errors when loading MIB: BROCADE-MAPS-MIB
---line 22, column 10: couldn't find referenced MIB 'SW-MIB'

---line 293, column 3: undefined symbol 'swVfId'
---line 314, column 3: undefined symbol 'swVfId'

 

What is the best option to deal with these dependencies and ensure that MID server will load the MIB files in the right order?

 

Thanks in advance.

5 REPLIES 5

DaveHertel
Kilo Sage
Kilo Sage

Agreed... its cumbersome and somewhat trial-and-error, unfortunately.    I wish there was a way to have the system plow thru all the MIBS, have each MIB cross-ref other MIBs for dependency and deal with it there, before rebooting... looking for errors... adding more files... rebooting... etc. 

Painful