PowerCLI Reference

Get-OMAlertSubType

Synopsis

This cmdlet retrieves alert subtypes from the specified vRealize Operations Manager server.

Syntax

Get-OMAlertSubType [[-Name] <String[]>] [-AlertType <OMAlertType[]>] [-Server <OMServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [<CommonParameters>]

Get-OMAlertSubType -Id <String[]> [-Server <OMServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [<CommonParameters>]

Related Commands

Online version

Detailed Description

This cmdlet retrieves alert subtypes from the specified vRealize Operations Manager server. The alert subtype helps you categorize the alerts by areas specific to vRealize Operations Manager, so that you can assign certain types of alerts to specific system administrators.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Filters the alert subtypes by name.falsefalse
AlertTypeOMAlertType[]Filters the alert subtypes by the type of the alert.falsefalse
IdString[]Filters the alert subtypes by ID.truefalse
InformationActionActionPreferencefalsefalse
InformationVariableStringfalsefalse
PipelineVariableStringfalsefalse
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

Return Type

Zero or more OMAlertSubType objects

Notes

Examples

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

Get-OMAlertSubType

Lists all available alert subtypes.

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

Get-OMAlertSubType -Name 'Performance'

Retrieves all alert subtypes named 'Performance'.

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

$alertType = Get-OMAlertType -Name 'Network Alerts'
Get-OMAlertSubType -AlertType $alertType

Retrieves all applicable alert subtypes for an alert type.


Copyright © VMware, Inc. All rights reserved.