Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

snmpset noAccess problem

1,182 views
Skip to first unread message

Gil Montag

unread,
Oct 15, 2009, 11:37:43 AM10/15/09
to
Hi,

I have a MIB object with read-write permission. MIB section looks like this:

EnableHalt OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-write STATUS
current DESCRIPTION "implemented in NetSnmpcodsMr.c file." DEFVAL { 0
} ::= { Scalars 4 }

When I do a set on this object :
sudo snmpset -v 2c -c public localhost 1.3.6.1.4.1.8072.2.2.4.0 i 1
I Get:
Error in packet. Reason: noAccess Failed object: NET-SNMP-MIB::netSnmp.2.2.4.0

When I do a get:

snmpget -v 2c -c public localhost 1.3.6.1.4.1.8072.2.2.4.0
NET-SNMP-MIB::netSnmp.2.2.4.0 = INTEGER: 1

All is fine!

In snmpd.conf I added the line:

rwcommunity public localhost

Still noAccess issue. I'm using net snmp 5.4.2.1 on Ubuntu

What am I doing wrong? Please advice
Thanks Gil

p.s.
I do manage to do a set on the object if I'm using the -v 3 flag in
command line (after I added my username into the snmp.conf)

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Mike Ayers

unread,
Oct 16, 2009, 8:31:33 PM10/16/09
to
> From: Gil Montag [mailto:gil...@gmail.com]
> Sent: Thursday, October 15, 2009 8:38 AM


> When I do a set on this object :
> sudo snmpset -v 2c -c public localhost 1.3.6.1.4.1.8072.2.2.4.0 i 1
> I Get:
> Error in packet. Reason: noAccess Failed object: NET-SNMP-
> MIB::netSnmp.2.2.4.0

> In snmpd.conf I added the line:


>
> rwcommunity public localhost
>
> Still noAccess issue.

Did you remove the rocommunity line for public?


HTH,

Mike

0 new messages