Problems with mib2c oid error yet snmptranslate works fine...

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <OF9906CA3F.958530A6-ON85257081.0063271D-85257081.0066CF14@us.corp.terra.com>
Hi List,

I'm having trouble converting MIB files to .c and .h files using mib2c. 
I'm doing as follows:

        $ MIBS="+UCD-DISKIO-MIB" mib2c -c mib2c.conf UCD-DISKIO-MIB

But I get this error:

        You didn't give mib2c a valid OID to start with.  IE, I could not 
find
        any information about the mib node "UCD-DISKIO-MIB".  This could 
be caused..............

Yet, if I do this:

         $ MIBS="+UCD-DISKIO-MIB"
         $ snmptranslate UCD-DISKIO-MIB::diskIOIndex -On 

        I get this:
        .1.3.6.1.4.1.2021.13.15.1.1.1

So, yes... the MIB is being loaded. I uninstalled all the old net-snmp 
RPM's from the system, and compiled net-snmp 5.1.3.1 configured as 
follows:

        $ ./configure --with-mib-modules=host  --with-perl-modules 

I also tried configuring net-snmp with --with-mib-modules="host 
ucd-snmp/diskio" which compiles UCD-DISKIO-MIB for me. However, I would 
like to
know why mib2c is not working for me when I want to convert a MIB file 
into a module if I'm doing exactly as the documentation says, even all the 
examples work for me, it's simply the mib2c part the one not working.

Thanks,

Jesus Altuve
Terra.com
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.