Hi,
Anyone know what the parameter is for knowing where your slider bar is for DRS Automation Level, the below returns that it is set for FullyAutomated but I would like to know what recommendations it will apply, (2, 3, 4 stars...) or just where the slider bar is.
$cluster = get-cluster Main
$cluster.DRSAutomationLevel
Thanks,
Dan
This gives the DRS watermark rating
$clus = get-cluster <clustername> | get-view $clus.ConfigurationEx.DrsConfig.VmotionRate
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
This gives the DRS watermark rating
$clus = get-cluster <clustername> | get-view $clus.ConfigurationEx.DrsConfig.VmotionRate
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks once again LucD, how would you go about setting this from powercli,
I assume its starts with set-cluster, but not really sure how to get the parameters you get from a get-cluster when its in a variable.
Thanks,
Dan
Although you can use the Set-Cluster cmdlet to change the DRS Automation level (with the -DrsAutomationLevel parameter) you can't change the vmmotionRate number.
For that you will have to fall back on the SDK method called ReconfigureComputeResource.
$clus = get-cluster "clus1" | get-view $spec = New-Object VMware.Vim.ClusterConfigSpecEx $spec.drsConfig = New-Object VMware.Vim.ClusterDrsConfigInfo # 1 : aggressive # 5 : conservative $spec.drsConfig.vmotionRate = 5 $clus.ReconfigureComputeResource($spec, $true)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference