PowerCLI Reference

Set-OMAlert

Synopsis

This cmdlet configures vRealize Operations Manager alerts.

Syntax

Set-OMAlert -TakeOwnership [-Alert] <OMAlert[]> [-Server <OMServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Set-OMAlert -ReleaseOwnership [-Alert] <OMAlert[]> [-Server <OMServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Set-OMAlert -SuspendMinutes <Int32> [-Alert] <OMAlert[]> [-Server <OMServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Set-OMAlert -Cancel [-Alert] <OMAlert[]> [-Server <OMServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-OMAlert

Detailed Description

This cmdlet configures vRealize Operations Manager alerts.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
AlertOMAlert[]Specifies the alert you want to configure.truetrue (ByValue)
CancelSwitchParameterCancels the alert and changes the alert status from active to inactive.truefalse
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falsefalse
InformationActionActionPreferencefalsefalse
InformationVariableStringfalsefalse
PipelineVariableStringfalsefalse
ReleaseOwnershipSwitchParameterRemoves alert ownership from the assigned user.truefalse
ServerOMServer[]Specifies the vRealize Operations Manager server from which you want to retrieve alerts. The value can be the connection object returned by the Connect-OMServer cmdlet or the object's name, which can be the IP or DNS address of the server machine.falsefalse
SuspendMinutesInt32Specifies the number of minutes for which the alert is suspended.truefalse
TakeOwnershipSwitchParameterAssigns the alert ownership to the currently connected user.truefalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

The modified OMAlert objects

Notes

Examples

-------------- Example 1 --------------

$alert = Get-OMAlert -Id 'ID'
Set-OMAlert -Alert $alert -Cancel

Cancels the $alert alert.

-------------- Example 2 --------------

Set-OMAlert -Alert 'alert_name' -Server 'server_name' -TakeOwnership

Takes ownership for all alerts, filtered by alert name and server.

-------------- Example 3 --------------

$alert = Get-OMAlert -Id 'ID'
Set-OMAlert -Alert $alert -SuspendMinutes 1

Suspends the $alert alert for one minute.


Copyright © VMware, Inc. All rights reserved.