|
From: Eugen <eu...@bl...> - 2005-11-07 20:57:24
|
Hi,
I'm trying the mib2c and it works fine for objects already defined in
the MIBs from /usr/share/snmp/mibs directory.
But if I try to add a new MIB file I get the error
"You didn't give mib2c a valid OID to start with."
when executing "mib2c my-root" command.
The MIBS environment variable is set to ALL and I have a file called
MY-SMI-ROOT.txt (in /usr/share/snmp/mibs) containing the following MIB
definition:
MY-SMI DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, enterprises
FROM SNMPv2-SMI
my-root MODULE-IDENTITY
LAST-UPDATED "200510280000Z"
ORGANIZATION "xxx"
CONTACT-INFO "yyy"
DESCRIPTION "My root MIB module."
REVISION "200510280000Z"
DESCRIPTION "Initial version."
::= { my_objectId 1 }
my_objectId OBJECT IDENTIFIER ::= { enterprises 17094 }
END
What I'm missing here?
Thanks,
Eugen
|