vSphere PowerCLI Reference

Get-DrsRecommendation

Synopsis

Retrieves the available DRS recommendations from the provided clusters.

Syntax

Get-DrsRecommendation [[-Cluster] <Cluster[]>] [-Refresh] [-Priority <Int32[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
Apply-DrsRecommendation

Detailed Description

Retrieves the available DRS recommendations from the provided clusters.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ClusterCluster[]Specify the clusters whose DRS recommendations you want to retrieve.falsetrue (ByValue)
PriorityInt32[]Specify the priority of the DRS recommendations you want to retrieve. The valid values range from 1 to 5.falsefalse
RefreshSwitchParameterIndicate that you want the cmdlet to refresh the information about the DRS recommendations before retrieving it.falsefalse
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse

Return Type

DrsRecommendation

Notes

Examples

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

Get-Cluster Cluster | Get-DrsRecommendation -Priority 4,5

Retrieves the DRS recommendations with priorities 4 and 5 from the Cluster cluster.

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

Get-DrsRecommendation -Cluster Cluster -Refresh

Refreshes and retrieves information about the DRS recommendations from the Cluster cluster.


Copyright © 1998 - 2012 VMware, Inc. All rights reserved.