How to set BITS data type?

Alex <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <trinity-1379b8df-1a01-4308-bf5b-d4e19d0eeeb4-1408407628444@3capp-mailcom-lxa04>
The MIB OID object have data type of BITS:

Composed Type: Bits
Base Type: BITS
Access: read-write
Kind: Scalar
SMI Type: OBJECT-TYPE
Value List:
docsis (0)
emta (1)
cpe (2)

    DEFVAL { '00'h }
    ::= { saCmMtaCliAccess 2 }


I want set value 2 (cpe). I tried to set value use

snmpset -v2c -c public 192.168.100.1  [object_OID] b 2

Got error:
"Error in packet.
Reason: wrongValue (The set value is illegal or unsupported in some way)"

What is the proper format to set BITS data type?



------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
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.