MIB persistence
Ram Krishnaswamy
RKrishnaswamy____pathfire.com
Sun Feb 17 20:40:43 CET 2002
Hello Frank, Jochen & all,
I am running the latest agent++ (3.5.1a) and snmp++ (version 3.1.5) on
windows and I would like to know how to disable persistence of mib entries
once the agent is shutdown? Seems like, looking at the code, all mib modules
are made persistent. If I am not able to disable this option on
initialization, I would like to at least delete the mib modules on exit.
What is the best way to do this?
Also, I would like you all to validate and correct if I am doing something
wrong in terms of updating table instances. On startup, I initialize all
tables with whatever knowledge I have at that time. As and when there is a
change, I update the corresponding instance with the updated values.
For updating a table row, I do the following:
Oidx index(string)
if (is_index_valid(index))
{
MibTableRow *row = find_index(row);
if ( row != NULL)
{
start_synch();
row->get_nth(col_num)->replace_value(new OctetStr(newvalue));
end_synch();
}
}
Is there anything wrong in the way I am implementing this?
Thanks for your help.
Ram Krishnaswamy
x1601
More information about the AGENTPP
mailing list