Persistent storage
Peter Czaja <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
My goal is to persistently store some writable values of a custom MIB so they survive the lifetime of my SNMP AgentX subagent "myagent". I already stumbled upon the concept of DEFAULT_STORE and its netsnmp_ds_(get|set)_(boolean|int|string) calls. When compiling using "net-snmp-config --compile-subagent", the generated agent code contains a call to the initalizer function "init_myagent_scalar()". I successfully implemented reading of my values via "netsnmp_ds_read_int()" in there. But where is the equivalent to the "init_myagent_scalar()" function? Something like "finalize_myagent_scalar()", which would be a natural place to implement the corresponding calls to netscnmp_ds_write_*(). What did I miss? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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