[AGENT++] GETBULK fails with non default size

Jochen Katz katz at agentpp.com
Thu May 12 21:20:07 CEST 2011


Hi,

> I've run into a problem where GETBULK requests fail when you use a non default size.
> 
> For example, if I request several columns from a table with a size of 12:
> $ ./snmpBulk 1.2.3.4
>     1.3.6.1.4.1.9.9.46.1.6.1.1.3.10612
>     1.3.6.1.4.1.9.9.46.1.6.1.1.4.10612
>     1.3.6.1.4.1.9.9.46.1.6.1.1.5.10612
>     1.3.6.1.4.1.9.9.46.1.6.1.1.14.10612
>     1.3.6.1.4.1.9.9.46.1.6.1.1.16.10612
>     -Cxxxxx -m12

one easy possibility: The max pdu size of the device is bigger than the
default max pdu size of snmp++ (defined in config_snmp_pp.h as 4096).

To test this, either increase the define and recompile snmp++ and
snmpBulk or first check the size of the response of the device with
tcpdump or wireshark.

Regards,
  Jochen



More information about the AGENTPP mailing list