Persisting sysGroup elements


I would like to capture changes made to the sysLocation / sysContact / sysName OIDs (under iso,org.dod.internet.mgmt.mib-2.system) and save these to a file.

Any commit_set_request() method that can be overridden?



Some of the objects of your list are directly implemented as standard DisplayString objects. To be informed about changes you should call

MibEntry::register_for_notifications(MibEntry* entry)

on each of the objects of system_group. Your MibEntry::change_notification method will then be called with the change type and you may use Mib::get to get the changed MibLeaf.

Hope this helps.