VMware Cloud Community
sureshadmin2011
Enthusiast
Enthusiast
Jump to solution

retrieve DRS standard deviation value

Hi,

How to retrieve the current host standard deviation value and the status(loadbalanced for example) from the cluster using powercli?

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try something like this

Get-Cluster |

Select Name,

    @{N='Current StdDev';E={$_.ExtensionData.Summary.CurrentBalance/1000}},

    @{N='Load';E={

        if($_.ExtensionData.Summary.CurrentBalance -lt $_.ExtensionData.Summary.TargetBalance){

            'Balanced'

        }

        else{

            'Unbalanced'

        }

    }}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Try something like this

Get-Cluster |

Select Name,

    @{N='Current StdDev';E={$_.ExtensionData.Summary.CurrentBalance/1000}},

    @{N='Load';E={

        if($_.ExtensionData.Summary.CurrentBalance -lt $_.ExtensionData.Summary.TargetBalance){

            'Balanced'

        }

        else{

            'Unbalanced'

        }

    }}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
sureshadmin2011
Enthusiast
Enthusiast
Jump to solution

Thank Luc, works good.

Actually i went in to extensiondata before posting this question, i had a look into configuration, configurationex and had a inside look into drsconfig, drsvmconfig but ignored summary section, never imagined it would be there Smiley Happy

Reply
0 Kudos