Sorry, my mistake. I set community string wrongly. I checked my snmpd.conf
and reset it to private, and get another issue (wrong value):

> snmpset -v 2c -c private localhost
.iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleTables.netSnmpHostsTable.netSnmpHostsEntry.netSnmpHostAddress.\"coconut\"
= 7F000101
Error in packet.
Reason: wrongValue (The set value is illegal or unsupported in some way)
Failed object: .1.3.6.1.4.1.8072.2.2.2.1.3.7.99.111.99.111.110.117.116


Another try with generic setting, gives the same issue:

> snmpset -v 2c -c private localhost
.iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleTables.netSnmpHostsTable.netSnmpHostsEntry.netSnmpHostAddress.\"coconut\"
= 7F000101
Error in packet.
Reason: wrongValue (The set value is illegal or unsupported in some way)
Failed object: .1.3.6.1.4.1.8072.2.2.2.1.3.7.99.111.99.111.110.117.116

yet another:

> snmpset -v 1 -c private localhost
.iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleTables.netSnmpHostsTable.netSnmpHostsEntry.netSnmpHostAddress.\"coconut\"
= "7F000101"
Error in packet.
Reason: (badValue) The value given has the wrong type or length.
Failed object: .1.3.6.1.4.1.8072.2.2.2.1.3.7.99.111.99.111.110.117.116

one more:

> snmpset -v 2c -c private localhost
.iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleTables.netSnmpHostsTable.netSnmpHostsEntry.netSnmpHostAddress.\"coconut\"
= \"7F000101\"
Error in packet.
Reason: wrongValue (The set value is illegal or unsupported in some way)
Failed object: .1.3.6.1.4.1.8072.2.2.2.1.3.7.99.111.99.111.110.117.116

All failed.

-Z


On Wed, Apr 27, 2011 at 10:50 AM, Dave Shield <d.t.shi...@liverpool.ac.uk>wrote:

> On 27 April 2011 15:39, Zimmer Hu <zih...@gmail.com> wrote:
>
> > Here is the command feedback:
> >
> >> snmpset -v 2c -c public localhost  netSnmpHostAddress.\"coconut\"  s
> 7F000101
> > Error in packet.
> > Reason: noAccess
>
> This is an error from the remote end.
> It's telling you that the agent doesn't allow SET requests with that
> community string.
>
> The previous error was from the snmpset command,  and telling you
> that it didn't understand what it was being asked to do.
>
>
> Have a look at the access control settings in the snmpd.conf file.
> There's more information about this in the snmpd.conf(5) man page,
> and the project FAQ
>
> Dave
>
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to