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

Radhika Aluru
Tera Guru

Hello Marcel,

 

Please try to load one MIB file at a time rather than loading all the MIB files once. Try to find the independent mib file and start with that one and move on the dependent mib files.

 

 

Hello Radhika, 

You mean that if I upload to SNMP MIBs in the right order, when the MID server gets restarted it will read the files based in that creation order?

Or do I have to load 1 MIB, restart MID server and then load the next one? I do not think this would work because when I move the group of SNMP MIBs from one SN instance to another (via Update Set), this won't be possible.

 

Thank you

 

DaveHertel
Kilo Sage
Kilo Sage

Due to the error, you need to also load MIBs that are missing (i.e. referenced from other MIBS).  In this case SW-MIB

Note the error line:   couldn't find referenced MIB 'SW-MIB'

 

All MIB dependencies must be loaded too.. which is painful but required.  You have to look at MID startup logs to find these error/dependencies, then add those missing MIBS... restart the mid... try again looking at logs..etc.

 

Hope this helps..

Hi Dave, issue is that there is no way to inform to the MID server the order to load the MIB files. So I suppose it is done in alphabetical order, maybe? This does not mean it is the right order based on dependencies.
I tried adding all the 10 MIB files I had (main file and dependencies) at once, but then I saw in the logs that there were some errors due to the wrong loading order but there is no way to change this, as far as I know.