[SNMP4J] SNMPv1 skip counter64 data
Vivi Zhang
vzhang at anuesystems.com
Tue Oct 20 18:49:54 CEST 2009
Frank:
According to RFC 2089:
o On an SNMPv1 GETNEXT request, we skip the object instance and
fetch the next object instance that follows the one with a
syntax of Counter64.
According to snmp4j CHANGES.txt
SNMP v1.8:
* Added: Counter64 skipping for SNMPv1 GETNEXT request
processing.
I would expect the fix is in SNMP4J 1.9.3C, but seems it is not.
The version I ma using : SNMP4J is version 1.9.3c, and SNMP4JAgent is
version 1.2.1d.
To verify the issue:
The command I used :
java -cp SNMP4J.jar org.snmp4j.tools.console.SnmpRequest -c v1public -v
1 -t 3000 -Otd 192.168.41.21 1.3.6.1.2.1.31
Tracing by WireShark, seems SNMP4j does not skip count64 mib data.
Simple Network Management Protocol
version: version-1 (0)
community: v1public
data: get-next-request (1)
get-next-request
request-id: 346101455
error-status: noError (0)
error-index: 0
variable-bindings: 1 item
IF-MIB::ifHCInBroadcastPkts.25 (1.3.6.1.2.1.31.1.1.1.9.25): unSpecified
Object Name: 1.3.6.1.2.1.31.1.1.1.9.25 (IF-MIB::ifHCInBroadcastPkts.25)
IF-MIB::ifEntry.ifIndex: 25
unSpecified
data: get-response (2)
get-response
request-id: 346101455
error-status: noError (0)
error-index: 0
variable-bindings: 1 item
IF-MIB::ifHCInBroadcastPkts.26 (1.3.6.1.2.1.31.1.1.1.9.26): unSpecified
Object Name: 1.3.6.1.2.1.31.1.1.1.9.26 (IF-MIB::ifHCInBroadcastPkts.26)
IF-MIB::ifEntry.ifIndex: 26
unSpecified
Thanks.
Vivi
More information about the SNMP4J
mailing list