I execute the command 'kill -15 PID' on the two servers

For the master agent, I put in the configuration file the parameter:
agentxsocket /home/arnboden/snmp/test/masterFile

For the subagent, I set it dynamically in the code of the subagent:
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, 
"/home/arnboden/snmp/test/masterFile");


>From: "Dave Shield" <[EMAIL PROTECTED]>
>To: "Arnaud BODENAN" <[EMAIL PROTECTED]>
>CC: [email protected]
>Subject: Re: FW: Re: How can I extend a MIB with a subagentX
>Date: Thu, 24 Aug 2006 09:33:05 +0100
>
>On 24/08/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
> > Is there a tutorial on how to manage Tables with net-snmp?
>
>No - not that I know of.
>
> > If I have multiple instances of the same server, and a manager console
> > asking for statistics on a specific server:
> > - How the master agent dispatches the request to the correct subagent?
>
>Well an AgentX subagent will register for the area(s) of the OID tree
>that it wishes to take responsibility for.  So the master agent just
>directs requests to the subagent that registered the relevant area.
>All this is handled for you automatically.  You've just got to ensure
>that the subagent makes the appropriate registration in the first
>place.
>
>
>Given the layout you described, this would typically involve registering
>
>     getStatisticsTable.*.{genServerIndex}
>
>(for a given value of genServerIndex).
>AgentX is designed to support registering a "slice" of a table - i.e.
>all the columns for a given index (or partial index).   That's exactly
>what you've got here.
>
>
>
> > Unsuccessful test:
> > I start the master agent => the file is created
> > I start the subagent
> > I stop the subagent
> > I stop the master agent => the file is NOT deleted
> >
> > Do I have to do something specific in the code at the shutdown of the
> > subagent?
>
>No - that ought to work OK.
>How do you stop the two agents?   What's the command that you use?
>
>Dave
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job 
>easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>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
>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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