Hi, I am using Net-snmp-5.2.2. I tried to do snmpset on syslocation, but got the error "Reason: notWritable". I commented the line "sysLocation India" and restarted snmpd and snmpset was successful.
I hope doing something similar might work in 5.0.8 as well. Regards, Suresh. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Thursday, October 18, 2007 2:18 PM To: Anuradha Bhakta Cc: [email protected] Subject: Re: Generic question on SNMP Set On 18/10/2007, Anuradha Bhakta <[EMAIL PROTECTED]> wrote: > When we do snmp set on any variable, and the operation is > successful(received no error), then can we safely assume that the Set > operation is successful? If you send a SET request, and receive a response with error-status=0, then yes, you can assume that the SET was successful. > The actual O/P that I am seeing (with net-snmp 5.08) : > [EMAIL PROTECTED] testuser]# snmpset -v 2c -t 120 -n "" -c public > localhost 1.3.6.1.2.1.1.6.0 s contact1 > SNMPv2-MIB::sysLocation.0 = STRING: contact1 [EMAIL PROTECTED] > testuser]# snmpget -v 2c -t 120 -n "" -c public > localhost 1.3.6.1.2.1.1.6.0 SNMPv2-MIB::sysLocation.0 = > STRING: Unknown (edit /etc/snmp/snmpd.conf) Hmmm... that certainly looks wrong. Note that 5.0.8 is a very old version of the software. It's not even the most recent releast on the 5.0.x line, and that line is no longer being maintained. The first thing that I'd suggest would be to upgrade to a more recent version of the agent. > Basically, I needed to take a decision in my project, for peforming > certain operations, if get-set-get needed or simple get-set with > handling of error nos be sufficient & hence this query. GET-SET ought to be sufficient. But don't take my word for it - try it for yourself. Try sending the SET requests that you'll be working with, check for errors/success, and see if a subsequent GET will report the updated values. Dave ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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
