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.
6 Replies to “SCOM 2012 – MAS Tool V 1.0”
Thx for the tool !!
After connecting to the server (2012R2), the Subscriptions are listed fine.
But under the Close Resolution States, the numbers are exactly the same as on your screenshot above. How do I get this to reflect the actual states?
If you create new resolution states in the SCOM console Administration/Alerts you should see them in the tool. I have^n’t had any issue. The states in the screenshot are the Default SCOM states.
Working now….I was too impatient on my Virtual Box.
Thx for the great tool Stef!!
Does this tool work for SCOM 2016 ?
I haven’t tested it but it should work.
As Technet Gallery was retired, you can still find the download in the Way Back Machine: