Get-SCPROMonitorState
取得特定 VMM 物件上指定之 PRO 監視器的狀態。
Syntax
Get-SCPROMonitorState
[-VMMServer <ServerConnection>]
-VMHost <Host>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorState
[-VMMServer <ServerConnection>]
-Cloud <Cloud>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorState
[-VMMServer <ServerConnection>]
-VM <VM>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorState
[-VMMServer <ServerConnection>]
-VMHostCluster <HostCluster>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorState
[-VMMServer <ServerConnection>]
-Service <Service>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorState
[-VMMServer <ServerConnection>]
[-VMMServerScope]
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorState
[-VMMServer <ServerConnection>]
-ComputerTier <ComputerTier>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Description
Get-SCPROMonitorState Cmdlet 會取得特定 Virtual Machine Manager (VMM) 物件上所指定效能和資源優化 (PRO) 監視器的狀態。
範例
範例 1:取得特定主機的 PRO 監視器狀態
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
第一個命令會取得名為 VMHost01 的虛擬機器主機物件,並將物件儲存在$VMHost變數中。
第二個命令會取得具有指定名稱和管理元件名稱的 PRO 監視器物件,並將物件儲存在$PROMonitor變數中。
第三個命令會取得儲存在 VMHost01 $PROMonitor 中之 PRO 監視器物件的 PRO 監視狀態,並將狀態儲存在 $PROMonitorState 變數中。
最後一個命令會顯示儲存在 $PROMonitorState 的狀態資訊。
參數
-Cloud
指定私人雲端物件。
Type: | Cloud |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ComputerTier
指定電腦層物件。
Type: | ComputerTier |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROMonitor
指定 PRO 監視器物件。
Type: | PROMonitor |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Service
指定 VMM 服務物件。
Type: | Service |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VM
指定虛擬機器物件。
Type: | VM |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHost
指定虛擬機器主機物件。 VMM 支援 Hyper-V 主機、VMware ESX 主機和 Citrix XenServer 主機。
如需每種主機類型的詳細資訊,請參閱 Add-SCVMHost Cmdlet。
Type: | Host |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHostCluster
指定 VMM 主機叢集物件。
Type: | HostCluster |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定 VMM 伺服器物件。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServerScope
表示傳回的 PRO 資訊範圍限定于整個 VMM 伺服器。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸出
PROMonitorState
此 Cmdlet 會傳回 PROMonitorState 物件。