VMware Cloud Community
iefke
Enthusiast
Enthusiast
Jump to solution

List VMs and snapshot that needs consolidation?

In the vSphere 5 client it is possible to view all the VM that needs consolidation. In PowerCLI i can't find this option.

Is it possible to list all the VM that have snapshot that needs Consolidation?

Blog: http://www.ivobeerens.nl
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

It's not (yet) available in the regular cmdlets, but it's quite straightforward to display this as a calculated property.

Get-VM | Select Name,
@{N="Needs Consolidation";E={$_.ExtensionData.Runtime.consolidationNeeded}}

And a perhaps useful variation, only list the VMs that need snapshot consolidation.

Get-VM | where {$_.ExtensionData.Runtime.consolidationNeeded} | Select Name 


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

View solution in original post

0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

It's not (yet) available in the regular cmdlets, but it's quite straightforward to display this as a calculated property.

Get-VM | Select Name,
@{N="Needs Consolidation";E={$_.ExtensionData.Runtime.consolidationNeeded}}

And a perhaps useful variation, only list the VMs that need snapshot consolidation.

Get-VM | where {$_.ExtensionData.Runtime.consolidationNeeded} | Select Name 


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

0 Kudos
iefke
Enthusiast
Enthusiast
Jump to solution

Thanks Luc, it's quite straightforward. Didn't see the property because i used an old (4.1) PowerCLI version 😞

Blog: http://www.ivobeerens.nl
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Indeed, it's a vSphere 5 feature, see Cormac's post called vSphere 5.0 Storage Features Part 9 - Snapshot Consolidate for further details.


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

0 Kudos