How to Display Monitors for a Management Pack

適用於: Operations Manager 2007

To display a list of outputs for a management pack's monitors and overrides by using the Command Shell, use the following procedure.

To display monitors for a management pack

  1. On your management server, click Start, type Operations Manager Shell, and then click Operations Manager Shell on the Start menu.

  2. In Operations Manager Shell, type the following command: get-monitor -managementPack name.mp | export-csv filename

For example, the following command retrieves data for the monitors that are associated with one of the core management packs:

get-monitor -managementPack System.Health.Library.mp | export-csv "C:\monitors.csv"

note附註
If you receive an error message indicating that access to the path is denied, modify the path “c:\monitors.csv” in the command to use a path to which the user account has access. For example, user accounts should have access to their profile path. From a command prompt, you can run the command echo %userprofile% to find out the physical path to the user profile (for example, C:\Users\ALyon). When you have the user profile path, use that instead of c:\ as shown in the example commands, for example, “c:\users\ALyon\monitors.csv”.

A .csv file is created. You can open the .csv file in Microsoft Excel. In Excel, you might be required to specify that the .csv file is a text file.

社群新增項目

顯示: