One of the many things I learned from Hal is that there are limitations of the GUI interface that can be quickly covered by using PowerCLI. For example, in one of the videos Hal points out how vSphere snapshots can take up a ton of space and, potentially, cause you to run out of disk space in your datastores and, potentially, cause downtime for the your virtual infrastructure.
This is something that you certainly want to avoid but the GUI interface makes it difficult to 1) find which VMs have snapshots and 2) find out how much space these snapshots take up. Seriously, there can be hundreds of gigabytes of diskspace used by snapshots taken months or years ago and you may never know about them.
The cool thing is that “Hal has a script for that”. And the best part is that Hal makes learning PowerCLI and PowerShell fun and easy. Honestly, before I watched this video, I had only used one PowerShell script. After Hal’s excellent teaching on how it works, I am excited about PowerShell and feel like I could write just about any script!
Back to vSphere Snapshots… Hal’s script will go out and find old snapshots in your vSphere infrastructure and report on how old they are and how much space they take up in your datastores. By finding these snapshots early, before they cause trouble, you can delete unneeded snapshots to save space and prevent downtime.
Here’s a sample from Hal’s PowerCLI training video…
David Davis is a CCIE, vExpert, VCP4, and VCAP-DCA. He has been in the IT industry for 20+ years and is the author of hundreds of articles and videos. He has created 10 Train Signal video training courses including the numerous courses that make up the best-selling VMware vSphere video training library.
Discussion
No comments or trackbacks for “How to find old vSphere Snapshots using PowerCLI and PowerShell”Post a comment