PowerCLI Reference

Get-OMRecommendation

Synopsis

This cmdlet retrieves recommendations from the specified vRealize Operations Manager server.

Syntax

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

Get-OMRecommendation -Alert <OMAlert[]> [-Server <OMServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [<CommonParameters>]

Get-OMRecommendation -AlertDefinition <OMAlertDefinition[]> [-Server <OMServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [<CommonParameters>]

Related Commands

Online version

Detailed Description

This cmdlet retrieves recommendations from the specified vRealize Operations Manager server.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
AlertOMAlert[]Filters the recommendations by alert.truetrue (ByValue)
AlertDefinitionOMAlertDefinition[]Filters the recommendations by alert definition.truetrue (ByValue)
IdString[]Filters the recommendations by ID.falsefalse
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 OMRecommendation objects

Notes

Examples

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

Get-OMRecommendation

Lists all available recommendations.

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

$alert = Get-OMAlert -Id <ID>
Get-OMRecommendation -Alert $alert

Retrieves all recommendations for a given alert.


Copyright © VMware, Inc. All rights reserved.