Source Code: SubscriptionTool Source Code.zip
Subscription Tool is a simple GUI based tool that lets you enable and disable all notification subscriptions. This tool is useful if you need to do some major maintenance such as patches, upgrading hardware, redoing AD integration roles, or fixing a major problem.
The real power of the tool is when you want to re-enable the subscriptions. The tool will automatically re-enable all subscriptions using “Send notifications for alerts Generated after the subscription is enabled”. This will save you from sending out huge alert storms your notification subscriptions.
If you are not familiar with this, disable and then re-enable a subscription inside the ops mgr console. You will notice when you re-enable the subscription you get the dialog box below.
You could enable and disable all subscriptions with powershell using
“Get-NotificationSubscription | Disable-NotificationSubscription”
But powershell uses the default “Send notifications for alerts Generated since the subscription is disabled (potentially causing an Alert Storm). There are no options inside powershell to do this unless you leverage the .net objects directly.
When I use this tool to re-enable subscriptions (after using tool to disable subscriptions) all previously disabled subscriptions (prior to using tool to disable subscriptions) are now enabled. If only this tool can ignore those subscriptions that are already disabled, that would be great. But very good tool otherwise. Thanks.
of course i’d like a way to schedule the enabling and disabling of an individual subscription, and of course i’d like to use the “alerts generated after the subscription is enabled” option. sigh.
You can already schedule subscriptions in the product. All you need to do is set the schedule. Does that not provide what you are looking for?
Nice tool Tim! Is the subscription tool supported for SCOM 2012?
I have tested this with 2012 SP1 seems to work fine.
You don’t have a way to use your subscription tool from the command-line ? I would like to automate the disable / enable function.
The SCOM Maintenance Mode scheduler has the ability to schedule subscriptions to be enabled and disabled.