Re: MIB search path
Craig Small <[email protected]> Fri, 26 Mar 2021 09:07:58 +1100
| Newsgroups | gmane.network.net-snmp.devel,gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CALy8Cw7yEG7mXCTQNMzZjkT7n4UeFLzzbNXXXUnyVNjHiEkmdA@mail.gmail.com> |
Hi Simon, net-snmp-config is a shell script that literally prints $HOME/.snmp/mibs snmpinform (or actually the snmp library) is a little more complicated with a bunch of overrides. So I'm trying to get what you see with: # HOME=/home/root snmpinform -v 2c -c public -m blahmib 127.0.0.1 1 blahoid MIB search path: /home/root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf Cannot find module (blahmib): At line 1 in (none) blahoid: Unknown Object Identifier (Sub-id not found: (top) -> blahoid) That output is a standard Debian setup, yours might be slightly different. Try with an extra flag -Dget_mib_directory (before the IP address), it will tell you what the library is doing with the MIB directories. - Craig _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders