On 22 March 2011 06:56, sujata patra <[email protected]> wrote:
> I am going through the read_config api's But i could not find the proper
> one. I want to read few private tokens for my net-snmp agent from the
> subagent.conf file .
> It will be better If i can do that before the mib initialization .
>
> I tried through few api's like register_config_handler() but could not . the
> handler never gets called.
register_config_handler() will register a handler to be called *after*
the MIB files have been read in. The equivalent API for handlers to
be called *before* the MIB files is
register_prenetsnmp_mib_handler()
If these are agent-specific tokens (i.e. in snmpd.conf),
then you may wish to look at using
register_app_config_handler()
or
register_app_prenetsnmp_mib_handler()
instead.
Dave
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders