[SNMP4J] Response to a GETBULK request

Kulkarni, Aditya (Aditya) kulkarni8 at avaya.com
Wed Sep 9 06:53:30 CEST 2009


Hi Mark,

Thank you. I am now able to get the required GetBulk response after
setting the max-repetitions and the non-repeaters.

Aditya 

-----Original Message-----
From: mark at ellisonsoftware.com [mailto:mark at ellisonsoftware.com] On
Behalf Of Mark Ellison
Sent: Wednesday, September 09, 2009 7:18 AM
To: Kulkarni, Aditya (Aditya)
Cc: SNMP4J at agentpp.org
Subject: Re: [SNMP4J] Response to a GETBULK request

Hi Aditya,

On Mon, Aug 31, 2009 at 3:09 AM, Kulkarni, Aditya
(Aditya)<kulkarni8 at avaya.com> wrote:
> Hello,
>
> I am new to SNMP4J. I tried out the Get/ GetNext requests in Java and 
> they worked perfectly fine. However, the response to a GetBulk request

> appears as follows.
> RESPONSE[reqestID=1468235037, errorStatus=0, errorIndex=0, VBS[]]
>
> The variable bindings are blank and so I cannot parse the outcome of 
> the response unlike in the Get and GetNext responses.
>

The GetBulk operation differs from the GetNext operation.  GetBulk
requires two additional parameters- non-repeaters and max-repetitions.
 See the http://www.snmp4j.org/doc/org/snmp4j/PDU.html javadoc page for
the setMaxRepetiions and setNonRepeaters methods.

It appears that in the absence of being set to an explicit value,
non-repeaters and max-repetiions each have a value of zero, resulting in
response mentioned.

Let the list know how setting these parameters works out for you?

>
> Thanks and Regards,
> Aditya Kulkarni
>

Regards,

Mark
http://EllisonSoftware.com



More information about the SNMP4J mailing list