Get-SCPROMonitor

Gets a PRO monitor object from Operations Manager.

Syntax

Get-SCPROMonitor
   [-VMMServer <ServerConnection>]
   [-PROTargetType <PROTargetType>]
   [<CommonParameters>]
Get-SCPROMonitor
   [-VMMServer <ServerConnection>]
   -Name <String>
   -ManagementPackName <String>
   [<CommonParameters>]

Description

The Get-SCPROMonitor cmdlet gets one or more Performance and Resource Optimization (PRO) monitors from Operations Manager.

Examples

Example 1: Get all of the PRO monitors from Operations Manager

PS C:\> Get-SCPROMonitor

This command gets all PRO monitors from Operations Manager and displays details about each monitor.

Example 2: Get a specific PRO monitor by its name

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:\> $PROMonitor

The first command gets the PRO monitor object witht he specified name and management pack name, and stores the object in the $PROMonitor variable.

The second command displays information about the monitor object stored in $PROMonitor.

Example 3: Get all PRO monitors for a specific target type

PS C:\> Get-SCPROMonitor -PROTargetType VMHost

This command gets all PRO monitors that have the target type of VMHost, and displays information about each monitor.

Required Parameters

-ManagementPackName

Specifies the name of a management pack. To get a specific PRO monitor, use this parameter with the monitor's name property.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a Virtual Machine Manager (VMM) object.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-PROTargetType

Specifies the PRO target type. The acceptable values for this parameter are:

  • Cloud
  • ComputerTier
  • HostCluster
  • ServiceInstance
  • Unspecified
  • VM
  • VMHost
  • VMMServer
Type:PROTargetType
Parameter Sets:VM, Unspecified, VMHost, HostCluster, VMMServer, ServiceInstance, ComputerTier, Cloud
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

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

Outputs

PROMonitor

This cmdlet returns a PROMonitor object.