Question about SCOM classes added to the SCOM Subscription and Unique Identifier for SCOM alerts

shankar431 476 Reputation points
2022-09-14T11:43:33.57+00:00

Hi All,

Question1 :
Is it possible to get/copy the classes added under a SCOM subscription with out getting them manually.
Id any powershell script available to get the same please help on it.
Below Screen shot is for reference for better understanding for my situation.
240910-image.png

Question2 :
Is there any Unique identifier for all the newly generated SCOM Alerts, If so where can we find it.
Screen shot with an example will be much appreaciated.

If this is not possible to identify from the SCOM console Alert properties, is it possinle to get the details of Alert ID/ Unique Identifier through Poershell command.

System Center Operations Manager
System Center Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,605 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SChalakov 10,576 Reputation points MVP Volunteer Moderator
    2022-09-14T12:35:12.307+00:00

    Hi @shankar431 ,

    to Question 1: "Is it possible to get/copy the classes added under a SCOM subscription with out getting them manually."

    Yes, there is a script, written by @Sameer Mhaisekar , which is found here:

    Export All SCOM Subscriptions into a Text File
    https://anaops.wordpress.com/2019/03/04/export-all-scom-subscriptions-into-a-text-file/

    I have tested this one and it works like a charm. The resulting file can be optimized a bit, but you get all the needed information in regards to each individual subscription, including the scoped classes.

    This is the GitGub repository of Sam, where you can download the script:

    https://github.com/Sameer-Mhaisekar/scripts/blob/main/export-scomsubscriptions.txt

    There is one more script, which does this, but I haven't tested this:

    Get-SCOMNotificationSubscriptionDetails.ps1
    https://github.com/blakedrumm/SCOM-Scripts-and-SQL/blob/master/Powershell/Get-SCOMNotificationSubscriptionDetails.ps1

    My advice: try them botth out and see which one presents yoou the detaails in a better fromat.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
    Regards
    Stoyan Chalakov

    0 comments No comments

  2. SChalakov 10,576 Reputation points MVP Volunteer Moderator
    2022-09-14T12:44:14.683+00:00

    Hi @shankar431 ,

    to Question 2: "If this is not possible to identify from the SCOM console Alert properties, is it possinle to get the details of Alert ID/ Unique Identifier through Poershell command."

    Yes, each Alert has iits nique Id and you can easily get it like that:

    get-scomalert | where {$_.ResolutionState -eq 0} | select Name,Id  
    

    Thisd will get you alll New (ResolutionState = 0) Alerts and present you the output in the form Name, Id
    Of course you can get all the properties you need if you just go with:

     get-scomalert | where {$_.ResolutionState -eq 0}  
    

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
    Regards
    Stoyan Chalakov

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.