net-snmp snptranslate dosnt work for my MIB (snmpget does work)
- by user1495181
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