>>>>> On Tue, 10 Feb 2009 16:59:58 +0000, Dave Shield 
>>>>> <d.t.shi...@liverpool.ac.uk> said:

DS> The easiest approach would probably be for the dynamic
DS> entries to be written to the persistent config file (/var/net-snmp),
DS> the whole internal config cleared, and then all the config files
DS> (including /var/net-snmp/snmpd.conf) reloaded.

I believe [1] on a HUP this is already done.  In particular a HUP should
already immediately save to persistent storage, run all the remove/free
functions, and then reload all config (persistent included).

I even believe [2] that the monitor/disman-event-mib code already deals
with the separation between snmpset based config and snmpd.conf based
config by setting the StorageType column appropriately.  The remove/free
functions actually need to clear everything [3] since both the
persistent storage and normal config should reload everything again.



Footnotes: 
[1]  Read: I haven't actually checked.
[2]  See note [1].  Ha.
[3]  of course there are issues with volatile data being freed because
     it is temporary but not written to persistent storage so it's a
     actually a bit more tricky.
[4]  Aren't footnotes fun?

-- 
Wes Hardaker
Sparta, Inc.

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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

Reply via email to