I add my own MIB module to net-snmp.
I put my Mib txt file under – '/usr/local/share/snmp/mibs'
I see that if i change net-snmp files their the change is reflected , so this mibs are loaded correct.
It seems that it not load my MIB file from there.
When i run snmptranslate on my Mib like this:
snmptranslate .1.3.6.1.4.1.8077
I get:
SNMPv2-SMI::enterprises.8077
My MIB def:
TEST-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, enterprises FROM SNMPv2-SMI;
testMib MODULE-IDENTITY
DESCRIPTION
"First draft"
::= { enterprises 8077}
testMibObject OBJECT IDENTIFIER ::= {testMib 1}
END
Best Answer
To find the location of snmp.conf you can use :
snmpd -Dread_config -H 2>&1 | grep "config path" | sort –u
then tell the tools to load this MIB
(examples)::