I found that the actual time or delay is 10 seconds. What I have determined is if the subagent delays for 10 seconds during a get operation net-snmp closes it's pipe and the subagent program receives signal SIGPIPE, Broken pipe.
I added a SIGPIPE handler to the subagent to prevent it from being terminated. And the master-agent-subagent reconnect after a period of time. Is this expected behavior from net-snmp. I am running in a system that could have 10 second delays - so there is not much I can do about this aspect of the problem. Any info you have on this would be appreciated. Thanks -----Original Message----- From: Mike Ayers [mailto:mike_ay...@tvworks.com] Sent: Tuesday, May 26, 2009 8:32 PM To: Joan Landry; net-snmp-users@lists.sourceforge.net Subject: RE: Subagent timeout > From: Joan Landry [mailto:joan.lan...@overturenetworks.com] > Sent: Monday, May 25, 2009 4:56 AM > I have a situation where it takes 2 minutes to reload some of the > tables and unfortunately when I call agent_check_and_process after 2 > minutes the code in net-snmp stops my subagnet from running. How does the master agent shut your subagent down? I know of no protocol operation for this. Do you mean, perhaps, that your subagent is crashing because it expects the master to still be waiting after two minutes? SNMP operations are expected to be timely. Te exact meaning of "timely" is debatable, but two minutes, i.e. four times the standard timeout period is not debatable - it is highly untimely. I would suggest you use three objects: trigger, state, and value. The trigger can be set-only, and starts the operation. The status has values for "uncalculated" (initial value only), "calculating", and "done". The value is the result of the calculation or a default value. > Is there a way to tell the master agent to pause? There shouldn't be. Other folk want their info, too. HTH, Mike ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ 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