Re: How to perform long-running task in subagent

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Wed, 2005-12-14 at 07:48 -0500, [email protected] wrote:
> Is there a common idiom for doing something that takes a long time in an
> agent?  Do I need a separate thread for those actions and have the agent
> just set a bit the thread can see?

I think something alone those lines is going to be your best approach.
Use SNMP to initiate the action, and have some mechanism for reporting
the results, rather than block waiting for the results immediately.

Probably the most relevant official work would be the DisMan Script MIB.
That's probably overkill for your requirements, but an examination of
the MIB structure they came up with (and perhaps a browse of the mailing
list archives) might give you some ideas.


>   Is there a better way?

There's *always* a better way!   :-)

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.