[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-users
Subject:    Re: Reg Segmentation Fault while processing SET request
From:       "Dave Shield" <D.T.Shield () liverpool ! ac ! uk>
Date:       2007-11-25 19:32:41
Message-ID: c64ae3380711251132n7c970690j3d48dffd3cb9c59d () mail ! gmail ! com
[Download RAW message or body]

On 16/11/2007, Awadhesh Kumar <awadhesh.usa@gmail.com> 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
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic