Get Alerts for a specific host

This handy powershell one liner will retrieve all SCOM alerts for a specific host and output them to a CSV file:-

get-alert -criteria ‘NetbiosComputerName = ”ComputerHostname”’| export-csv c:\alert.csv

NOTE:-It won’t show you any alerts that have been groomed out of the OpsDb.

ALTERNATIVELY:-There is a canned report in System Center Core Monitoring Reports called Data Volume By Management Pack, which should tell you the number of alerts, events, discovery events, state changes, and/or performance data collected for a certain management pack or management packs over a certain period of time.

This entry was posted in Powershell for SCOM, SCOM Agents and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s