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.