VMware Cloud Community
a2alpha
Expert
Expert
Jump to solution

find slider bar setting in DRS fully automated mode on cluster

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

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
a2alpha
Expert
Expert
Jump to solution

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

0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos