Resources for IT Professionals >
Forums Home
>
System Center Operations Manager Forums
>
Management Packs
>
Notification Subscription
Notification Subscription
Is there any query to get the list of all Management packs which are having Notification Subscriptions enabled, from OperationsManager DB / DW.
If so, requesting for your help on this.
Answers
- Hi,
You dont enable notification based on management packs, you could do, but normally you mix alerts from many management packs into one subscription. You can with command shell and SDK get notification subscribers and subscriptions. I think there is a example of that here somewhere, but I cant find it now. Will look more later.
Anders Bengtsson | Microsoft MVP - Operations Manager | http://www.contoso.se- Proposed As Answer byMarnix WolfMVP, ModeratorSaturday, November 21, 2009 1:52 PM
- Marked As Answer byCory DelamarterMSFT, ModeratorWednesday, February 03, 2010 3:54 PM
- Hi
Mike Eisenstein has posted this powershell snippet in the past to how to list the Subscriptions certain Recipients are members of and you can manipulate this to get other subscription information.
Get-NotificationSubscription | where {$_.ToRecipients -ccontains (Get-NotificationRecipient | where {$_.Name -eq "<SubscriberName>"})}
But as Anders said, subscriptions aren't targetted at Management Packs so it is not possible to provide exactly what you are looking for.
Cheers
Graham
View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/- Marked As Answer byCory DelamarterMSFT, ModeratorWednesday, February 03, 2010 3:54 PM
All Replies
- Hi,
You dont enable notification based on management packs, you could do, but normally you mix alerts from many management packs into one subscription. You can with command shell and SDK get notification subscribers and subscriptions. I think there is a example of that here somewhere, but I cant find it now. Will look more later.
Anders Bengtsson | Microsoft MVP - Operations Manager | http://www.contoso.se- Proposed As Answer byMarnix WolfMVP, ModeratorSaturday, November 21, 2009 1:52 PM
- Marked As Answer byCory DelamarterMSFT, ModeratorWednesday, February 03, 2010 3:54 PM
- Hi
Mike Eisenstein has posted this powershell snippet in the past to how to list the Subscriptions certain Recipients are members of and you can manipulate this to get other subscription information.
Get-NotificationSubscription | where {$_.ToRecipients -ccontains (Get-NotificationRecipient | where {$_.Name -eq "<SubscriberName>"})}
But as Anders said, subscriptions aren't targetted at Management Packs so it is not possible to provide exactly what you are looking for.
Cheers
Graham
View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/- Marked As Answer byCory DelamarterMSFT, ModeratorWednesday, February 03, 2010 3:54 PM
Thanks a lot for the information and the snippet :)
Thanks,
Avinash