WG: [SNMP4J] SNMP v2 - getTable()

Holger Grütjen HGruetjen at advaoptical.com
Tue Sep 11 16:59:34 CEST 2007


Hi Frank,

Is there any way to configure SNMP4J to use GETNEXT instead of GETBULK?

Regards,
Holger

> Hi Holger,
> 
> I would think that (3) is true. With SNMPv1 only GETNEXT
> operations are performed to get the rows of a table.
> With SNMPv2c GETBULK is used where more than one row
> can be returned by the agent per response PDU.
> In such a case, the response PDU may exceed an internal
> limit of the command generator or (more likely) of the
> agent (=command receiver). In such a case, the agent
> should a response with a much elements as would fit
> into in a PDU with maximum size. If such a response would
> not be valid (i.e., contain less elements as the request),
> then a tooBig error must be returned.
> 
> A simple timeout points to a bug in the agent.
> To workaround the bug, you can reduce the maxRepetitions
> parameter.
> 
> Best regards,
> Frank
> 
> Holger Grütjen wrote:
> > Hi,
> > 
> > When invoking the method TableUtils.getTable(target, oids, 
> oid, oid1) for requesting six (or more) columns using SNMP v1 
> everything works fine, I finally get some rows as response.
> > 
> > But when I change to SNMP v2, then I get a timeout. This is 
> NOT the case if I'm just requesting five columns or less, 
> then everything works fine too.
> > 
> > Does anyone knows the reason for that?
> > 
> > 1) is there some kind of restriction for SNMP v2?
> > 2) may this be a bug of SNMP4J?
> > 3) may this be a bug of the device?
> > 
> > Regards,
> > Holger
> > _______________________________________________
> > 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