VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

sum of memory size of vms_powercli

Hi Luc,

could you suggest how to sum configured memory size of all vms in cluster.

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try like this

$clusterName = 'MyCluster'

Get-Cluster -Name $clusterName |

Get-VM |

Measure-Object -Property MemoryGb -Sum |

Select -ExpandProperty Sum


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

View solution in original post

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

Try like this

$clusterName = 'MyCluster'

Get-Cluster -Name $clusterName |

Get-VM |

Measure-Object -Property MemoryGb -Sum |

Select -ExpandProperty Sum


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

Reply
0 Kudos