snmpset Bad Object Type

rangeli nepal <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello,

I am trying to generate trap from net-snmp for disk statistics. I have a
monitor declared like this

monitor -t -r 15   -o dskPath  -o dskDevice  dskPercent > 80

I am monitory disk as
disk /
disk /boo

I am succesfully getting snmpget values

 snmpget localhost -v 2c -c public  .1.3.6.1.4.1.2021.9.1.10.1
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 1

However if I try to set value

 snmpset localhost -v 2c -c private  .1.3.6.1.4.1.2021.9.1.10.1 i 90
-v: Bad object type: 2

I checked my snmpd.conf. It has two entries

rwcommunity private
rocommunity public
authtrapenable 1

What I am missing?

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev

_______________________________________________
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.