using event/alert parameters in task scripts
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
using event/alert parameters in task scripts

 
Post new topic   Reply to topic    Windows Server Forum Index -> MOM
Author Message
CarlF
Guest





Posted: Wed Oct 26, 2005 8:51 pm    Post subject: using event/alert parameters in task scripts Reply with 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
Daniel Lai [MVP-Managemen
Guest





Posted: Thu Oct 27, 2005 12:52 am    Post subject: Re: using event/alert parameters in task scripts Reply with 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...
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 Reply with quote

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
 
Post new topic   Reply to topic    Windows Server Forum Index -> MOM All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB