mib2c: invalid OID

"Eugen" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <003c01c5e3dd$af2a26e0$5f0aa8c0@blueslicemtl>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.