On 27/07/06, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote:
> How to write persistent data storage

   snmpd_store_config();

See (for example) 'system_store' in the file agent/mibgroup/mibII/system_mib.c
This covers both how to write data out to persistent storage, how to
trigger this (snmp_register_callback(SNMP_CALLBACK_STORE_DATA)), and
how to read the settings back in again (suitable
snmpd_register_config_handler() entries).


> Is their any tool to generate persistent data storage file for MIB file.

No.
In general, the mib2c tool is just concerned with generating code for
the agent<->SNMP interface.  It doesn't really cover where the
underlying information is obtained from, persistent storage, or
configuration handling.  It's up to the module programmer to add that/


> After writing an Persistent data storage file, how to compile it

I don't understand.  What do you mean by "compiling" a storage file?
Persistent storage is handled just like any other snmpd.conf file - it
contains a series of configure directives, which are read in as usual.
 There's no compilation needed.

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to