Updates the properties of a PRO monitor configuration.
Description
The Set-SCPROMonitorConfiguration cmdlet updates the properties of one or more Performance and Resource Optimization (PRO) monitor configuration objects. Properties that can be set include whether monitoring and automatic remediation are enabled.
For more information about Set-SCPROMonitoringConfiguration, type: "Get-Help Set-SCPROMonitoring -online".
Parameters
AutomaticMode
Required?
true
Accept Pipeline Input?
false
Position?
named
Indicates that dynamic optimization automatically migrates virtual machines in order to load balance.
MonitoringEnabled
Required?
true
Accept Pipeline Input?
false
Position?
named
Indicates that monitoring is enabled for a PRO monitor.
PROMonitorConfiguration
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a PRO monitor configuration object.
JobVariable
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies that job progress is tracked and stored in the variable named by this parameter.
PROTipID
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
RunAsynchronously
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Inherit
Required?
true
Accept Pipeline Input?
false
Position?
named
Indicates whether settings are inherited from the parent host group.
PROMonitorConfiguration
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a PRO monitor configuration object.
JobVariable
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies that job progress is tracked and stored in the variable named by this parameter.
PROTipID
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
RunAsynchronously
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Examples
1: Enable monitoring and automatic
remediation for a specific PRO monitor.
The first command gets the PRO monitor object with the specified name and management pack name and stores the object in the $PROMonitor variable.
The second command gets the host object named VMHost01 and stores the object in the $VMHost variable.
The third command gets the PRO monitor configuration object for the PRO monitor stored in $PROMinotir on VMHost01 and stores the object in the $PROMonitorConfig variable.
The last command enables monitoring and automatic remediation for the PRO monitor configuration stored in $PROMonitorConfig.
2: Disable automatic remediation for
all PRO monitors on a specified host.
The first command gets the host object named VMHost01 and stores the object in the $VMHost variable.
The second command gets all PRO monitor configuration objects on VMHost01 and stores the objects in the $PROMonitorConfigs object array.
The last command uses the ForEach statement to iterate through each PRO monitor configuration object stored in $PROMonitorConfigs and disables automatic remediation for each monitor configuration.