[AGENT++] Size limit of an OctetString inside a MibTable ?

Frank Fock fock at agentpp.com
Fri Jul 1 02:38:09 CEST 2011


Hi Jean-Philippe,

Yes, but you should also consider that
you cannot use the 64k for the string
as also the surrounding PDU and the
OID of the variable have to be
transmitted as well.

I would not recommend using such long
strings with SNMP.

Best regards,
Frank

On 30.06.2011 10:26, Jacquemin, Jean-Philippe wrote:
> Hi,
>
> Thanks Frank.
> Should I then change it to an OCTET STRING of my max size (which will be
> the UDP limit) ?
>
> Thanks,
> Jean-Philippe
>
>
> -----Original Message-----
> From: agentpp-bounces at agentpp.org [mailto:agentpp-bounces at agentpp.org]
> On Behalf Of Frank Fock
> Sent: woensdag 29 juni 2011 15:04
> To: agentpp at agentpp.org
> Subject: Re: [AGENT++] Size limit of an OctetString inside a MibTable ?
>
> Hi,
>
> I only have to add, that the DisplayString textual convention limits the
> length (size) to 255 characters.
>
> Best regards,
> Frank
>
> On 28.06.2011 22:17, Jochen Katz wrote:
>> Hi,
>>
>>> I would like to know what is the size limit of a DisplayString
>>> contained into a MibTable ?
>>
>> there is no size limit for the string itself, but if it is too long,
>> you cannot retrieve it any more ;-)
>>
>>> I use to populate my table with security certificates of max size of
>>> 3KB. I now have to use 9KB data (in the future maybe up to 64KB) and
>>> I do get a 'SNMP protocol error').
>>
>> This indicates that the agent supports a bigger PDU size than the
> manager.
>>
>> The default for snmp++/agent++ is
>> 	#define MAX_SNMP_PACKET 4096
>> So 3KB will work, but 9KB not.
>>
>> Note that the maximum message size is limited by UDP to 64K.
>>
>> Regards,
>>     Jochen
>> _______________________________________________
>> AGENTPP mailing list
>> AGENTPP at agentpp.org
>> http://lists.agentpp.org/mailman/listinfo/agentpp
>

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




More information about the AGENTPP mailing list