ArchiveOrangemail archive

General discussion forum for net-snmp users


net-snmp-users.lists.sourceforge.net
(List home) (Recent threads) (67 other SourceForge lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Low traffic list: less than 3 messages per day
  • This list contains about 8,484 messages, beginning Aug 2009
  • 0 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

snmpset Bad Object Type

Ad
rangeli nepal 1261163394Fri, 18 Dec 2009 19:09:54 +0000 (UTC)
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?
Raj Gurung 1261165645Fri, 18 Dec 2009 19:47:25 +0000 (UTC)
dskPercentNode is  read only object type, so you cannot modify it.

From UCD-SNMP-MIB.txt file:
.
.
dskPercentNode OBJECT-TYPE
    SYNTAX      Integer32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Percentage of inodes used on disk"
    ::= { dskEntry 10 }
.
.
Hope it clears your problem.

Thanks,
raj
On Dec 18, 2009, at 11:06 AM, rangeli nepal wrote: > 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 > > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/...
rangeli nepal 1261164698Fri, 18 Dec 2009 19:31:38 +0000 (UTC)
Thank you Raj.
On Fri, Dec 18, 2009 at 2:22 PM, Raj Gurung wrote: > dskPercentNode is read only object type, so you cannot modify it. > > From UCD-SNMP-MIB.txt file: > . > . > dskPercentNode OBJECT-TYPE > SYNTAX Integer32 > MAX-ACCESS read-only > STATUS current > DESCRIPTION > "Percentage of inodes used on disk" > ::= { dskEntry 10 } > . > . > Hope it clears your problem. > > Thanks, > raj > > On Dec 18, 2009, at 11:06 AM, rangeli nepal wrote: > > 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 > > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/... > > > -- > sysAdmin > Evryx Technologies, Inc. > 412 W. Broadway, Suite 201 | Glendale, CA 91204 > T: +1.818.552.3568 F: +1.818.552.3587 > C: +1 818.720.9504 > www.linkmemobile.com > >
Home | About | Privacy