Dan Kegel
2001-01-30 21:56:01 UTC
Using any release of net-snmp (4.1.1, 4.1.2, 4.2):
I'm having trouble getting net-snmp to notice a custom mib.
I've created ~/.snmp/snmp.conf containing the line
mibdirs +/home/dank/mymibs
I've copied MIB file DI-SNMP-MIB.txt into that directory.
This file contains a single OBJECT IDENTIFIER.
DI-SNMP-MIB DEFINITIONS ::= BEGIN
disappearing OBJECT IDENTIFIER ::= { enterprises 6257 }
END
Here's what happens when I try it:
$snmptranslate disappearing
disappearing: Unknown Object Identifier (Sub-id not found: mib-2 -> disappearing)
$snmptranslate .iso.3.6.1.private.enterprises.disappearing
.iso.3.6.1.private.enterprises.disappearing: Unknown Object Identifier (Sub-id not found: enterprises -> disappearing)
Running snmptranslate with the -Dall option (which is not properly documented
in the usage message!) yields a long log file which indicates that
it did indeed load DI-SNMP-MIB.txt.
HELP! Why, if it reads my mib file, doesn't it recognize my object identirier?
Thanks,
Dan
p.s. Here's the log file, compressed as a .zip archive.
I'm having trouble getting net-snmp to notice a custom mib.
I've created ~/.snmp/snmp.conf containing the line
mibdirs +/home/dank/mymibs
I've copied MIB file DI-SNMP-MIB.txt into that directory.
This file contains a single OBJECT IDENTIFIER.
DI-SNMP-MIB DEFINITIONS ::= BEGIN
disappearing OBJECT IDENTIFIER ::= { enterprises 6257 }
END
Here's what happens when I try it:
$snmptranslate disappearing
disappearing: Unknown Object Identifier (Sub-id not found: mib-2 -> disappearing)
$snmptranslate .iso.3.6.1.private.enterprises.disappearing
.iso.3.6.1.private.enterprises.disappearing: Unknown Object Identifier (Sub-id not found: enterprises -> disappearing)
Running snmptranslate with the -Dall option (which is not properly documented
in the usage message!) yields a long log file which indicates that
it did indeed load DI-SNMP-MIB.txt.
HELP! Why, if it reads my mib file, doesn't it recognize my object identirier?
Thanks,
Dan
p.s. Here's the log file, compressed as a .zip archive.