Hi, We are facing a strange issue wherein though SET operation returns SUCCESS, values are not actually "SET" on the target machine. Actually we faced this on net-snmp 5.08 version quite some time back. As seen in the below mail (with subject "Generic question on SNMP Set"), as then suggested, we moved on to different version. And as our product was already using net-snmp version 1.0, we started using this and did not face this issue again. Now we are seeing this issue again on 1.0.
I would like to know if anyone has faced this issue earlier. If so, is there any fix for this. Also, to add further observations, this issue did not appear again, after we restarted our product. This is just FYI, in case if it is helpful. (Note that the target machine does not use net-snmp, and our product uses only net-snmp APIs for management operations) Thanks in advance, Anu -----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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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
