Hi all,
When snmpd master agent is in STOP state and our subagent pings it,
it does not respond to any of the client requests for around 18
seconds.
Here are our observations after analyzing the problem
- Duration of unresponsive period depends on two session
parameters namely timeout and retries
Sub-agent does the following
- pings the master agent by sending a request to the master
agent,
- if the master agent does not respond the sub-agent closes
the session and re-opens again.
So the subagent sends out 3 different packet in this scenario.
- These session attributes are hardcoded with values 1 sec for
timeout and 5 for retries
(Reference : subagent_open_master_session() function in file
/agent/mibgroup/agentx/subagent.c)
and hence 6 secs per packet sent out resulting in 18 secs for 3
different packets.
Can these values be made configurable using the variables
agentXTimeout and agentXRetries in the file snmp.conf?
- I understand that this requires changes in the net-snmp code. We
want a solution with no or minimal changes to net-snmp code
so that we need not have to patch these changes everytime we
upgrade Net-SNMP module in future.
So our plan is to make use of netsnmp_ds_set_int() function for
setting the values in our code and set the session retry and timeout
variables assigned to the values returned by their correspoding
netsnmp_ds_get_int() function in net-snmp code.
Please let me know your comments on the fix and what can be done about
the upgrade issue.
Best Regards,
Logeswari.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders