[AGENT++] Max PDU VB size...

Jochen Katz katz at agentpp.com
Thu Nov 25 20:52:53 CET 2004


Hi Fedja,

> I run into the problem with the limit for the maximum number of
> VarBind objects inside the PDU. It is hardcoded to 50 (file
> config_snmp_pp.h) and just by changing that number to the larger one,
> didn't fix the problem.

I assume that you did recompile snmp++ after changing the file...

> As a matter of fact I've got a new error from
> the SNMP object - "SNMP: Response PDU Too Big" :)

... so this error is either from the agent: The PDU with all Oids and 
values cannot be encoded/sent because of a limit in the agent.

Or the response is too big for snmp++: In this case you have to change 
the following define in config_snmp_pp.h:

//! The maximum size of a message that can be sent or received.
#define MAX_SNMP_PACKET 4096

> So, since I am creating a simple version of the agent browser, I can't
> get all of the values from it at once. Is there a workaround to this
> problem?

The recommended solution is to split up the request into multiple 
smaller requests, but raising the max pdu size should work, too.

Regards,
   Jochen



More information about the AGENTPP mailing list