Re: Re-reading a persistent store
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2005-11-10 at 07:37 -0500, [email protected] wrote: > I thought ..... that on shutdown the agent > tells the subagent to save its persistent values. Hmmm... that's an idea, I suppose. In general, the administration side of the AgentX protocol is very much driven by the subagent - the master agent just listens for incoming registrations. But the master agent *does* explicitly close any AgentX connections when it shuts down. I suppose that could potentially trigger saving the configuration. But I don't believe that the Net-SNMP agent framework currently works that way. > Well, I was asking if the subagent code set up a signal handler for > SIGHUP. I guess I see now that that's unlikely. Not necessarily. If you're using the main Net-SNMP agent in a subagent role, then that will inherit the same behaviour as the master agent, so *would* include the usual SIGHUP handling. I haven't looked at the stripped-down subagent framework, to see whether that does or not. But it wouldn't be too difficult to add if necessary. And if the subagent is mostly code you've written yourself, then it'd depend on whether you coded SIGHUP handling or not :-) > > Suck it and see. > > Huh? Sorry - must be a British expression. "There is one sure way to find out {what something tastes like, whether something works} That is to {suck,do} it, and see what happens." Try it - you'll find out. Suck it, and see. (See also http://www.phrases.org.uk/bulletin_board/32/messages/1135.html ) Dave ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ 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