Title: Message
Hi folks,
I am new to this SNMP funda and I hope,I will get my problems solved by your valuable help...
The Problem I am facing is ,I am not able to set the data in my local machine..
 
I have installed net-snmp version 5.1.1
 
I am giving the following command
 
snmpset -v 2c -c public localhost sysContact.0 s "Jimmy"
 
and I am getting the following error
 
Error in packet.
Reason: notWritable (that object does not support modification)
Failed object: .1.3.6.1.2.1.1.4.0
 
and I tried by giving the OID also,like this
 
snmpset -v 2c -c public localhost 1.3.6.1.2.1.1.4.0 s "Jimmy"
 
but getting the same error.
 
but for the same MIB, I am able to set the sysName ,which works fine .like
 
snmpset -v 2c -c public localhost sysName.0 s "manjunk"
 
which works fine with OID also,as
 
snmpset -v 2c -c public localhost .1.3.6.1.2.1.1.5.0 s "manjunk"
 
both sysName and sysContact are readwrite objects...
 
and before posting this mail ,i have referred to archives and got the following link... http://net-snmp.sourceforge.net/irc/net-snmp.log.2003-3-10.html
 
but ,they didnt give solution to the problem..
 
Our snmpd.conf file looks as shown below
---------------------------------------------------------------------------------------------------------------------------------
com2sec local localhost public
com2sec mynetwork 10.116.20.0/24 public
 
#Group declaration for accessing to the SNMP objects managed by the SNMP agent for local and mynetwork
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyRWGroup v1 mynetwork
group MyRWGroup v2c mynetwork
group   public  v2c     public
group local   v2c        local
 
#view
view all    included  .1
 
#Read/write access to the MIB objects for a local SNMP request and read only access for a remote SNMP request
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
access public  ""      any       noauth    exact  system none  none
access local   ""      any       noauth    exact  all    all   all
 
#Read Write Community
rwcommunity  public
rocommunity  public
rwcommunity  public 10.116.20.0/24
 
trap2sink  ipv61 public 162
trapsink localhost public
trap2sink localhost public
 
agentuser  root
 
---------------------------------------------------------------------------------------------------------------------------------------------------------------
 
If any more inputs you need... I am ready to give....
 
Please kindly help me in solving this problem.. any inputs will be greatly appreciated .Thanks in advance.
 
regards,
Prabhu Anandh

Reply via email to