Ask a questionAsk a question
 

AnswerNotification Subscription

  • Friday, November 20, 2009 11:13 PMÅvinash Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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

  • Saturday, November 21, 2009 8:50 AM.Anders BengtssonMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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
  • Saturday, November 21, 2009 7:55 PMGraham DaviesMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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/

All Replies

  • Saturday, November 21, 2009 8:50 AM.Anders BengtssonMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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
  • Saturday, November 21, 2009 7:55 PMGraham DaviesMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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/
  • Thursday, November 26, 2009 1:25 AMÅvinash Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Thanks a lot for the information and the snippet :)

    Thanks,
    Avinash