Re :Re :Re: Agent & Subagent connection status

"girish" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <1203327409.S.7486.29987.f4mail-235-205.rediffmail.com.old.1203333555.32037@webmail.rediffmail.com>
So, cant I inform my subagent by any means that master has gone down and u stop receiving the informs from other module and not to forward to master???On 18 Feb 2008 09:36:34 -0000 "girish"  wrote  Thanks for the reply Dave.Why I'm asking for this is I need to set some flag in my subagent code when ever master goes down. Once master comes up I need to reset that flag so that my subagent will not receive any notifications untill master has came up. On Mon, 18 Feb 2008 09:33:51 +0000 "Dave Shield"  wrote  On 18 Feb 2008 06:54:39 -0000, girish  wrote:  &gt;  I want to know how we can get information that master and subagents  &gt; 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").      &gt;   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        Regards,  Girish    


Regards,
Girish

-------------------------------------------------------------------------
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.