Hi!
> 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.
I mean, how to check the data is stored in configuration file
are not. How do I know in which configuration file data is stored. How
to write my own parser for my MIB file.
With Regards.
G.Siva Prakash Reddy.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Monday, July 31, 2006 2:16 PM
To: Siva Prakash Reddy G
Cc: [email protected]
Subject: Re: persistent data storage
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
The information contained in, or attached to, this e-mail, contains
confidential information and is intended solely for the use of the individual
or entity to whom they are addressed and is subject to legal privilege. If you
have received this e-mail in error you should notify the sender immediately by
reply e-mail, delete the message from your system and notify your system
manager. Please do not copy it for any purpose, or disclose its contents to any
other person. The views or opinions presented in this e-mail are solely those
of the author and do not necessarily represent those of the company. The
recipient should check this e-mail and any attachments for the presence of
viruses. The company accepts no liability for any damage caused, directly or
indirectly, by any virus transmitted in this email.
www.aztecsoft.com
-------------------------------------------------------------------------
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