One more thing,

If you have not set any value for syslocation in snmpd.conf file then
you can set the value using snmpset.
Otherwise it will give object is not writable.

Thanks,
deepa 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Anuradha Bhakta
Sent: Thursday, October 18, 2007 1:53 PM
To: [email protected]
Cc: Dave Shield
Subject: Generic question on SNMP Set

Hi,

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?? Also, as per the SNMPv2 RFC 3416, "the
receiving SNMP entity processes each variable binding in the
variable-binding list to produce a Response-PDU.  All fields of the
Response-PDU have the same values as the corresponding fields of the
received request except ... "

When I tried to set syslocation as below, with the response I felt the
Set was succesful. But immediately when I performed get on the same
vaiable, then I got old value. 

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)
[EMAIL PROTECTED] testuser]#

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. 

Thanks,
Anu

------------------------------------------------------------------------
-
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

Reply via email to