Partilhar via


Get-SCPROMonitorState

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

Syntax

VMHost (Default)

Get-SCPROMonitorState
    -VMHost <Host>
    [-VMMServer <ServerConnection>]
    [-PROMonitor <PROMonitor>]
    [<CommonParameters>]

Cloud

Get-SCPROMonitorState
    -Cloud <Cloud>
    [-VMMServer <ServerConnection>]
    [-PROMonitor <PROMonitor>]
    [<CommonParameters>]

VM

Get-SCPROMonitorState
    -VM <VM>
    [-VMMServer <ServerConnection>]
    [-PROMonitor <PROMonitor>]
    [<CommonParameters>]

HostCluster

Get-SCPROMonitorState
    -VMHostCluster <HostCluster>
    [-VMMServer <ServerConnection>]
    [-PROMonitor <PROMonitor>]
    [<CommonParameters>]

Service

Get-SCPROMonitorState
    -Service <Service>
    [-VMMServer <ServerConnection>]
    [-PROMonitor <PROMonitor>]
    [<CommonParameters>]

VMMServer

Get-SCPROMonitorState
    [-VMMServer <ServerConnection>]
    [-VMMServerScope]
    [-PROMonitor <PROMonitor>]
    [<CommonParameters>]

ComputerTier

Get-SCPROMonitorState
    -ComputerTier <ComputerTier>
    [-VMMServer <ServerConnection>]
    [-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.

Parameter properties

Type:Cloud
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Cloud
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ComputerTier

Specifies a computer tier object.

Parameter properties

Type:ComputerTier
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ComputerTier
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PROMonitor

Specifies a PRO monitor object.

Parameter properties

Type:PROMonitor
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Service

Specifies a VMM service object.

Parameter properties

Type:Service
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Service
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VM

Specifies a virtual machine object.

Parameter properties

Type:VM
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

VM
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:Host
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

VMHost
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMHostCluster

Specifies a VMM host cluster object.

Parameter properties

Type:HostCluster
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

HostCluster
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServerScope

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

VMMServer
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

PROMonitorState

This cmdlet returns a PROMonitorState object.