[SNMP4J] SNMP GET with good and bad variables

PHIL BERGSTRESSER phil.bergstresser at adtran.com
Tue Jul 25 16:43:37 CEST 2006


Franck,
    Posting those details originally would have helped.  The error index
says the 3rd OID is in error, and the error status of 2 says the OID
doesn't exist, as you stated. The behavior seen is according to SNMPv1,
but has been relaxed in SNMPv2 to allow valid varbind values except for
the varbind in error. Of course, if multiple varbinds have errors, there
is no protocol method to report that.
    Another lesser known issue is that the SNMP specification does not
require the agent to process the varbinds in the order you send them.
It's just that most agents do because it is orderly and easy. Since the
specification doesn't say otherwise, the specification allows all the
varbinds to be processed in parallel if you have such an agent, so in
that case, knowing exactly what went wrong or what was really processed
must be inferred from the returned varbind values. A "feature" of the
"Simple" NMP! Simple to define, but not necessarily simple to use.
    So I guess Frank Fock may address the results you got from SNMP4j
when specifying -v 2c.
    HTH.
Phil


-----Original Message-----
From: Franck Foutou [mailto:Franck.Foutou at vcs.de] 
Sent: Tuesday, July 25, 2006 9:25 AM
To: PHIL BERGSTRESSER; snmp4j at agentpp.org
Subject: RE: [SNMP4J] SNMP GET with good and bad variables

Phil, 

Thanks for your quick answer.

I actually SNMPv2c with the following command
 
snmp4j -v 2c -p GET localhost/161  \
.1.3.6.1.2.1.1.4.0 .1.3.6.1.2.1.1.5.0 .1.3.6.1.2.1.1.9

And the output was:
Received response after 15 millis
Response received with requestID=2120564023, \
			     errorIndex=3, errorStatus=No such name(2)
1.3.6.1.2.1.1.4.0 = Null 1.3.6.1.2.1.1.5.0 = Null
1.3.6.1.2.1.1.9 = Null

I just read about what you told on v1.
In addition Net-SNMP doc says that the "all or nothing" request is a
feature of their application.

Do we have something comparable in SNMP4J?

FF
 
-----Original Message-----
From: PHIL BERGSTRESSER [mailto:phil.bergstresser at adtran.com]
Sent: Tuesday, July 25, 2006 3:42 PM
To: Franck Foutou; snmp4j at agentpp.org
Subject: RE: [SNMP4J] SNMP GET with good and bad variables

If it was SNMPv1, that is the required result. You didn't specify which
protocol version you were using. If any fail, no results are to be
returned.

Phil 

-----Original Message-----
From: snmp4j-bounces at agentpp.org [mailto:snmp4j-bounces at agentpp.org] On
Behalf Of Franck Foutou
Sent: Tuesday, July 25, 2006 8:05 AM
To: snmp4j at agentpp.org
Subject: [SNMP4J] SNMP GET with good and bad variables

Hi all

 

First, I am pretty new with SNMP and snmp4j, so forgive me if my
question sounds stupid.

 

I tried once to send a SNMP GET for 3 different OIDs, including a bad
one.

The return value was always "no such name" for all my variables even if
two of them were available and reachable.

I am surprised. I would have expected a response with 2 valid values and
one with no such name. 

(Actually this was what I got sending the same request with Net-SNMP.)

 

Any idea on this? Thanks in advance.

 

FF

 

 

_______________________________________________
SNMP4J mailing list
SNMP4J at agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j



More information about the SNMP4J mailing list