Using alerts

Alerts are alarms that warn you about situations that need attention. The Get-OMAlert cmdlet retrieves alerts from the specified vRealize Operations Manager server. The syntax of the Get-OMAlert cmdlet is given here. The first parameter set is the default:

Get-OMAlert [-Status <OMAlertStatus[]>] [-Impact <OMImpact[]>]
    [-Criticality <OMCriticality[]>] [-Resource <OMResource[]>]
    [-Subtype <OMAlertSubtype[]>] [-AssignedUser <OMUser[]>]
    [-Type <OMAlertType[]>] [-ControlState <OMAlertControlState[]>]
    [-AlertDefinition <OMAlertDefinition[]>] [[-Name] <String[]>]
    [-Server <OMServer[]>] [<CommonParameters>]

The second parameter set is required to retrieve alerts by ID:

Get-OMAlert -Id <String[]> [-Server <OMServer[]>] [<CommonParameters>] ...

Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.