On Sun, 5 Sep 2004 18:10:18 +0900 Won-Sik wrote: WSK> 1. which kind of locking ? WSK> a. Every snmp get/set/getnext pdu to snmpd are discarded. WSK> b. But, snmpd shows no problem with processing any signal. WSK> c. It looks like main loop is also OK. WSK> d. I am sure that snmpd is not in infinite loop status when this WSK> problem occur. WSK> WSK> 2. when this problem occur ? WSK> a. send a lot of snmpset pdu periodically to sub-agent 'A'. (I think WSK> this item is necessary WSK> to make this problem) WSK> [...] WSK> c. do 'link down' and 'link up' between master agent and sub-agent 'A' WSK> continuously.
When a snmpset is received, the agent will not process any new requests until the set finishes processing. If AgentX sessions are closed, then an outstanding set request that is not cleaned up would definitely behave as you describe in 1. WSK> 3. what did I do to solve this problem ? WSK> a. I removed following two lines from file agent/snmp_agent.c That is definitely not the right solution, as it will unconditionally remove all delegated requests for all sessions. WSK> b. because of removing two lines above, it seems, locking problem is WSK> solved. WSK> but, this solution causes all delegated snmp set requests to any WSK> sub-agent return error when one of sub-agent disconnected. but, WSK> this new small bug is much better than SNMP locking problem. Which is exactly what I would expect you fix to do. WSK> So, is there somebody who has any idea about my SNMP locking problem ? What version are you using? If it isn't 5.1.2, can you reproduce the problem with 5.1.2? -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
