[SNMP4J] Max string length passed to OctetString

Frank Fock fock at agentpp.com
Fri Jun 2 21:09:31 CEST 2006


Hi Mike,

If you get a timeout then most likely the UDP packet
got fragmented because of the Ethernet frame size and
it is not properly reassembled on the target side
(which is often the case and no fault per se).

Best regards,
Frank

Michael Shaw wrote:
> Thanks Frank,
> 
> I get a timeout when trying to perform an SNMP GET on anything > 1400
> bytes (number of bytes passed to OctetString, not including the encoding
> overhead) which happens to be close in size to an Ethernet frame. I'm
> going to use Ethereal to see what's going on across the wire.
> 
> -Mike 
> 
> -----Original Message-----
> From: Frank Fock [mailto:fock at agentpp.com] 
> Sent: Friday, June 02, 2006 12:42 PM
> To: Michael Shaw
> Cc: snmp4j at agentpp.org
> Subject: Re: [SNMP4J] Max string length passed to OctetString
> 
> Hello Mike,
> 
> Within the application, the length is limited
> to 2^31-1 and by your system's memory.
> On the wire 65535 is the absolute upper limit
> when using UDP (the real limit depends on the
> agent/manager applications and the size of the
> objects included in the same PDU).
> 
> Hope this helps.
> 
> Best regards,
> Frank
> 
> 
> Michael Shaw wrote:
>> Hello,
>>
>>  
>>
>> What is the maximum string length that can be passed and processed by
>> the Octet String class? 
>>
>>  
>>
>> Thanks
>>
>> -Mike
>>
>> _______________________________________________
>> 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