---------- Forwarded message ----------
From: Dave Shield <[EMAIL PROTECTED]>
Date: 11 avr. 2008 12:33
Subject: Re: snmpwalk & snmpget
To: snmp girl <[EMAIL PROTECTED]>
Cc: net-snmp-users@lists.sourceforge.net
On 11/04/2008, snmp girl <[EMAIL PROTECTED]> wrote:
> here u fing what I get as a result
Thank you. That makes it much clearer.
[Though copying the text would have been sufficient.
You didn't actually need to attach a screen dump]
Anyway:
> D:\> snmpgetnext -c public -v1 localhost .1.3.6.1.4.1.311.1.4.1.1.5.1.2
> SNMPv2-SMI::enterprises.311.1.4.1.1.5.1.2.1.0 = STRING: "master"
So a GETNEXT request returns a value for
.1.3.6.1.4.1.311.1.4.1.1.5.1.2.0
We then told you to ask for this value using "snmpget"
> D:\> snmpget -c public -v1 localhost .1.3.6.1.4.1.311.1.4.1.1.5.1.2
> Error in packet
> Reason: (noSuchName)
But this command isn't asking for the OID .1.3.6.1.4.1.311.1.4.1.1.5.1.2.0
It's asking for the OID 1.3.6.1.4.1.311.1.4.1.1.5.1.2
(without the final .0)
And the agent is quite correct.
There isn't a value associated with 1.3.6.1.4.1.311.1.4.1.1.5.1.2
There's a value associated with 1.3.6.1.4.1.311.1.4.1.1.5.1.2.0
even with using this exact OID ,I get the same error
oid = 1.3.6.1.4.1.311.1.4.1.1.5.1.2.1.0
AND also with testing adding 0 to the oid used in the snmpgetnext
but you didn't ask for that.
If you are using "snmpget", you must request the *EXACT*
same OID as returned by snmpwalk/snmpgetnext.
These two commands will do a "fuzzy match" to return the
next valid OID value.
snmpget doesn't do this - it uses an *exact* match on the
specified OID. If you give it an invalid OID, then it'll
complain. (As here).
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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/listinfo/net-snmp-users