Get-SCPROMonitorState

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

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

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
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ComputerTier

Specifies a computer tier object.

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

-PROMonitor

Specifies a PRO monitor object.

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

-Service

Specifies a VMM service object.

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

-VM

Specifies a virtual machine object.

Type:VM
Position:Named
Default value:None
Required:True
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
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VMHostCluster

Specifies a VMM host cluster object.

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

-VMMServer

Specifies a VMM server object.

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

-VMMServerScope

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

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

Outputs

PROMonitorState

This cmdlet returns a PROMonitorState object.