] >>I've got some persistent values working but it appears that they are only saved when my sub-agent is shutting down. If it (or the >>sysetm it's on) crashes, the values are lost. This seems to be unusual or undesireable (at least for me) behavior. I guess you could >>argue that you don't want to save on every set as numerous sets might be batched up in one request. Is that the rational for the >>default behavior?
Ok what I do is keep a local copy of the set request data in an array. This could easily be a linked list of objects. When a set request is made I check a COMMIT flags in my MIB to see if that is set. If it is set when the commit function gets called (following the set action) I then pack the contents of the row into a message. This message is then parsed and columns extracted and pushed into a linked list/ vector. The store function is called and writes the linked list into persistence. By doing this updates to persistence are passed to the user and not when the agent is killed. Make sence? Cheers, Garyc ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 30, 2004 11:06 AM Subject: Saving persistent values *now* > I've got some persistent values working but it appears that they are only saved when my sub-agent is shutting down. If it (or the sysetm it's on) crashes, the values are lost. This seems to be unusual or undesireable (at least for me) behavior. I guess you could argue that you don't want to save on every set as numerous sets might be batched up in one request. Is that the rational for the default behavior? > > I'm guessing I can just call my SNMP_CALLBACK_STORE_DATA callback explicitly when I feel the need. Or is there a better idiom? > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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