Template:FAQ:MIBs 03b

From Net-SNMP Wiki
Jump to: navigation, search

If you've compiled the package from source (or are using binaries from the project website), then you should probably put new MIB files in the directory /usr/local/share/snmp/mibs

If you are using vendor-supplied binaries, then the MIB files may well be located somewhere else (e.g. /usr/share/snmp/mibs, /opt/snmp/mibs, or /etc/sma/snmp/mibs). Have a look for where existing MIB files are installed, and try adding your MIBs to the same directory.

If you compiled the source yourself, but specified a different --prefix value when running configure, then the location of the MIB directory will be {prefix}/share/snmp/mibs.

If you're still not sure where to put your MIB files, try running the command

    snmpget  -Dparse-mibs  2>&1 | grep directory

This will display the location(s) where the library is looking for MIB files.