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?
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
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
Thanks Luc, it's quite straightforward. Didn't see the property because i used an old (4.1) PowerCLI version 😞
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