[SNMP4J] Re: can't do "get" for Counter64 variable

Christof Meerwald cmeerwald at emnico.com
Mon Jun 9 12:52:25 CEST 2008


Tzahi Bergman wrote:
> i made a method that do get from an agent and it works great, the only
> problem i got is that for some reason it returns "null" when it comes to
> COUNTER64 variables.

Note that SNMPv1 doesn't support Counter64 types, but the 
CommunityTarget will use SNMPv1 by default - also see RFC2576 "4.1.2.1. 
Handling Counter64".

You'll probably want to do a:

target.setVersion(SnmpConstants.version2c);

to use SNMPv2c instead of SNMPv1.


Christof

-- 
Emnico Technologies Ltd - http://www.emnico.com
Dauntsey House, Stonehill Green, Westlea, Swindon SN5 7HB
Company No. 06390113

This message is confidential and may contain privileged information.
If you are not the addressee indicated in this message (or responsible
for delivery of the message to them), you may not copy or deliver this
message to anyone or take any action in reliance on it.  If you have
received this e-mail in error, please delete it and notify the sender
as soon as possible.  The Emnico group of companies do not accept any
liability for any harm that may be caused to the recipient's system or
data by this message.  Please carry out virus and other such checks as
you consider appropriate.



More information about the SNMP4J mailing list