Hello list,
1. As per AGENTX, AGENTX_OPEN message
contains a field 'timeout'. This value has to be filled in by the
SubAgent. Based on this value SNMP Agent should wait for a response from a
SubAgent. Is this understanding correct?
In NET-SNMP, agentxTimeout value is getting
configured in the snmpd.conf. Rather, this should have been mentioned in
the configuration file of the SubAgent. Even if it is configured in the
subagent conf file, subagent_open_master_session() function hardcodes the
timeout field to SNMP_DEFAULT_TIMEOUT which is -1. At SNMP Agent is not honoring
the value given in the OPEN PDU from the SubAgent in
open_agentx_session().
What I would like to know is,
How to send this configured timeout (not
default) value from the SubAgent to Agent?
2. agentxPingInterval mentioned in the
subagent conf file is not taken into consideration. This is because of the
following code snippet in agent/mibgroup/agentx/subagent.c
subagent_pre_init(void)
{
DEBUGMSGTL(("agentx/subagent", "initializing....\n"));/*
* set up callbacks to initiate master agent pings for this session
*/
netsnmp_ds_register_config(ASN_INTEGER,
netsnmp_ds_get_string(NETSNMP_DS_LIBRARY_ID,
NETSNMP_DS_LIB_APPTYPE),
"agentxPingInterval",
NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL);
/* ping and/or reconnect by default every 15 seconds */netsnmp_ds_set_int(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL, 15);/***********************************************************************************************MAHESH -- BY doing this, PING Interval is getting re-set to 15 seconds, no matter of the value given in the subagent configuration file.************************************************************************************************/.............}
Your clarification on this will help me a
lot.
Thank you,
Mahesh