[SNMP4J] GetBulk returned with only one variable

Lin, Dongliang dongliang.lin at boeing.com
Tue May 8 18:13:26 CEST 2007


Hello,
I tried asynchronous getBulk(see SNMP4J doc below) and got response PDU
with size is 1( only one variable in PDU).
However,   I can use "snmpbulkget" command in Linux to get the result
properly(multiple variables).  So I assume that Agent responds properly
on Getbulk.
I did notice that request pdu type being changed from GETBULK(originally
in snmp.getBulk(pdu, ,, )) into GETNEXT by examining response pdu in
onResponse()
Any help is much appreciated !
Thanks
Don Lin
====================
getBulk
public void getBulk(PDU <../../org/snmp4j/PDU.html>  pdu,
                    Target <../../org/snmp4j/Target.html>  target,
                    java.lang.Object userHandle,
                    ResponseListener
<../../org/snmp4j/event/ResponseListener.html>  listener)
             throws java.io.IOException
	Asynchronously sends a GETBULK request PDU to the given target.
The response is then returned by calling the supplied ResponseListener
instance. 
Parameters: 
	pdu - the PDU instance to send. 
	target - the Target instance representing the target SNMP engine
where to send the pdu. 
	userHandle - an user defined handle that is returned when the
request is returned via the listener object. 
	listener - a ResponseListener instance that is called when pdu
is a confirmed PDU and the request is either answered or timed out. 
Throws: 
	java.io.IOException - if the PDU cannot be sent to the target. 
Since: 
	1.1 




More information about the SNMP4J mailing list