> Can someone please let me know if there is an API
> to save the MIB values configured using NET-SNMP
> supported MIBs?

        snmpd_store_config();



> For example, user can use
>   SNMP-NOTIFICATION-MIB.txt
>   SNMP-TARGET-MIB.txt
> to configure some trap receivers

See
    notification/snmpNotifyTable.c:store_snmpNotifyTable

(That's probably a better example than the user-stuff,
 which is split between the agent and the library).



> How my application save those configurations to
> a file (snmpd.conf) so that net-snmp can auto
> load it when snmpd restarts?

Have a look at where store_snmpNotifyTable appears,
and how the contents of this routine relate to the
config directives defined in the initialisation routine.
That should give you the basic idea of how to do this.

Dave



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to