Solved

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

Posted on 2011-09-27
4
385 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 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 250 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 121

Assisted Solution

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

Assisted Solution

by:Luciano Patrão
Luciano Patrão earned 125 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:adpindia
adpindia earned 125 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
There’s a movement in Information Technology (IT), and while it’s hard to define, it is gaining momentum. Some call it “stream-lined IT;” others call it “thin-model IT.”
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

717 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