I have a mib structure like this

wmanTestDataHolder OBJECT-TYPE
        SYNTAX      INTEGER
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION
            "This value is a test field."
        ::= { maxTestMib 1 }


When I want to get the value no problem occurs.

[EMAIL PROTECTED] ~]# snmptranslate -IR -Tp wmanTestDataHolder
*+-- -RW- INTEGER   wmanTestDataHolder(1)*

[EMAIL PROTECTED] ~]# snmpget -v 1 -c public localhost wmanTestDataHolder.0
*MAX-TEST-MIB::wmanTestDataHolder.0 = INTEGER: 2*

[EMAIL PROTECTED] ~]# snmpwalk -v 1 -c public localhost wmanTestDataHolder
*MAX-TEST-MIB::wmanTestDataHolder.0 = INTEGER: 3*

[EMAIL PROTECTED] ~]# snmpwalk -v 1 -c public localhost wmanTestDataHolder
*MAX-TEST-MIB::wmanTestDataHolder.0 = INTEGER: 4*

But whenever I want to set some values it fails.


[EMAIL PROTECTED] ~]# snmpset -v 1 -c public localhost wmanTestDataHolder.0 i
100
*Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.*

[EMAIL PROTECTED] ~]# snmpset -v 2c -c public localhost wmanTestDataHolder.0 i
100
*Error in packet.
Reason: noAccess*

[EMAIL PROTECTED] ~]# snmpset -v 1 -c public localhost wmanTestDataHolder.0 =
100
*Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.*


I guess it is something to deal with snmpd access. But I could not find what
I should add/delete from snmpd.conf

I am attaching my snmpd.conf.

Please help me finding out the bug...

-- 
Maksud

Attachment: snmpd.conf
Description: Binary data

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to