[SNMP4J] problem w/ Counter64?

Jeff Ramin ramin at berbee.com
Tue Jun 24 18:05:32 CEST 2008


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