On Mon, 30 Aug 2004 12:06:28 -0400 [EMAIL PROTECTED] wrote: CRC> I've got some persistent values working but it appears that they are only CRC> saved when my sub-agent is shutting down. If it (or the sysetm it's on) CRC> crashes, the values are lost.
Right. That is true for the master agent as well. CRC> This seems to be unusual or undesireable (at least for me) behavior. Well, the idea is that the agent is supposed to crash. ;-) CRC> I guess you could argue that you don't want CRC> to save on every set as numerous sets might be batched up in one request. CRC> Is that the rational for the default behavior? There is that, but it's also that the default net-snmp methodology to store data (read_config_store()) just appends to a text file. Thus, except for newly created rows, you would end up with multiple values in the file. And to read the file and only save changed data would mean parsing the file to find the existing entry. This additional overhead is what is being avoided. CRC> I'm guessing I can just call my SNMP_CALLBACK_STORE_DATA callback CRC> explicitly when I feel the need. Or is there a better idiom? That could work, but your parse routine should be prepared to handle duplicate entries. Applications that a more efficient method of persistence should implement their own system. One of these days, we probably ought to come up with a simple database. But then you get into issues of which db to use, what will be available for all the supported platforms, etc. -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ 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