This is a discussion on Problems with mib2c oid error yet snmptranslate works fine... within the SNMP Users forums, part of the Networking and Network Related category; This is a multipart message in MIME format. --=_alternative 0066CF1285257081_= Content-Type: text/plain; charset="US-ASCII" Hi ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multipart message in MIME format.
--=_alternative 0066CF1285257081_= Content-Type: text/plain; charset="US-ASCII" 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 --=_alternative 0066CF1285257081_= Content-Type: text/html; charset="US-ASCII" <br><font size=2 face="sans-serif">Hi List,</font> <br> <br><font size=2 face="sans-serif">I'm having trouble converting MIB files to .c and .h files using mib2c. I'm doing as follows:</font> <br> <br><font size=2 face="sans-serif"> $ MIBS="+UCD-DISKIO-MIB" mib2c -c mib2c.conf UCD-DISKIO-MIB</font> <br> <br><font size=2 face="sans-serif">But I get this error:</font> <br> <br><font size=2 face="sans-serif"> You didn't give mib2c a valid OID to start with. IE, I could not find</font> <br><font size=2 face="sans-serif"> any information about the mib node "UCD-DISKIO-MIB". This could be caused..............</font> <br> <br><font size=2 face="sans-serif">Yet, if I do this:</font> <br> <br><font size=2 face="sans-serif"> $ MIBS="+UCD-DISKIO-MIB"</font> <br><font size=2 face="sans-serif"> $ snmptranslate UCD-DISKIO-MIB::diskIOIndex -On </font> <br> <br><font size=2 face="sans-serif"> I get this:</font> <br><font size=2 face="sans-serif"> .1.3.6.1.4.1.2021.13.15.1.1.1</font> <br> <br><font size=2 face="sans-serif">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:</font> <br> <br><font size=2 face="sans-serif"> $ ../configure --with-mib-modules=host --with-perl-modules </font> <br> <br><font size=2 face="sans-serif">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</font> <br><font size=2 face="sans-serif">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.</font> <br> <br><font size=2 face="sans-serif">Thanks,</font> <br><font size=2 face="sans-serif"><br> Jesus Altuve<br> Terra.com<br> <br> </font> --=_alternative 0066CF1285257081_=-- ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |