Article 4Z983 net-snmp (snmpd) fails to load my own MIB.

net-snmp (snmpd) fails to load my own MIB.

by
jose_spain
from LinuxQuestions.org on (#4Z983)
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)?
Attached Files
pdf.gifbug_2020-02-12_details.pdf (68.8 KB)
latest?d=yIl2AUoC8zA latest?i=G6HhjqOCHnE:vc3dIuSXuWM:F7zBnMy latest?i=G6HhjqOCHnE:vc3dIuSXuWM:V_sGLiP latest?d=qj6IDK7rITs latest?i=G6HhjqOCHnE:vc3dIuSXuWM:gIN9vFwG6HhjqOCHnE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments