Get-SCPROMonitorState
Obtiene el estado de un monitor PRO especificado en un objeto VMM específico.
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
El cmdlet Get-SCPROMonitorState obtiene el estado de un monitor de Optimización de recursos y rendimiento (PRO) especificado en un objeto específico de Virtual Machine Manager (VMM).
Ejemplos
Ejemplo 1: Obtención del estado de un monitor PRO para un host específico
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
El primer comando obtiene el objeto host de máquina virtual denominado VMHost01 y almacena el objeto en la variable $VMHost.
El segundo comando obtiene el objeto de monitor PRO con el nombre y el nombre del módulo de administración especificados y almacena el objeto en la variable $PROMonitor.
El tercer comando obtiene el estado de monitor PRO para el objeto de monitor PRO almacenado en $PROMonitor para VMHost01 y almacena el estado en la variable $PROMonitorState.
El último comando muestra la información de estado almacenada en $PROMonitorState.
Parámetros
-Cloud
Especifica un objeto de nube privada.
Type: | Cloud |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ComputerTier
Especifica un objeto de nivel de equipo.
Type: | ComputerTier |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROMonitor
Especifica un objeto de monitor PRO.
Type: | PROMonitor |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Service
Especifica un objeto de servicio VMM.
Type: | Service |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VM
Especifica un objeto de máquina virtual.
Type: | VM |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHost
Especifica un objeto host de máquina virtual. VMM admite hosts de Hyper-V, hosts de VMware ESX y hosts de Citrix XenServer.
Para obtener más información sobre cada tipo de host, consulte el cmdlet Add-SCVMHost .
Type: | Host |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHostCluster
Especifica un objeto de clúster de hosts de VMM.
Type: | HostCluster |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
Especifica un objeto de servidor VMM.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServerScope
Indica que la información pro devuelta tiene como ámbito todo el servidor VMM.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Salidas
PROMonitorState
Este cmdlet devuelve un objeto PROMonitorState .