Re: HOW to use snmpset to set value of a COUNTER64 type OID parameter

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/11/5 lucky goyal <[email protected]>:
>  Whenthe 'U' is used to represent the set variable type (snmpset -v2c -cpublic
> localhost MY-MIB::Variable.1 U 1234 ) the variable type sent in the SNMP SET
> request is ASN_OPAQUE

That is correct.
The type 'U' indicates the (non-standard) type "Unsigned64",
which is implemented as an Opaque-wrapped type.


> whereas the variable type for COUNTER64 is ASN_COUNTER64.

The type character for Counter64 is 'C', not 'U'

But please note that it is not valid to define a Counter or Counter64
object with write-access, and hence these types cannot be used with
a SET request.   See RFC 2578, sections 7.1.6 & 7.1.10


Dave

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.