Re: Persisting MIB table

2005-06-21 Thread Dave Shield
On Tue, 2005-06-21 at 02:01, Steve S. Law wrote: In my init_applTable(), after netsnmp_register_table_iterator, I did: snmp_register_callback(SNMP_CALLBACK_LIBRARY, SNMP_CALLBACK_STORE_DATA, persist_data,

Re: Persisting MIB table

2005-06-21 Thread Steve S. Law
--- Dave Shield [EMAIL PROTECTED] wrote: On Tue, 2005-06-21 at 02:01, Steve S. Law wrote: In my init_applTable(), after netsnmp_register_table_iterator, I did: snmp_register_callback(SNMP_CALLBACK_LIBRARY, SNMP_CALLBACK_STORE_DATA,

Re: Persisting MIB table

2005-06-20 Thread Steve S. Law
I looked at the file and tried to use the callback mechanism to save data. But when I shut-down my sub-agent, the callback is not invoked at all. In my init_applTable(), after netsnmp_register_table_iterator, I did: snmp_register_callback(SNMP_CALLBACK_LIBRARY,

Re: Persisting MIB table

2005-06-08 Thread Robert Story
On Thu, 26 May 2005 10:15:01 +0100 Dave wrote: DS (2)When the sub-agent is restarted, what happens to DS data in the saved file? Is it deleted, truncated or DS new data appended to old saved data? The file is written out completely every time. So if you register a handler to parse the data on

Re: Persisting MIB table

2005-05-26 Thread Dave Shield
On Thu, 2005-05-26 at 01:40, Steve S. Law wrote: Thanks for the direction. Some high-level questions: (1)Using those APIs to implement persistence means that data is saved to some .conf file only once and only when the sub-agent is normally terminated? I think so. It'll be saved whenever

Re: Persisting MIB table

2005-05-25 Thread Steve S. Law
Thanks for the direction. Some high-level questions: (1)Using those APIs to implement persistence means that data is saved to some .conf file only once and only when the sub-agent is normally terminated? (2)When the sub-agent is restarted, what happens to data in the saved file? Is it deleted,

Re: Persisting MIB table

2005-05-24 Thread Wes Hardaker
On Tue, 24 May 2005 12:08:24 -0700 (PDT), Steve S. Law [EMAIL PROTECTED] said: Steve I would like to confirm that if I need to persist data Steve in my MIB table, I need to implement the code to Steve persist data in my own sub-agent/MIB code after I Steve receive data from managed application

Re: Persisting MIB table

2005-05-24 Thread Steve S. Law
Can you point me to what those APIs are? Anything that make things easier will be helpful. Thanks Steve --- Wes Hardaker [EMAIL PROTECTED] wrote: On Tue, 24 May 2005 12:08:24 -0700 (PDT), Steve S. Law [EMAIL PROTECTED] said: Steve I would like to confirm that if I need to persist data