VMware Cloud Community
vmk2014
Expert
Expert

Deleting powered-off VM's from RV tools report to reclaim space but placeholder VM's also showing in report

Hi All,

We want to reclaim the san space by deleting the powered-off VM's from on-prem. Report we have extracted from RV tools, but its quite confusing that it pull the place holder VM's in the rv tools report as powered-off VM's. How to ignore the placeholder VM's or filter it while extracting only genuine powered-off VM's.

thanks

V

Tags (1)
4 Replies
LucD
Leadership
Leadership

What do you define as a 'place holder' VM?


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

0 Kudos
vmk2014
Expert
Expert

These are not powered off servers, they are SRM (Site-Recovery) stubs for our DR. How  to exclude these VM's from powered-

pastedImage_0.png

Thanks

V

0 Kudos
LucD
Leadership
Leadership

That looks like a RVTools issue then?


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

MattHumphreys
Contributor
Contributor

could this not do the job?

Get-VM | where {($_.ExtensionData.Config.ManagedBy.Type -ne "placeholderVm" -and $_PowerState -eq "PoweredOff")}

0 Kudos