[AGENT++] GetBulk

Frank Fock fock at agentpp.com
Tue Dec 27 21:57:29 CET 2005


Hi Chaim,

Chaim Turkel - Israel wrote:

>  
>
>>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??
>
>  
>
Because PDU_MAX_VBS is an independent setting and because the Pdu
class has not a dynamic list or array of VBs. This is a limitation of the
original SNMP++v2.x  and had not been replaced by a dynamic list for
backward compatibility yet.

Best regards,
Frank

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com





More information about the AGENTPP mailing list