Re: Agent & Subagent connection status

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 18 Feb 2008 06:54:39 -0000, girish <[email protected]> wrote:
>  I want to know how we can get information that master and subagents
> have been connected.

Not possible, I'm afraid.
The connection from the subagent to the master isn't done until *after* the
"init_agent" routine is processed.   This is because the config file settings
(handled by the "init_snmp" call) may specify the AgentX connection to use.
So the subagent cannot connect to the master until fairly late in the
initialization cycle ("SNMP_CALLBACK_POST_READ_CONFIG").


>   Also whenever master goes down i want to inform the same to my subagent.

If you have set the AgentX ping interval (e.g. using the config directive
agentxPingInterval), then the subagent will try to maintain contact with the
master agent, and attempt to re-connect if this connection is lost.
   This is handled by the main (sub)agent framework code.  You don't have
to worry about this yourself.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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.