[SNMP4J] SNMP4J getBulk
Frank Fock
fock at agentpp.com
Fri Sep 11 09:34:42 CEST 2009
This is indeed a FAQ. For an explanation see:
http://wiki.oosnmp.net/confluence/pages/viewpage.action?pageId=884753
Best regards,
Frank
Kulkarni, Aditya (Aditya) wrote:
> Dong,
>
> I have been having the same problem.
>
> Aditya
>
>
> -----Original Message-----
> From: snmp4j-bounces at agentpp.org on behalf of Dong Pan
> Sent: Thu 9/10/2009 8:17 PM
> To: snmp4j at agentpp.org
> Subject: [SNMP4J] SNMP4J getBulk
>
>
> I'm trying to use getBulk to retrieve data from device. The code will look like the following,
>
> VariableBinding[] array = ... // set up OID to get with get bulk
> pdu.addAll(array);
>
> pdu.setType(PDU.GETBULK);
> pdu.setNonRepeaters(0);
> pdu.setMaxRepetitions(65535);
>
> ResponseEvent response = snmp.getBulk(pdu,target);
>
> Sometimes
> the above code won't retrieve all data from device, e.g., there should
> be 6 data for each OID, but only 2 or 3 are returned. This happens only if multiple OIDs are in one getBulk. However, there will be no problem if only one OID is provided to getBulk.
>
> Any idea why?
>
> Thanks in advance.
>
> _________________________________________________________________
> New: Messenger sign-in on the MSN homepage
> http://go.microsoft.com/?linkid=9677403
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list