Re: Reg Segmentation Fault while processing SET request

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 16/11/2007, Awadhesh Kumar <[email protected]> wrote:
> I am facing problem with SET processing in my master agent-sub agent
> communication. I am using NET-SNMP 5.4.1.

The first thing that I would do is to try and simplify the setup.
If it's possible, try compiling your MIB module directly into the
main SNMP agent - rather than running as a master/subagent


> But If the response is
> received to UNDO the set request due to some failure condition then I
> call
>
> netsnmp_set_mode_request_error (MODE_SET_ACTION,
>                           requests, SNMP_ERR_GENERR);
>
> to roll back(UNDO) the operation.

It's not totally clear, but is that part of the ACTION pass, or the UNDO pass?

You should really try to avoid throwing an error in the UNDO (or COMMIT)
pass.   It's up to your code to reverse whatever happened in the ACTION
and RESERVE passes - the agent won't do this automatically.

It's also more common to use 'netsnmp_set_request_error', rather than
calling netsnmp_set_mode_request_error() directly.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.