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-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to