VMware Cloud Community
tomtom901
Commander
Commander

Cluster statistics via PowerCLI

Hi all,

For a script I am building, I'm looking to get cluster statistics (CPU and memory resources) via PowerCLI. Specifically these resources:

Screen Shot 2015-06-20 at 10.01.34.png

It needs to implemented in the script like this:

$Targets = @("Test Cluster")

foreach($clus in ($Targets))

{

  $TotRAM = 192

  $TotCPU = 35

The variables $TotRAM and $TotCPU need to be dynamically filled. How can this be done?

Thanks,

Tom

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Not sure what you mean exactly.

Do you want to retrieve these values from all the clusters ?

What is the purpose of these variables you set in the example ?


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

Reply
0 Kudos