I had a requirement to have some sort of tool to easily enable and disable subscriptions and also close alerts in one shot. Of course my first thought was to use PowerShell, but soon I figured out that there is a lack of functionality.
If you try to disable and enable a subscription you will be asked if you want to send the alerts which were generated while the subscription was disabled or just send the new alerts. Using PowerShell it will be not possible to configure just sending the new alerts. Well, yes if you are going to use .NET it will be possible. Tim McFadden has blogged about this problem and is also providing a tool for it. I needed a more granular approach where you can enable and disable just single / multiple / all subscriptions and just sending the new alerts, without getting the old alerts and basically ending with an alert storm.
In addition I needed a way to close all alerts in one shot from any kind of resolution state. This is why I added a second functionality, where you can select one or more resolution states and then set them to the Closed resolution state. When you close the alerts created by monitors, make sure you have some sort of “reset monitor” tool in the background which automatically resets the monitors to healthy e.g. Orchestrator in this blog post here.
Finally I ended up with this simple GUI Tool called MASTool (Modify Alert and Subscription Tool)…
It is pretty much self-explaining…
- List and select all subscriptions
- Enable / disable selected subscriptions
- List all resolution states
- Select all states
- Close all alerts with the selected resolution states
In the lower list view you will find listed all closed alerts just as an overview.
When you run the tool for the first time, make sure you set the SCOM server under File/Set Server…
The tool requires .NET 4.5 and the SCOM SDK binaries either in the same directory as the MASTool.exe or installed in the GAC:
I know there are much sexier GUI’s, but hey it get’s the job done and is free. If you like it you can find it on TechNet Gallery here.