Set Alert Resolution State
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
Set Alert Resolution State

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





Posted: Tue Jan 11, 2005 3:15 pm    Post subject: Set Alert Resolution State Reply with quote

Hi,

I looking for a script or other option to change the alert
resolution state while I get event
Back to top
Smita Mahalati
Guest





Posted: Wed Jan 12, 2005 4:11 am    Post subject: Re: Set Alert Resolution State Reply with quote

You can create an Alert Processing Rule to run the following script as a
response:

Option Explicit
Sub Main()
Dim myAlert
Set myAlert = ScriptContext.Alert
myAlert.ResolutionState = 'Your resolutionState here
End Sub

You can also use the managed classes exposed through SDK. Please let me know
if you need help using this.

--
--------------------------------------
Smita Mahalati [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm .

"DAN" <anonymous@discussions.microsoft.com> wrote in message
news:1c3f01c4f7be$20ebaea0$a301280a@phx.gbl...
Quote:
Hi,

I looking for a script or other option to change the alert
resolution state while I get event
Back to top
DAN
Guest





Posted: Thu Jan 13, 2005 4:23 pm    Post subject: Re: Set Alert Resolution State Reply with quote

Thanks,

I'm looking for an option for example:
I have an alert that said "High CPU", this alert came from
performance counter, I would like to resolve the alert if
the cpu is less than X, how can I use this script to
resolve the alert,
same with event, if I get an event that came from the
event log (for exmp. I have event error with event id
9999),
know I get new event in the event log with number 8888
that said event 9999 was solved, how can I use this script
to resolved all alert come form event id 9999.

Thank you very much


Quote:
-----Original Message-----
You can create an Alert Processing Rule to run the
following script as a
response:

Option Explicit
Sub Main()
Dim myAlert
Set myAlert = ScriptContext.Alert
myAlert.ResolutionState = 'Your resolutionState here
End Sub

You can also use the managed classes exposed through SDK.
Please let me know
if you need help using this.

--
--------------------------------------
Smita Mahalati [MSFT]
This posting is provided "AS IS" with no warranties, and
confers no rights.
Use of included script samples are subject to the terms
specified at
http://www.microsoft.com/info/cpyright.htm .

"DAN" <anonymous@discussions.microsoft.com> wrote in
message
news:1c3f01c4f7be$20ebaea0$a301280a@phx.gbl...
Hi,

I looking for a script or other option to change the
alert
resolution state while I get event


.
Back to top
DAN
Guest





Posted: Thu Jan 13, 2005 6:57 pm    Post subject: Re: Set Alert Resolution State Reply with quote

I succeed thanks,

How can I get the computer that generate the alert from
this script ?

Quote:
-----Original Message-----
Thanks,

I'm looking for an option for example:
I have an alert that said "High CPU", this alert came
from
performance counter, I would like to resolve the alert if
the cpu is less than X, how can I use this script to
resolve the alert,
same with event, if I get an event that came from the
event log (for exmp. I have event error with event id
9999),
know I get new event in the event log with number 8888
that said event 9999 was solved, how can I use this
script
to resolved all alert come form event id 9999.

Thank you very much


-----Original Message-----
You can create an Alert Processing Rule to run the
following script as a
response:

Option Explicit
Sub Main()
Dim myAlert
Set myAlert = ScriptContext.Alert
myAlert.ResolutionState = 'Your resolutionState here
End Sub

You can also use the managed classes exposed through
SDK.
Please let me know
if you need help using this.

--
--------------------------------------
Smita Mahalati [MSFT]
This posting is provided "AS IS" with no warranties, and
confers no rights.
Use of included script samples are subject to the terms
specified at
http://www.microsoft.com/info/cpyright.htm .

"DAN" <anonymous@discussions.microsoft.com> wrote in
message
news:1c3f01c4f7be$20ebaea0$a301280a@phx.gbl...
Hi,

I looking for a script or other option to change the
alert
resolution state while I get event


.

.
Back to top
Nikhil M Patel [MSFT]
Guest





Posted: Tue Jan 18, 2005 5:27 am    Post subject: Re: Set Alert Resolution State Reply with quote

Alert.Computer (Computer is a property on Alert object)

I suggest you go through the script api's exposed in MOM there is a nice
scripting guide for mom, which you can download from Microsoft.com website.
In that guide you will find all the object, properties and loads of samples
which can solve your daily issues, it is very helpful.

Thanks,
Nikhil

"DAN" <anonymous@discussions.microsoft.com> wrote in message
news:0a3e01c4f96f$81c84b90$a401280a@phx.gbl...
Quote:
I succeed thanks,

How can I get the computer that generate the alert from
this script ?

-----Original Message-----
Thanks,

I'm looking for an option for example:
I have an alert that said "High CPU", this alert came
from
performance counter, I would like to resolve the alert if
the cpu is less than X, how can I use this script to
resolve the alert,
same with event, if I get an event that came from the
event log (for exmp. I have event error with event id
9999),
know I get new event in the event log with number 8888
that said event 9999 was solved, how can I use this
script
to resolved all alert come form event id 9999.

Thank you very much


-----Original Message-----
You can create an Alert Processing Rule to run the
following script as a
response:

Option Explicit
Sub Main()
Dim myAlert
Set myAlert = ScriptContext.Alert
myAlert.ResolutionState = 'Your resolutionState here
End Sub

You can also use the managed classes exposed through
SDK.
Please let me know
if you need help using this.

--
--------------------------------------
Smita Mahalati [MSFT]
This posting is provided "AS IS" with no warranties, and
confers no rights.
Use of included script samples are subject to the terms
specified at
http://www.microsoft.com/info/cpyright.htm .

"DAN" <anonymous@discussions.microsoft.com> wrote in
message
news:1c3f01c4f7be$20ebaea0$a301280a@phx.gbl...
Hi,

I looking for a script or other option to change the
alert
resolution state while I get event


.

.
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