[SNMP4J] SNMP4J getBulk

Kulkarni, Aditya (Aditya) kulkarni8 at avaya.com
Fri Sep 11 07:02:31 CEST 2009


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




More information about the SNMP4J mailing list