right . Will it possible to read it at start up ?
Let's say in this example , I like to read
agentx_subagent.
http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/demon/example-demon.c
c
In addition for agentx server socket we can give the sock address using
agentxsocket in xxx.conf file
Is there any directive for the client socket ? If no then I have to set it
programatically in the client side.
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_X_SOCKET,"tcp:1005");
So I like to read the value "tcp:1005", which is at the very start up.
________________________________
From: Dave Shield <[email protected]>
To: sujata patra <[email protected]>
Cc: net-snmp-coders <[email protected]>
Sent: Tue, March 22, 2011 2:51:58 PM
Subject: Re: register_premib_handler ?
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