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

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-19-2005
Jesus.Altuve@us.corp.terra.com
 
Posts: n/a
Default Problems with mib2c oid error yet snmptranslate works fine...

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">&nbsp; &nbsp; &nbsp; &nbsp; $
MIBS=&quot;+UCD-DISKIO-MIB&quot; 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">&nbsp; &nbsp; &nbsp; &nbsp; You
didn't give mib2c a valid OID to start with. &nbsp;IE, I could not find</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; any
information about the mib node &quot;UCD-DISKIO-MIB&quot;. &nbsp;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">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$
MIBS=&quot;+UCD-DISKIO-MIB&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$
snmptranslate UCD-DISKIO-MIB::diskIOIndex -On </font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; I
get this:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; .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">&nbsp; &nbsp; &nbsp; &nbsp; $
../configure --with-mib-modules=host &nbsp;--with-perl-modules </font>
<br>
<br><font size=2 face="sans-serif">I also tried configuring net-snmp with
--with-mib-modules=&quot;host ucd-snmp/diskio&quot; 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:29 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0