[snmp] Large Response Varbinds

Birgit Arkesteijn birgit at westhawk.co.uk
Tue Jul 29 12:19:24 BST 2008


Hi Krithinarayanan,

Which version of SNMP are you using?

Have a look at AbstractSnmpContext.setMaxRecvSize(int no), this might 
help you. The reason I say "might" is because the SNMP server might 
decide to reduce the response based on it's own configuration.

Depending on the SNMP version:
- in SNMPv3 this 'max size' is sent as part of the request info
- the server might send a SNMP_ERR_TOOBIG to indicate it reduced its 
response

If the limitation is due to the server, you might have no alternative 
then to split up the GetBulk request.

As to the network fragmentation, as far as I know this is not accessible 
in the Java VM.

Hopefully the above helps.

Cheers, Birgit


On 29/07/08 10:33, krithi wrote:
> Hi
> I am trying to get a GetBulk response for 5 tabular oids with 
> maxRepetition =24  and nonRepeators = 0.
> At the max I am able to receive only 60 VarBindings.
 >
> From Westhawk documents,  I do understand that the maximum response 
> packet size is only 1300 bytes.
> Definitely my response size is far more
> 
> 1. Please do suggest me ways to get a real GetBulk, in which there could 
> be a Single Request, and a Single Response
> 2. Is any fragmentation mechanism at the network level available that I 
> could use for getting a Single Response
> 
> Just to mention I googled through the archives, but unable  to find any 
> workaround
> Please help.
> 
> Thanks & Regards
> Krithinarayanan


-- 
-- Birgit Arkesteijn, birgit at westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- Company no: 1769350
-- Registered Office:
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>


More information about the snmp mailing list