Re: Dataset helper handler
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2006-01-04 at 20:07 +0200, Makavy, Erez (Erez) wrote: > 1) If a sub-agent registered a dataset, does the request handling > occur in the Master or the Sub agent? Both. The master agent process the request, and recognises that it refers to varbinds registered by the subagent. These varbinds are therefore passed to the subagent, which processes them to provide the actual values. These values are passed back to the master agent, which passes them back to the original requestor. > (in general all handlers registered from sub-agents, are called > within the sub-agent. right?) Right. > 2) How does a sub-agent (which registered a dataset) maintain the > dataset during run-time? > 2a) Can it use the Data Set API: Table maintenance, from > Table_dataset.c? Yes. > 2b) If so, then I guess the dataset table is not thread-safe, and > the subagent cannot use a different thread to maintain the dataset > table. Very little (i.e. none!) of the agent code is thread-safe. The agent has never been designed for multi-threaded operation. People keep talking about tackling this, but no-one has yet rolled up their sleeves and set to it. The only safe approach is to keep all SNMP-related operation within a single thread. 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_id=7637&alloc_id=16865&op=click _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users