SCOM Alert id with Alert name and time when generated

Ravi Bhushan 126 Reputation points
2020-12-08T15:38:45.56+00:00

Hi,

Need help with the powershell. I am able to retrieve the Alert name but please help me with more description like its alert id and the time when the alert generated in the same script.

Regrads,
Ravi

Operations Manager
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,446 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,726 Reputation points
    2020-12-08T16:58:01.023+00:00

    Hi @Ravi Bhushan ,

    The following script should get what you're looking for:

    Get-SCOMAlert | Format-Table Name, Description, Id, TimeRaised

    You may also want to export it to a CSV to make it easier to read:

    Get-SCOMAlert | select Name, Description, Id, TimeRaised | Export-Csv -Path C:\Temp\SCOMAlerts.csv -NoTypeInformation

    ----------

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

    Best regards,
    Leon

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful