Get-SCPROMonitorConfiguration
获取指定范围的 PRO 监视器配置对象。
语法
Get-SCPROMonitorConfiguration
[-VMMServer <ServerConnection>]
-VMHostGroup <HostGroup>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorConfiguration
[-VMMServer <ServerConnection>]
-Cloud <Cloud>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorConfiguration
[-VMMServer <ServerConnection>]
-VMHostCluster <HostCluster>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorConfiguration
[-VMMServer <ServerConnection>]
-Service <Service>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorConfiguration
[-VMMServer <ServerConnection>]
[-VMMServerScope]
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorConfiguration
[-VMMServer <ServerConnection>]
-VMHost <Host>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorConfiguration
[-VMMServer <ServerConnection>]
-VM <VM>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
Get-SCPROMonitorConfiguration
[-VMMServer <ServerConnection>]
-ComputerTier <ComputerTier>
[-PROMonitor <PROMonitor>]
[<CommonParameters>]
说明
Get-SCPROMonitorConfiguration cmdlet 获取一个或多个性能和资源优化 (PRO) 监视指定范围的配置对象。
示例
示例 1:获取指定主机组上的所有 PRO 监视器配置实例对象
PS C:\> $HostGroup = Get-SCVMHostGroup -Name "Production"
PS C:\> $PROMonitorConfig = Get-SCPROMonitorConfiguration -VMHostGroup $HostGroup
PS C:\> $PROMonitorConfig
第一个命令获取名为 Production 的主机组对象,并将对象存储在$HostGroup变量中。
第二个命令获取存储在$HostGroup (生产) 中的主机组上的 PRO 监视器配置对象,并将对象存储在$PROMonitorConfig变量中。
最后一个命令显示有关存储在用户$PROMonitorConfig中的 PRO 监视器配置对象的信息。
参数
-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: | False |
Accept wildcard characters: | False |
-Service
指定 Virtual Machine Manager (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 |
-VMHostGroup
指定一个虚拟主机组对象。
Type: | HostGroup |
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 |
输出
PROMonitorConfiguration
此 cmdlet 返回 PROMonitorConfiguration 对象。