net-snmp snptranslate dosnt work for my MIB (snmpget does work)
Posted
by
user1495181
on Server Fault
See other posts from Server Fault
or by user1495181
Published on 2012-10-31T09:29:08Z
Indexed on
2012/10/31
11:02 UTC
Read the original article
Hit count: 400
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
© Server Fault or respective owner