On Wed, 22 Dec 2004 12:26:44 -0600 Stephen wrote:
SD> Hmm.  I had previously tried putting the following in my snmpd.conf file:
SD> 
SD> AgentXTimeout 10
SD> AgentXRetries 10
SD> 
SD> However, for each SET request I make, it appears that the subagent 
SD> handler is being called 11 times.  It looks like it's being called once 
SD> plus the number of retries.  If I set AgentXRetries to 5, the subagent 
SD> handler is called 6 times.

That implies that the timeout value is exceeded. Try doubling it until you stop
getting retries.

SD> Am I possibly not returning the proper value from my subagent handler?  
SD> Such that even though everything is ok on the first call, the master 
SD> agent thinks there was a timeout and continues retrying?

That's a possibility. Can you try only running on sub-agent, and see if that
works without retries? Then keep adding another sub-agent until the problem
resurfaces.

SD> On a related topic, what's the difference/relationship between the 
SD> timeout and retries values as set in the snmpd.conf file and via the 
SD> netsnmp_session structure when opening a session from within code?

None. The conf file is for talking to sub-agents, and the session structure is
for talking to clients.

-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to