[SNMP4J] SNMP Bulkwalk Parsing error.

Aswin S aswinsuryan at gmail.com
Tue Feb 11 09:08:01 CET 2014


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



More information about the SNMP4J mailing list