Hi,

I am using Net-SNMP version 5.7.1.pre2, having built it using Visual 
Studio 2008 with support for the agentx module and installed the Perl 
modules that are bundled with it.

I have configured the agent to run as an AgentX master agent and I have a 
perl module that registers a sub-agent handler for my OID sub-tree.

I have noticed that during the processing of a Set Request, if my handler 
returns success in the RESERVE1 state as follows:

$request->setError($request_info, SNMP_ERR_NOERROR);

and an error is then detected and reported in a later state, such as 
RESERVE2, then the agent does not bail out early on the transaction 
sequence. Instead it continues to cycle through the ACTION and COMMIT 
states.

If nothing is reported on success, i.e. the line above is commented out, 
then any error reported later causes the agent to initiate a FREE or UNDO 
sequence as expected.

Is the behaviour I'm seeing expected when 'no error' is reported?

regards

Ramon



-----------------------------------------------
This email and any attached files contains company confidential information 
which may be legally privileged.  it is intended only for the person(s) or 
entity to which it is addressed and solely for the purposes set forth therein.  
If you are not the intended recipient or have received this email in error 
please notify the sender by return, delete it from your system and destroy any 
local copies.  It is strictly forbidden to use the information in this email 
including any attachment or part thereof including copying, disclosing, 
distributing, amending or using for any other purpose.

In addition the sender excludes all liabilities (whether tortious or common 
law) for damage or breach arising or related to this email including but not 
limited to viruses and libel.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to