Jesus,

 

># mib2c -c mib2c.conf -I /usr/local/share/snmp -f rhino CISCO-RHINO-MIB

 

Use the module name/ table name not name of MIB, please try again.

 

Ying

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 2005
920 12:21
To: Ying Wang(CD)
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: Problems with mib2c oid error yet snmptranslate works fine...

 

Thanks, Ying Wang but it doesn't work either...  here's what I tried:

 

# export MIBS=all
# mib2c -c mib2c.conf -I /usr/local/share/snmp -f rhino CISCO-RHINO-MIB                                     
You didn't give mib2c a valid OID to start with.  IE, I could not find
any information about the mib node "CISCO-RHINO-MIB".  This could be caused....

 

However, the MIB is loaded look:
# snmptranslate CISCO-RHINO-MIB::ciscoLS1010ChassisFanLed -On
.1.3.6.1.4.1.9.5.11.1.1.12

 

Now, let's try less flags..
# mib2c -c mib2c.conf CISCO-RHINO-MIB                                 
You didn't give mib2c a valid OID to start with.  IE, I could not find
any information about the mib node "CISCO-RHINO-MIB".  This could be caused....

 

No flags now
# mib2c CISCO-RHINO-MIB             
You didn't give mib2c a valid OID to start with.  IE, I could not find
any information about the mib node "CISCO-RHINO-MIB".  This could be caused...

 

And again checking to see if the MIB is loaded
# snmptranslate CISCO-RHINO-MIB::ciscoLS1010ChassisFanLed -On         
.1.3.6.1.4.1.9.5.11.1.1.12

 

P.D I'm using:

# uname -a
Linux xxxxx 2.4.21-27.0.2.ELsmp #1 SMP Wed Jan 12 23:35:44 EST 2005 i686 i686 i386 GNU/Linux

 

I'm out of ideas here, maybe I've missed a very basic step somewhere? a configure flag?
bad karma? or maybe a mib2c bug in the latest release?

 

Jesus Altuve
Terra.com

 

-----"Ying Wang\(CD\)" <[EMAIL PROTECTED]> wrote: -----

To: <[EMAIL PROTECTED]>
From: "Ying Wang\(CD\)" <[EMAIL PROTECTED]>
Date: 09/19/2005 11:23PM
cc: <net-snmp-users@lists.sourceforge.net>
Subject: RE: Problems with mib2c oid error yet snmptranslate works fine...

Try this:
    First make sure your mib is in right scope the mib2c can search, the default path is /usr/local/share/snmp/mibs/. Then, execute "exports MIBS=ALL".

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 2005Äê9ÔÂ20ÈÕ 11:15
To: net-snmp-users@lists.sourceforge.net
Subject: Net-snmp-users digest, Vol 1 #3123 - 4 msgs

Send Net-snmp-users mailing list submissions to
net-snmp-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
<A&NBSP;HREF="" designtimesp="501" net-snmp-users? listinfo lists lists.sourceforge.net>https://lists.sourceforge.net/lists/listinfo/net-snmp-users
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Net-snmp-users digest..."


Today's Topics:

   1. Problem with installation (configure error) ([EMAIL PROTECTED])
   2. Re: Problem with installation (configure error) (Danny Milosavljevic)
   3. Problems with mib2c oid error yet snmptranslate works fine... ([EMAIL PROTECTED])
   4. [SOLVED]: the accurate description of the snmp error (Ying Wang(CD))

--__--__--

Message: 1
Date: Mon, 19 Sep 2005 14:20:51 +0200 (MEST)
From: [EMAIL PROTECTED]
To: net-snmp-users@lists.sourceforge.net
Subject: Problem with installation (configure error)

Hello,

when I try to run ./configure, I get the following error:

linux:/net-snmp-5.2.1.2 # sh ./configure
: command not found4:
./configure: line 22: syntax error near unexpected token `elif'
./configure: line 22: elif test -n "${BASH_VERSION+set}" && (set -o posix)
>/dev/null 2>&1; then

What do I need to do to install the package?

My system is:
SuSE Linux 9.1
gcc 3.3.3
bash 2.05b.0(1)-release
net-snmp-5.2.1.2
I'm logged in as root.

Thanks in advance,
Klaus G¨¹rtler

-- 
5 GB Mailbox, 50 FreeSMS <A&NBSP;HREF="" designtimesp="551" promail? go de www.gmx.net>http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f¨¹r Mail, Message, More +++


--__--__--

Message: 2
Date: Mon, 19 Sep 2005 15:24:48 +0200
From: Danny Milosavljevic <[EMAIL PROTECTED]>
To:  [EMAIL PROTECTED]
CC:  net-snmp-users@lists.sourceforge.net
Subject: Re: Problem with installation (configure error)

This is a multi-part message in MIME format.
--------------060201050800030100070005
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

[EMAIL PROTECTED] schrieb:

>Hello,
>
>when I try to run ./configure, I get the following error:
>
>linux:/net-snmp-5.2.1.2 # sh ./configure
>: command not found4:
>./configure: line 22: syntax error near unexpected token `elif'
>./configure: line 22: elif test -n "${BASH_VERSION+set}" && (set -o posix)
>  
>
>>/dev/null 2>&1; then
>>    
>>
>
>  
>
What are those lines in "configure" (around line number 22 and a few 
lines before) ?

>What do I need to do to install the package?
>
>My system is:
>SuSE Linux 9.1
>gcc 3.3.3
>bash 2.05b.0(1)-release
>net-snmp-5.2.1.2
>I'm logged in as root.
>
>Thanks in advance,
>Klaus G¨¹rtler
>
>  
>
cheers,
   Danny


--------------060201050800030100070005
Content-Type: text/x-vcard; charset=utf-8;
 name="danny.milosavljevic.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="danny.milosavljevic.vcf"

begin:vcard
fn:Danny Milosavljevic
n:Milosavljevic;Danny
org:Fabalabs Software GmbH
adr:;;Honauerstrasse 4;Linz;;4020;Austria
email;internet:[EMAIL PROTECTED]
title:Research & Development
x-mozilla-html:FALSE
version:2.1
end:vcard


--------------060201050800030100070005--


--__--__--

Message: 3
To: net-snmp-users@lists.sourceforge.net
Subject: Problems with mib2c oid error yet snmptranslate works fine...
From: [EMAIL PROTECTED]
Date: Mon, 19 Sep 2005 14:43:06 -0400

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_=--


--__--__--

Message: 4
Subject: [SOLVED]: the accurate description of the snmp error
Date: Tue, 20 Sep 2005 08:38:03 +0800
From: "Ying Wang\(CD\)" <[EMAIL PROTECTED]>
To: "Dave Shield" <[EMAIL PROTECTED]>
Cc: <net-snmp-users@lists.sourceforge.net>

Hi Dave,

Thank you! I got it.

> With SNMPv1, a read-only community (not user) trying to
> SET a value will result in a noSuchName error.

I still think noSuchName is not a suitable error type for this case.

BR

yolanda

-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: 2005=C4=EA9=D4=C219=C8=D5 16:18
To: Ying Wang(CD)
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: the accurate description of the snmp error

On Mon, 2005-09-19 at 13:49 +0800, Ying Wang(CD) wrote:
> Where can I find the accurate description of the snmp error?=20

In the SNMP specification documents - RFC 1157 for SNMPv1,
RFC 1905 for SNMPv2c, RFCs 3414 and 3416 for SNMPv3/USM.


> Which error is right when a invalid user to access mib,
> such as a SNMPv1 read-only user does a configuration,
> or a unknown user read something?

With SNMPv1, a read-only community (not user) trying to
SET a value will result in a noSuchName error.
With SNMPv2c (or SNMPv3), a read-only community (or user)
trying to SET a value will result in a noAccess error.

With SNMPv1 and SNMPv2c, a completely unknown community will
be silently dropped, and no response will be returned at all.
With SNMPv3, this will return an authenticationFailure
report.



See the RFCs for the full gory details.

Dave



--__--__--

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
<A&NBSP;HREF="" designtimesp="804" net-snmp-users? listinfo lists lists.sourceforge.net>https://lists.sourceforge.net/lists/listinfo/net-snmp-users


End of Net-snmp-users Digest

Reply via email to