Persistence of MIB data

Ram Krishnaswamy RKrishnaswamy____pathfire.com
Tue Feb 26 00:20:32 CET 2002


Hello,

I had asked this question before and did not get any reply. I would
appreciate if somebody could answer it as it might help me save some time
instead of digging through the code. 

I am using the latest snmp++, agent++ libraries on windows. I have built an
agent that is running a service. If I run in this mode, then all data in
tables get written to their respective modules in c:\winnt\system32\config
directory on exit of the agent. But the data is NOT updated if the agent is
run as a non-service on a console window!!! I call the same
initializationcode, in terms of SNMP, for both. The only difference is one
turns the application into a service and passes a service handler routine
and the other one starts the agent on the command line.

If I have to turn off persistence of mib data on exit, either individually
by module or as a whole, how would I do it? This is creating some problems
for me when the agent comes back. I sometimes see old values from a previous
run. 

Thank you very much.

Ram Krishnaswamy
ramk at pathfire.com




More information about the AGENTPP mailing list