[SNMP4J] SNMP Bulkwalk Parsing error.

Frank Fock fock at agentpp.com
Tue Feb 11 09:30:38 CET 2014


Hi,

First of all, OIDs do NOT start with a dot.

You can increase the inbound maxMessageSize with
http://www.snmp4j.org/doc/org/snmp4j/transport/DefaultUdpTransportMapping.html#setMaxInboundMessageSize(int)
but by default this is already set to the maximum 65535 bytes.

Thus, it seems that the agent has a bug and cannot handle its own buffer 
limits correctly.

Best regards,
Frank

Am 11.02.2014 09:08, schrieb Aswin S:
> Hi All,
>
> I am facing an error while trying to a bulk walk. When given max repeters a
> vailue below 35 it is working. When I tried with netsnmp it is able to
> retrieve 40 maxrepeters in single query without any error. Is there some
> setting which I can use to solve this issue?
>
> % java -classpath snmp4j/snmp4j.jar:log4j/log4j.jar
> org.snmp4j.tools.console.SnmpRequest -c ctc -v 2c -Cr 40 -p GETBULK
> 10.104.120.43 .1.3.6.1.2.1.47.1.1.1.1.2 .1.3.6.1.2.1.47.1.1.1.1.3 .1
> .3.6.1.2.1.47.1.1.1.1.4 .1.3.6.1.2.1.47.1.1.1.1.5 .1.3.6.1.2.1.47.1.1.1.1.6.
> 1.3.6.1.2.1.47.1.1.1.1.7 .1.3.6.1.2.1.47.1.1.1.1.8 .1.3.6.1.2.1.47.1.1.1.1.8
>
> Feb 11, 2014 5:25:38 AM org.snmp4j.log.JavaLogAdapter log
> WARNING: java.io.IOException: The encoded length 8027 exceeds the number of
> bytes left in input at position 4 which actually is 7956
> Feb 11, 2014 5:25:38 AM org.snmp4j.log.JavaLogAdapter log
> SEVERE: ASN.1 parse error (message is not a sequence)
> Feb 11, 2014 5:25:38 AM org.snmp4j.log.JavaLogAdapter log
> WARNING: java.io.IOException: Wrong ASN.1 type. Not an integer: 35 at
> position 3
> Received response after 2008 millis
> Request timed out.
>
> Thanks
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231




More information about the SNMP4J mailing list