[SNMP4J] SNMP4J getBulk

Dong Pan dnpan at hotmail.com
Thu Sep 10 16:47:02 CEST 2009


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


More information about the SNMP4J mailing list