[SNMP4J] SNMPv1 skip counter64 data

Frank Fock fock at agentpp.com
Tue Oct 20 23:28:38 CEST 2009


Vivi,

Thanks for reporting this. This is indeed a bug,
most likely a regression by other changes. I will
investigate it and report it when I have a solution.

Regards,
Frank

Vivi Zhang wrote:
> 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
> 
> 
> 
> 
> 

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list