[AGENT++] GetBulk

Chaim Turkel - Israel ChaimT at gilat.com
Sun Dec 25 08:30:48 CET 2005



> Why isn't the PDU_MAX_VBS calculated based on the data needed to be
> retrieved and the MAX_SNMP_PACKET.

how yould you calculate it? I think its not possible, because nobody
knows how long the oids and values of all possible agents are.

> Also isn't the MAX_SNMP_PACKET the
> size of a pdu packet, and if so how can I enlarge it, it will
overflow?

Both values are configured in config_snmp_pp.h. Increasing
MAX_SNMP_PACKET will increase stack usage (as some functions use local
arrays of that size (will be changed for next releases)) and increasing
PDU_MAX_VBS will increase the size of Pdu class (as it holds a
preallocated array of Vb objects).

After you have increased these defines, make tests to ensure that all
agents and managers you use can accept that large SNMP messages.


---- so why don't I only have to set MAX_SNMP_PACKET??

Chaim Turkel



More information about the AGENTPP mailing list