• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1412
  • Last Modified:

Is there a vSphere CLI command that lists all the snapshots on a given ESXi VM?

Using vmware-cmd.pl  -l     I list all the vm's on an ESXi server.

Is there a command to list all the snapshots (and hopefully all their notes) on each of the vm's?

1 Solution
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
I would recommend using the following tools, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.


One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI



VMware Community Pack


It's also worth looking at The free VMware Guest Console


The free VMware Guest Console, an experimental application created by VMware Labs, is a great tool for managing vSphere VM processes and files. You can view, sort and kill processes across all VMs, and you can also run a script on all Windows or Linux VMs.
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Availailble in the VMware Community Pack

 Snapshots in VMware Community Pack
There is a PowerCLI script:
Get-VM | Get-Snapshot | Select VM, Name, Description, Created

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Yes powercli is likely the best bet. For example:

[vSphere PowerCLI] C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI
> get-vm vshieldmgr | get-snapshot | fl *

Description       : two
Created           : 5/6/2011 8:22:40 PM
Quiesced          : False
PowerState        : PoweredOn
VM                : vShieldMgr
VMId              : VirtualMachine-vm-1643
Parent            :
ParentSnapshotId  :
Children          :
SizeMB            : 11269.11
IsCurrent         : True
IsReplaySupported : False
Id                : VirtualMachineSnapshot-snapshot-1808
Name              : one

[vSphere PowerCLI] C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI

otherwise you would have to use the vifl.pl from the last question and look for filenames that indicate it is a snapshot
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
or use the VMware Community Pack for everthing. (if you prefer GUIs)
gateguardAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now