How to perform long-running task in subagent
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I seem to recall seeing something like this on the list before but I had
trouble picking keywords to search the archive and the hits I did find,
didn't answer my question.
I want to use SNMP to trigger a long-running process, mostly during
testing, not in production. For example, I want to set a bit in a
testing MIB that'll cause my device to exercise the on-board LEDs. I
need to turn the LEDs on and off in relatively long-duration patterns to
that a tester can observe them. This can take 30-60 seconds. I've got
it prototyped but when I use snmpset to set the bit, it reports a
timeout because the subagent takes so long.
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? Is there a a better way?
Chris
-------------------------------------------------------
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