Hi, The community name you are using for the read only and read write access should be different in order to be able to use the snmpset command. Moreover if you have define the sysContact information in the snmpd.conf file then you are not able to set this value with snmpset command.
Hope this will help Mike On Tuesday 29 June 2004 21:01, [EMAIL PROTECTED] wrote: > 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> > 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 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users