How to export list of Monitors and Rules in a MP

In many cases it is useful to have exported list of all monitors and rules included in specific SCOM management pack.

Two cmdlets are available in the Operations Manager Shell for that purpose. They are: Get-Monitor and Get-Rule.

In order to export list of all monitors from specific management pack into CSV file, run the following command in Operations Manager Shell:

Get-Monitor -ManagementPack ManagementPackFileName.mp | Select DisplayName, Description, Name, Enabled, Target | Export-Csv

In order to export list of all rules from specific management pack into CSV file, run the following command in Operations Manager Shell:

Get-Rule -ManagementPack ManagementPackFileName.mp | Select DisplayName, Description, Name, Enabled, Target | Export-Csv

 In both cases replace the value of the ManagementPack parameter accordingly.

Advertisements
This entry was posted in Management Packs, Monitors and Rules and tagged , , , . Bookmark the permalink.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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