thanks for the suggestion. will try itand one more thing is i'm using 
"agent_check_and_process" which i missed mentioning in the earlier 
mail:while(1)    {        
agent_check_and_process(1);/*0 = don't block*/     
}    snmp_shutdown("subagent_daemon");    
SOCK_CLEANUP;Here whenever master goes down souldn't "agent_check_and_process" 
function return "-1"??When I tried printing it when master gone down for the 
1st time it returned "1" and after 15 seconds it use to return "0". When it 
will return "-1" then???On Mon, 18 Feb 2008 11:43:40 +0000 "Dave Shield"  wrote 
 On 18 Feb 2008 11:19:15 -0000, girish  wrote:  > 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???    One option would 
be to add something to the routine "agentx_reopen_session"  
(agent/mibgroup/agentx/subagent.c), which
  is called when the subagent loses  contact with the master agent.     If it 
fails to re-establish contact, then it currently just sets an  alarm to try  
again later.  You could add something to choke the handling of informs there.  
I suppose.    Dave  


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

Reply via email to