Get-SCPROMonitor
Gets a PRO monitor object from Operations Manager.
Syntax
PROTargetType (Default)
Get-SCPROMonitor
[-VMMServer <ServerConnection>]
[-PROTargetType <PROTargetType>]
[<CommonParameters>]
Name
Get-SCPROMonitor
-Name <String>
-ManagementPackName <String>
[-VMMServer <ServerConnection>]
[<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.
Parameters
-ManagementPackName
Specifies the name of a management pack. To get a specific PRO monitor, use this parameter with the monitor's name property.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Name
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Specifies the name of a Virtual Machine Manager (VMM) object.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Name
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PROTargetType
Specifies the PRO target type. The acceptable values for this parameter are:
- Cloud
- ComputerTier
- HostCluster
- ServiceInstance
- Unspecified
- VM
- VMHost
- VMMServer
Parameter properties
Type: | PROTargetType |
Default value: | None |
Accepted values: | VM, Unspecified, VMHost, HostCluster, VMMServer, ServiceInstance, ComputerTier, Cloud |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
PROTargetType
Position: | Named |
Mandatory: | False |
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 |
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
PROMonitor
This cmdlet returns a PROMonitor object.