is it possible to create a view/report that lists all VMs running on delta disks?
thanks
james
Hi,
check the following post.
vROPS Report Snapshots Older than X
Frank
Hi
To get a list of all VM Snapshots for VMs managed by vCenter you can type the following command:
get-vm | get-snapshot | format-list
I believe this question was not about how to use PowerCLI to do that rather than creating a report in vROps doing that for you!
Hi ,
Pls check if this help to your query.
To list all delta disk files stored across the datastores:
Log in to the ESX host terminal directly or via SSH. For ESXi hosts, see Tech Support Mode for Emergency Support (1003677).
Note: In the above example, examplevm is a legitimate virtual machine with three snapshot delta disks. stalevm is a decommissioned virtual machine that was removed from inventory, but not deleted from the datastore, unnecessarily taking up space.
KB for more informaiton -
Run the below script to get all VMs of all vCenters with Snapshot details :
$vm_snapshot = @()
$vm_consolidate = @()
$vc = get-content d:\snapshot\serverlist.txt
foreach ( $vcs in $vc)
{
connect-viserver $vcs
$VMs = get-vm
$vm_consolidate += $VMs | get-harddisk | select @{ n = "Virtual Center";e= { (($_.uid).split("@")[-1]).split(":")[0] }}, Parent,name,StorageFormat,Filename
$vm_snapshot += $VMs | get-snapshot | sort created |select @{"N" ="VirtualCenter";"E" = {$vcs}},VM,name, @{"N" ="Created";"E" = {$_.created.tostring("d")}}, description, sizeMB, powerstate
disconnect-viserver $vcs
}
$vm_consolidate | export-csv d:\snapshot\diskinfo.csv
$vm_snapshot | export-csv d:\snapshot\snapshotsinfo.csv