Get-SCPROMonitorState
获取特定 VMM 对象上指定 PRO 监视器的状态。
语法
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>]
说明
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 monitor 对象,并将对象存储在$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 对象。