FAQ:MIBs 02

From Net-SNMP Wiki
Jump to: navigation, search

Why aren't my MIB files being read in?

There are two basic likely causes - either the library isn't attemping to load these particular MIB files, or it's trying to load them but can't locate them.

By default, the Net-SNMP library loads a specific subset of MIB files. This list is set when the suite is first configured and compiled, and basically corresponds to the list of modules that the agent supports.
(This is a simplification, but is a reasonable first approximation).

In order to load additional MIB files, it is necessary to add them to this default list. See the FAQ entry "How do I add a MIB to the tools?" for more information about how to do this.


Alternatively, the tools may be looking in the wrong place. The directory where the library looks for MIB files is also set when the software is first configured and compiled. If you put new MIB files in the wrong location, then the library won't be able to find them (and will complain).

This problem may arise when switching from a vendor-supplied distribution to one compiled from source (or vice versa).
See the next entry for more information.

   FAQ:MIBs
   
  1. Where can I find a MIB compiler?
  2. Why aren't my MIB files being read in?
  3. Where should I put my MIB files?
  4. What does "Cannot find module (XXX-MIB)" mean?
  5. I'm getting answers, but they're all numbers. Why?
  6. What does "unlinked OID" mean?
  7. The parser doesn't handle comments properly. Why not?
  8. How can I get more information about problems with MIB files?
  9. What's this about "too many imported symbols"?
  10. Do I actually need the MIB files?