[AGENT++] Processing errors for multiple varbinds in SNMP req uest

Frank Fock fock at agentpp.com
Mon Nov 17 20:44:51 CET 2003


Marek Malowidzki wrote:

>----- Original Message -----
>From: "Frank Fock" <fock at agentpp.com>
>To: "Rajesh Semwal" <rsemwal at sta.samsung.com>
>Cc: <agentpp at agentpp.org>
>Sent: Friday, November 14, 2003 12:07 AM
>Subject: Re: [AGENT++] Processing errors for multiple varbinds in SNMP req
>uest
>
>
>  
>
>>Rajesh,
>>
>>Yes indeed, when you return an error on a get_request, the processing
>>continues. This is a bug and will be changed in the next release. However,
>>normally this bug will have no effect, since a GET request should not
>>    
>>
>return
>  
>
>>an error. The view and access handling is already handled before an
>>    
>>
>object's
>  
>
>>get_request method is called.
>>    
>>
>
>Well, I personally believe that, under some circumstances, it could return
>an error (e.g., when a hardware failure occurs).
>
>  
>
Of course.

>But I would like to ask another question: Is there a possibility to return
>an error for a different variable binding that the one that is currently
>being processed (I mean SET here)? This could be useful e.g. for a row with
>some dependences between particular variables; a code that processes
>everything in a single place could decide which variable is responsible for
>an error. In the common approach, an error code must be stored and one has
>to wait for a method on the appropriate variable to be called.
>
>  
>
Yes, you can set the error status for any subrequest (not only of that
subrequest that is currently processed). Just use the Request pointer.

Best regards,
Frank






More information about the AGENTPP mailing list