1) When you stated "Sending traps is either done as part of processing SNMP requests", do you mean processing an agentX Notification PDU from a sub-agent?
1a)is there any other SNMP request processing which will invoke the master agent trap sending? 2) By mentioning the "Event Loop", do you refer to a loop on the agent_check_and_process() function [in snmp_agent.c] ? (we are talking aobut the master agent event loop) 2a) How does an alarm interupt this loop? (i see in agent_check_and_process(), you call run_alarms() synchroniously) 2b) Alarm mechanism is seperate for Master agent and for each sub-agent, right? 2c) each agent has it's own request processing loop? 3) A burst of traps can be generated by a sub-agent (without using the alarm mechanism). This will cause the socket that the master is listening on, to always full. (assuming assumption in quesiton 2 is right) I see also that _sess_read() is called for which socket which is ready. It looks like _sess_read(), processes all packets before returning. 3a) Is this true? -----Original Message----- From: Dave Shield [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 12:25 PM To: Makavy, Erez (Erez) Cc: net-snmp-users@lists.sourceforge.net Subject: Re: How does the master agent interleaves requests/agentx/traps? On Tue, 2006-01-03 at 11:25 +0200, Makavy, Erez (Erez) wrote: > As I understand the master agent is not multi-threaded, Correct. > hense it deals synchroniously with: > - receiving/sending to SNMP requests > - dispatching/retrieving requests with agentX APUDs > - sending traps > - listens for sub-agent registration/diregistration Yup. > Questions: > --------------- > 1) How does it manage all of these? What's the program-flow > for interleaves these tasks? There's an event loop listening for incoming requests on a list of sockets. This handles tasks 1, 2 and 4 in your list. Sending traps is either done as part of processing SNMP requests, or using an alarm-based mechanism. > 2) Can a burst of traps, deny request handling? An alarm call will interrupt the normal event loop processing, so if this happens too frequently, it might well interfere with the prompt processing of requests. I'm not totally sure what you mean by a burst of traps. How would such a burst be triggered? Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ 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