Retrieving recommendations
The Get-OMRecommendation
cmdlet retrieves recommendations from the specified vRealize Operations Manager server. The syntax of the Get-OMRecommendation
cmdlet is as follows:
The first parameter set is required to retrieve recommendations by ID:
Get-OMRecommendation [-Id <String[]>] [-Server <OMServer[]>]
[<CommonParameters>]
The second parameter set is required to retrieve recommendations by alert:
Get-OMRecommendation -Alert <OMAlert[]> [-Server <OMServer[]>]
[<CommonParameters>]
The third parameter set is required to retrieve recommendations by alert definition:
Get-OMRecommendation -AlertDefinition <OMAlertDefinition[]>
[-Server <OMServer[]>] [<CommonParameters>]
The Get-OMRecommendation
cmdlet has no required parameters.
If you use the Get-OMRecommendation
cmdlet without parameters, it retrieves all of the recommendation definitions. The following example retrieves the recommendations, selects...