Get-SCPROMonitorState
Get-SCPROMonitorState
Gets the state of a specified PRO monitor on a specific VMM object.
構文
Parameter Set: VMHost
Get-SCPROMonitorState -VMHost <Host> [-PROMonitor <PROMonitor> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: Cloud
Get-SCPROMonitorState -Cloud <Cloud> [-PROMonitor <PROMonitor> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: ComputerTier
Get-SCPROMonitorState -ComputerTier <ComputerTier> [-PROMonitor <PROMonitor> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: HostCluster
Get-SCPROMonitorState -VMHostCluster <HostCluster> [-PROMonitor <PROMonitor> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: Service
Get-SCPROMonitorState -Service <Service> [-PROMonitor <PROMonitor> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: VM
Get-SCPROMonitorState -VM <VM> [-PROMonitor <PROMonitor> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: VMMServer
Get-SCPROMonitorState -VMMServerScope [-PROMonitor <PROMonitor> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
詳細説明
The Get-SCPROMonitorState cmdlet gets the state of a specified Performance and Resource Optimization (PRO) monitor on a specific Virtual Machine Manager (VMM) object.
パラメーター
-Cloud<Cloud>
Specifies a private cloud object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ComputerTier<ComputerTier>
Specifies a computer tier object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PROMonitor<PROMonitor>
Specifies a PRO monitor object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-Service<Service>
Specifies a VMM service object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VM<VM>
Specifies a virtual machine object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VMHost<Host>
Specifies a virtual machine host object. VMM supports Hyper-V hosts, VMware ESX hosts, and Citrix XenServer hosts.
For more information about each type of host, type Get-Help Add-SCVMHost -detailed
. See the examples for a specific cmdlet to determine how that cmdlet uses this parameter.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VMHostCluster<HostCluster>
Specifies a VMM host cluster object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VMMServer<ServerConnection>
Specifies a VMM server object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-VMMServerScope
Indicates that the PRO information returned is scoped to the entire VMM server.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- PROMonitorState
例
Example 1: Get the state of a PRO monitor for a specific host
The first command gets the virtual machine host object named VMHost01, and then stores the object in the $VMHost variable.
The second command gets the PRO monitor object with the specified name and management pack name, and then stores the object in the $PROMonitor variable.
The third command gets the PRO monitor state for the PRO monitor object stored in $PROMonitor for VMHost01, and then stores the state in the $PROMonitorState variable.
The last command displays the state information stored in $PROMonitorState.
PS C:\> $VMHost = Get-VMHost "VMHost01.Contoso.com"
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:\> $PROMonitorState = Get-SCPROMonitorState -PROMonitor $PROMonitor -VMHost $VMHost
PS C:\> $PROMonitorState