[SNMP4J] problem w/ Counter64?
Jeff Ramin
ramin at berbee.com
Wed Jun 25 14:31:27 CEST 2008
Yup, that was the problem.
Thanks!
Frank Fock wrote:
> Hi Jeff,
>
> Counter64 is not support with SNMPv1. Try to
> issue a SNMPv2c or v3 request.
>
> Best regards,
> Frank
>
> Jeff Ramin wrote:
>>
>> Hi folks.
>>
>> I'm writing agent software, using the snmp4j-agent library. I'm wrapping
>> a Counter64 in a VariantVariable, which represents the current system
>> time in milliseconds (a long value).
>>
>> When the OID is requested, I'm calling setValue(long value). The reply
>> from the DefaultMOServer is that the OID is "not available for
>> retrieval".
>> I don't see any stack traces.
>>
>> If I use an Integer32 (and setValue(int value)) instead of the Counter64,
>> everything works fine.
>>
>> Any guesses as to what the problem is? Thanks.
>>
>>
>
--
Jeffrey Ramin
Berbee
ramin at berbee.com
608.298.1024
More information about the SNMP4J
mailing list