Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Passing alert id to powershell script

10 views
Skip to first unread message

Steve Giordano

unread,
Jan 4, 2010, 12:45:02 PM1/4/10
to
I created a Rule that monitors for the event ID's 1215 and 1216 from the
Operations Manager log to tell me when servers are put in and taken out of
maintenance mode. A subscription is also configured for alerts generated by
this Rule to kick off a powershell script and pass it the Alert GUID. This
is setup in the form of a Command Channel with the following settings:

- Full path of the command file: C:\Scripts\MaintenanceModeScript.ps1
- Command Line Parameters: $Data/Context/DataItem/AlertID$
- Startup folder for the command line: C:\Scripts

It doesn't seem to be passing the AlertID. I also have a Command Channel
where I'm using the "echo" command to write the variable
$Data/Context/DataItem/AlertID$ to a text file and it's not working either.
Any help would be greatly appreciated!!! Thank you all!
--
Thank you,
Steve Giordano

Marco Shaw [MVP]

unread,
Jan 4, 2010, 5:45:59 PM1/4/10
to
I've heard of potential differences with the syntax for variables. Are you
using OpsMgr RTW, SP1 or R2?

Marco

"Steve Giordano" <SteveG...@discussions.microsoft.com> wrote in message
news:6EC7F09E-E959-4509...@microsoft.com...

0 new messages