powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-DrsRecommendation



NAME
Get-DrsRecommendation

SYNOPSIS
Retrieves the available DRS recommendations from the provided clusters.

SYNTAX
Get-DrsRecommendation [[-Cluster] ] [-Refresh] [-Priority ] [-Server ] [ meters>]


DESCRIPTION
Retrieves the available DRS recommendations from the provided clusters.


PARAMETERS
-Cluster
Specify the clusters whose DRS recommendations you want to retrieve.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Refresh
Indicate that you want the cmdlet to refresh the information about the DRS recommendations before retrieving it
.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Priority
Specify the priority of the DRS recommendations you want to retrieve. The valid values range from 1 to 5.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
DrsRecommendation


NOTES


This functionality is supported only on servers that are ESX 3.5 and vCenter 2.5, and higher.

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

C:\PS>Get-Cluster Cluster | Get-DrsRecommendation -Priority 4,5


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





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

C:\PS>Get-DrsRecommendation -Cluster Cluster -Refresh


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






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-DrsRecommendation.html
Apply-DrsRecommendation