Solved

VMWARE easy way to see what guests have snapshots on them ?

Posted on 2011-09-27
4
376 Views
Last Modified: 2012-05-12
is there a easy way to tell what guests have snapshots , other than selecting each one and seeing if they exist in snapshot manager ?
0
Comment
Question by:NAMEWITHELD12
  • 2
4 Comments
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 250 total points
Comment Utility
Yes, I would use the following

I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.

http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli

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

http://powergui.org/index.jspa

and

VMware Community Pack

http://www.virtu-al.net/featured-scripts/vmware-powerpack/


 Snapshots-Query-shown-in-VMware-.jpg
0
 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 250 total points
Comment Utility
You could also set an Alarm in vCenter.
0
 
LVL 22

Assisted Solution

by:Luciano Patrão
Luciano Patrão earned 125 total points
Comment Utility
Hi

Using PowerShell you can list this, hanccocka inform above.

This is a small Script that I have created to list all snapshots for each VM.

I  use PowerGUI from Quest(VMware vSphere Management).

http://www.powergui.org/entry.jspa?externalID=1802

Hope this can help

Jail
###########################################################################################
# TScript: List All Snaphots for each VM												  #
# Created by: Luciano Patrão													       	  #
# Date: 01-12-2010   						 	     	                	       		  #
###########################################################################################

$server = "Enter vCenter IP or VMware host IP"
$user = "Enter user"
$pwd = "Enter password"

Connect-VIServer $server -User $user -Password $pwd

$AllVirtualMachines = Get-VM

foreach ($VirtualMachine in $AllVirtualMachines)
	{$AllSnapshots=Get-Snapshot -VM $VirtualMachine
		foreach ($Snapshot in $AllSnapshots)
	 		{If ($Snapshot.ID -like "VirtualMachineSnapshot-*")
  			{Write-Host "VM-> " $VirtualMachine.Name, 
				" - Snapshot Name-> " $Snapshot.Name, 
				" - Snapshot Description-> "$Snapshot.Description}}}

Open in new window

0
 

Assisted Solution

by:adpindia
adpindia earned 125 total points
Comment Utility
here is the single powercli command for your requirement.

get-vm | Get-Snapshot -VM {$_.Name} | select name,vm

Of course, before using this command you should connect to Vcenter server by using below command  :)

Connect-VIServer -Server servername -User username -Password password  
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now