?
Solved

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

Posted on 2011-09-27
4
Medium Priority
?
389 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 123

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1000 total points
ID: 36713471
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 123

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1000 total points
ID: 36713476
You could also set an Alarm in vCenter.
0
 
LVL 24

Assisted Solution

by:Luciano Patrão
Luciano Patrão earned 500 total points
ID: 36714243
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:ADP india
ADP india earned 500 total points
ID: 36715913
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

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Postmortem reporting allow us to examine mistakes in a way that focuses on the situational aspects of a failure’s mechanism and the decision-making process of individuals proximate to the failure. Read our guide on how to handle IT post-mortem repor…
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
Suggested Courses

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