| Author |
Message |
CarlF
Guest
|
Posted:
Wed Oct 26, 2005 8:51 pm Post subject:
using event/alert parameters in task scripts |
|
|
I'm trying to enable a scenario where an admin can run a task that enables
verbose logging in response to an alert, with the task script being smart
enough to turn on logging for the right component (the app in question has
very granular logging control). To do this I need to reference the
event/alert source parameter in the script run via task.
I see how to reference event/alert properties in a command line task, and
computer/role properties in script tasks (via the specification of a role),
but not how to reference event/alert properties in a script task.
Is it possible to do so?
Thanks
Carl |
|
| Back to top |
|
 |
Daniel Lai [MVP-Managemen
Guest
|
Posted:
Thu Oct 27, 2005 12:52 am Post subject:
Re: using event/alert parameters in task scripts |
|
|
Hello,
Thank you for your posting!
Please try to find the information on VBscript
If you have any questions, please feel to let me know. I am glad to be of
assistance.
--
Daniel Lai
Microsoft MVP Program Top Contributor
Windows Server-Management Infrastructure
Microsoft Management Solution Consultant
http://msmvps.com/daniel
"CarlF" <CarlF@discussions.microsoft.com> wrote in message
news:D8025F02-8C7A-4264-8F22-6C3CC4B31BB9@microsoft.com...
| Quote: | I'm trying to enable a scenario where an admin can run a task that enables
verbose logging in response to an alert, with the task script being smart
enough to turn on logging for the right component (the app in question has
very granular logging control). To do this I need to reference the
event/alert source parameter in the script run via task.
I see how to reference event/alert properties in a command line task, and
computer/role properties in script tasks (via the specification of a
role),
but not how to reference event/alert properties in a script task.
Is it possible to do so?
Thanks
Carl |
|
|
| Back to top |
|
 |
CarlF
Guest
|
Posted:
Thu Oct 27, 2005 8:51 pm Post subject:
Re: using event/alert parameters in task scripts |
|
|
Thanks for your reply Daniel, but I don't understand what you are trying to
tell me. The script is VB, and I have looked at the MOM SDK and the
ScriptContext.IsAlert and ScriptContext.IsEvent methods but they both return
false when I select an alert or event in the Ops console and then run my
task. It seems those are for use with scripts run as event rule responses.
Is there an equivalent way to get alert/event properties for scripts run via
tasks if an alert/event is selected when a task is run?
"Daniel Lai [MVP-Management Infrastructur" wrote:
| Quote: |
Hello,
Thank you for your posting!
Please try to find the information on VBscript
If you have any questions, please feel to let me know. I am glad to be of
assistance.
--
Daniel Lai
Microsoft MVP Program Top Contributor
Windows Server-Management Infrastructure
Microsoft Management Solution Consultant
http://msmvps.com/daniel
"CarlF" <CarlF@discussions.microsoft.com> wrote in message
news:D8025F02-8C7A-4264-8F22-6C3CC4B31BB9@microsoft.com...
I'm trying to enable a scenario where an admin can run a task that enables
verbose logging in response to an alert, with the task script being smart
enough to turn on logging for the right component (the app in question has
very granular logging control). To do this I need to reference the
event/alert source parameter in the script run via task.
I see how to reference event/alert properties in a command line task, and
computer/role properties in script tasks (via the specification of a
role),
but not how to reference event/alert properties in a script task.
Is it possible to do so?
Thanks
Carl
|
|
|
| Back to top |
|
 |
|
|
|
|