Friday, March 19, 2010

Powershell - Get Snapshots for all VMs in a Resource Pool

Recently needed to find all the snapshots in a resource pool, so to do that, I needed to first get all the VMs in the resource pool like this:

Get-VM -Location (Get-ResourcePool mypoolname)

And get the snapshots, so pipe the output and voila:

$snaplist = Get-VM -Location (Get-ResourcePool mypoolname) | Get-Snapshot

Nice and easy!

Sunday, March 14, 2010

Script-O-Mania Entry

Just submitted my script to the Script-O-Mania contest put on by VMware. Here are some screenshots. Script will be posted after the contest ends.

The script gathers CPU Ready Time data for VMs and graphs them one a per-host basis and creates a chart and data tab for each host. This can help you identify hosts that are possibly over-saturated or running too many SMP VMs.