dominic7
Virtuoso
Virtuoso

snapalert.pl - perl script to locate snapshots

So I've written a small utility here:

Basically, it uses the VMPerl API to connect to VC and then iterate through all your VMs and find ones with snapshots. Then it (optionally) sends you an email with the results so you can schedule it and keep track of which VMs need to get the snapshots committed before they grow out of control.

What it doesn't do:

Tell you the size of the snapshot

Commit the snapshot for you

Tell you how old the snapshot it, or read the description.

As far as I can tell that functionality isn't exposed through the API, but if I figure out how to do any of that stuff I'll add it in a later release. As always, use at your own risk. Hopefully someone else finds this useful.

0 Kudos
4 Replies
dominic7
Virtuoso
Virtuoso

I'm going to bump this since I haven't received much feeback on it ( sad panda ).

0 Kudos
esiebert7625
Immortal
Immortal

Good work Dominic, I'm writing a big 3-part article on Snapshots for SearchVmware.com and am going to mention your utility in it.

Eric Siebert

VMware Communities User Moderator

-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-

Visit my website:

-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-

0 Kudos
lesf
Contributor
Contributor

I have tried running it with all kinds of options/arguments and always get

Odd number of elements in hash assignment at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 684.

Any ideas??

Thanks!

0 Kudos
lyanthony
Contributor
Contributor

I'm getting the same error as lesf. I'm using the latest version of the Remote CLI from the vmware site as of the 11th of August '08. Might that have anything to do with it?

A.

0 Kudos