I need snmpd to load my own MIB in order to respond to snmpget and snmpwalk.
I have tried to execute the steps described in "TUT: Writing a Subagent" (
http://net-snmp.sourceforge.net/wiki...ing_a_Subagent)
However, it doesn't work for me and when I run
snmpget localhost NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
I get the error:
MIB search path: /home/my_name/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (NET-SNMP-TUTORIAL-MIB): At line 1 in (none)
NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0: Unknown Object Identifier
In order not to extend myself here and that this query is not extensive and heavy to read, I attach a document (bug_2020-02-12_details.pdf) with the detail of all the steps that I have followed and the result obtained .
What am I doing wrong or have I missed? Is there an easier way to get this (snmpd load my own MIB)?