"agentxsocket" directive is working fine .
But The other config parameters are not getting initialized before the call
init_nstAgentSubagentObject(); in the example
http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/demon/example-demon.c
c
I want few config tokens to be read before the module initialization. Module
initialization needs them.
Am I asking too ugly staff ?
let 's say in the init_nstAgentSubagentObject() I want to register a table
with
cache_expiry interval
I do not want to give any fixed value but like to have it in the config file.
Thanks
________________________________
From: Dave Shield <[email protected]>
To: sujata patra <[email protected]>
Cc: net-snmp-coders <[email protected]>
Sent: Tue, March 22, 2011 3:49:25 PM
Subject: Re: register_premib_handler ?
On 22 March 2011 10:06, sujata patra <[email protected]> wrote:
> 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");
That's exactly what the "agentxsocket" directive will do.
This token invokes the agentx_parse_agentx_socket()
routine, which sets the NETSNMP_DS_AGENT_X_SOCKET string.
That doesn't need to be done before reading the MIB files either.
The normal config handling is still done before opening or
connecting to the AgentX socket.
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