Get-SCPROMonitor
Get-SCPROMonitor
Gets a PRO monitor object from Operations Manager.
構文
Parameter Set: PROTargetType
Get-SCPROMonitor [-PROTargetType <PROTargetType]> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: Name
Get-SCPROMonitor -ManagementPackName <String> -Name <String> [-VMMServer <ServerConnection> ] [ <CommonParameters>]
詳細説明
The Get-SCPROMonitor cmdlet gets one or more Performance and Resource Optimization (PRO) monitors from Operations Manager.
パラメーター
-ManagementPackName<String>
Specifies the name of a management pack. To get a specific PRO monitor, use this parameter with the monitor's name property.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the name of a VMM object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PROTargetType<PROTargetType]>
Specifies the PRO target type. Valid values are:
-- Cloud
-- ComputerTier
-- HostCluster
-- ServiceInstance
-- Unspecified
-- VM
-- VMHost
-- VMMServer
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VMMServer<ServerConnection>
Specifies a VMM server object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- PROMonitor
例
Example 1: Get all of the PRO monitors from Operations Manager
This command gets all PRO monitors from Operations Manager and displays details about each monitor.
PS C:\> Get-SCPROMonitor
Example 2: Get a specific PRO monitor by its name
The first command gets the PRO monitor object with the specified name and management pack name, and then stores the object in the $PROMonitor variable.
The second command displays information about the monitor object stored in $PROMonitor.
PS C:\> $PROMonitor = Get-SCPROMonitor -Name "System Center Virtual Machine Manager Maximum Dynamic Memory Monitor" -ManagementPackName "System Center Virtual Machine Manager PRO V2 HyperV Host Performance"
PS C:\> $PROMonitor
Example 3: Get all PRO monitors for a specific target type
This command gets all PRO monitors that have the target type of VMHost, and displays information about each monitor.
PS C:\> Get-SCPROMonitor -PROTargetType VMHost