hi there I am trying to write a very simple code single mib , single field (see below) , the purpose is to perform an snmpset from bash to this single field via script and then a simple snmpget from manager station , I am using mib2c with this template mib2c.int_watch.conf , themn I am using gcc to compile to a filename.so.
my snmpd.conf contains : dlmod ApocValue /usr/lib/filename.so It seems i can snmpget and see the default value but when I try to snmpset I get the follwoing error: [r...@kanaboodi mibs]# snmpset -v 2c -c boodi-set localhost ApocValue i 50 Error in packet. Reason: notWritable (That object does not support modification) Failed object: MY-COMPANY3-MIB::ApocValue What am I doing wrong here? BTW - Using Centos 5.5 x86 , net-snmp version 5.3.2 MIB FILE ------------------- MY-COMPANY3-MIB DEFINITIONS ::= BEGIN IMPORTS MODULE-IDENTITY, OBJECT-TYPE, enterprises, Integer32 FROM SNMPv2-SMI; -- root of our MIB will point to enterprises myCompany3MIB MODULE-IDENTITY LAST-UPDATED "201011210000Z" ORGANIZATION "my org" CONTACT-INFO "email: r...@localhost" DESCRIPTION "Example MIB" REVISION "201011210001Z" DESCRIPTION "snmp SET test mib" ::= { enterprises 36506 } ApocValue OBJECT IDENTIFIER ::= { myCompany3MIB 1 } -- time to define apoc values apoc OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-write STATUS current DESCRIPTION "Apoc Set from script" ::= { ApocValue 1 } END ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users