[SNMP4J] GetBulk returned with only one variable
Frank Fock
fock at agentpp.com
Wed May 9 01:08:25 CEST 2007
The PDU type is changed to GETNEXT when you are trying
to send a GETBULK to a SNMPv1 target (because v1 does not
support GETBULK).
Best regards,
Frank
Lin, Dongliang wrote:
> 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
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list