Hello,
Need some help related to snmpset command.

I am trying to use netsnmp agent for publishing Statistics of my
application on SNMP.

My application will call snmpset to push the statistics in snmpd and
the monitoring tool will pull statistics from snmpd.

Problem is :: that snmp set fails with below error

snmpset -v 2c -c writer 127.0.0.1 .1.3.6.1.4.1.99987.100 i 10

Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: SNMPv2-SMI::enterprises.99987.100


Also when i fire snmpget

snmpget -v 2c -c writer 127.0.0.1 .1.3.6.1.4.1.99987.100
SNMPv2-SMI::enterprises.99987.100 = No Such Object available on this
agent at this OID

+++++++++++++++++++++
My snmpd.conf file :::

rwcommunity writer
rwcommunity public
rwcommunity private 127.0.0.1


++++++++++++++++

snmpd process is running

snmp     38888     1  0 15:58 ?        00:00:01 /usr/sbin/snmpd -LE 7
-Lsd -Lf /tmp/snmpdd.log -u snmp -g snmp -I -smux mteTrigger
mteTriggerConf -p /var/run/snmpd.pid


+++++++++++++++++++++++++

MIB file

SAMPLE-MIB DEFINITIONS ::= BEGIN

IMPORTS
        enterprises, IpAddress
                FROM RFC1155-SMI
        DisplayString
                FROM RFC1213-MIB
        OBJECT-TYPE
                FROM RFC-1212;

notifAppStats OBJECT IDENTIFIER ::= { enterprises 99987 }


        tempObjj OBJECT-TYPE
                SYNTAX INTEGER
                MAX-ACCESS  read-write
                STATUS  mandatory
                DESCRIPTION
                        "for testing."

                ::= { notifAppStats 100 }

END
++++++++++++++++++

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

Reply via email to