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

Re: problem with snmpset

1,039 views
Skip to first unread message

Robert Story

unread,
May 2, 2012, 9:29:11 AM5/2/12
to
On Wed, 2 May 2012 09:35:31 +0000 Durga wrote:
DS> Hi,
DS> I am facing problem with snmpset.
DS> after alkl settings in access control still am not able to solve the
DS> problem I am getting the following error
DS>
DS> root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost
DS> sysLocation.0 s "Hello" Error in packet.
DS> Reason: notWritable (That object does not support modification)
DS> Failed object: SNMPv2-MIB::sysLocation.0
DS>
DS> so can anyone pls help?

See http://www.net-snmp.org/wiki/index.php/FAQ:Applications_14

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snm...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Durga Sree

unread,
May 3, 2012, 12:01:24 AM5/3/12
to
Am able to solve that problem if i run with sysName am getting the correct result but when i use other objects am getting the following error

root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost sysName.0 s "office"
SNMPv2-MIB::sysName.0 = STRING: office

root@newuser-desktop:/home/newuser# snmpset -v 2c -c private XXX-MIB::XXX.0 i "4"
i: Bad object type: 4

root@newuser-desktop:/home/newuser# snmpset -v 2c -c private sysORUpTime.4 t "10:01:11:00"
t: Bad object type: 1

snmpset -v 2c -c private XXX-MIB::XXX.0 s "office" (here am giving 's' instead of 'i' just to check which error i get)
s: Needs value

so can anyone pls help where i went wrong?
________________________________________
From: NetSNMP Mailbox [net-sn...@freesnmp.com] on behalf of Robert Story [rst...@freesnmp.com]
Sent: Wednesday, May 02, 2012 6:59 PM
To: Durga Sree
Cc: net-snm...@lists.sourceforge.net
Subject: Re: problem with snmpset

On Wed, 2 May 2012 09:35:31 +0000 Durga wrote:
DS> Hi,
DS> I am facing problem with snmpset.
DS> after alkl settings in access control still am not able to solve the
DS> problem I am getting the following error
DS>
DS> root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost
DS> sysLocation.0 s "Hello" Error in packet.
DS> Reason: notWritable (That object does not support modification)
DS> Failed object: SNMPv2-MIB::sysLocation.0
DS>
DS> so can anyone pls help?

See http://www.net-snmp.org/wiki/index.php/FAQ:Applications_14
Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

Earth Day. Every Day.

Dave Shield

unread,
May 3, 2012, 5:03:32 AM5/3/12
to
On 3 May 2012 05:01, Durga Sree <Durga...@lnties.com> wrote:
> Am able to solve that problem if i run with sysName am getting the correct result
> but when i use other objects am getting the following error
>
> root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost sysName.0 s "office"
> SNMPv2-MIB::sysName.0 = STRING: office

Note : this request is being sent to 'localhost'

> root@newuser-desktop:/home/newuser# snmpset -v 2c -c private XXX-MIB::XXX.0 i "4"
> i: Bad object type: 4

while this request is being sent to the host called "XXX-MIB:XXX.0"


> root@newuser-desktop:/home/newuser# snmpset -v 2c -c private sysORUpTime.4 t "10:01:11:00"
> t: Bad object type: 1
>
> snmpset -v 2c -c private XXX-MIB::XXX.0 s "office" (here am giving 's' instead of 'i' just to check which error i get)
> s: Needs value

Same here.


> so can anyone pls help where i went wrong?

You need to tell the "snmpset" command where to send the request.
It doesn't remember this from one invocation to the next!

Dave
0 new messages