Get-SCPROMonitorState

Gets the state of a specified PRO monitor on a specific VMM object.

Syntax

Get-SCPROMonitorState -Cloud <Cloud> [-PROMonitor <PROMonitor>] [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCPROMonitorState -ComputerTier <ComputerTier> [-PROMonitor <PROMonitor>] [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCPROMonitorState [-PROMonitor <PROMonitor>] -Service <Service> [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCPROMonitorState [-PROMonitor <PROMonitor>] -VM <VM> [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCPROMonitorState [-PROMonitor <PROMonitor>] -VMHost <Host> [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCPROMonitorState [-PROMonitor <PROMonitor>] -VMHostCluster <HostCluster> [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCPROMonitorState [-PROMonitor <PROMonitor>] [-VMMServer <ServerConnection>] [-VMMServerScope]
 [<CommonParameters>]

Description

The Get-SCPROMonitorState cmdlet gets the state of a specified Performance and Resource Optimization (PRO) monitor on a specific Virtual Machine Manager (VMM) object.

Examples

Example 1: Get the state of a PRO monitor for a specific host

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

The first command gets the virtual machine host object named VMHost01 and stores the object in the $VMHost variable.

The second command gets the PRO monitor object with the specified name and management pack name and 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 stores the state in the $PROMonitorState variable.

The last command displays the state information stored in $PROMonitorState.

Parameters

-Cloud

Specifies a private cloud object.

Type:Cloud
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ComputerTier

Specifies a computer tier object.

Type:ComputerTier
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROMonitor

Specifies a PRO monitor object.

Type:PROMonitor
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Service

Specifies a VMM service object.

Type:Service
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VM

Specifies a virtual machine object.

Type:VM
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMHost

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, see the Add-SCVMHost cmdlet.

Type:Host
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMHostCluster

Specifies a VMM host cluster object.

Type:HostCluster
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMMServerScope

Indicates that the PRO information returned is scoped to the entire VMM server.

Type:SwitchParameter
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

PROMonitorState

This cmdlet returns a **PROMonitorState** object.