VMware

Find snapshots and send email to user/users

VERSION 5 Published

Created on: Aug 11, 2008 9:09 PM by Chris Uys - Last Modified:  May 22, 2009 11:45 AM by Chris Uys


We have had some issues where VCB doesn't clean up after itself everytime it runs so I wrote a quick script that will query all the VM's for current snapshots left over and send an email to me with the name of the VM, Snapshot Name, Description,Date of Creation and Host it is running on.

Follow the comments in the script and change the variables where needed to suit your environment.

Attachments:
Average User Rating
(1 rating)




Comments

Jan 20, 2009 11:22 AM EXPRESS  says:

Hi Chris I am new at this how can get this to run what do i need?


Thank you,
Express

Jan 20, 2009 2:10 PM Chris Uys  says: in response to: EXPRESS

Hey mate,

I added some comments to the script that you should be able to follow. Just need to change the appropriate variables to suit your environment.

Cheers,
Chris

Jan 22, 2009 4:43 AM rDale  says:

Is there a way to alter the date format to a more european layout ?

Feb 3, 2009 1:00 AM esxfan  says: in response to: rDale

search "<td>$($snapshot.created)</td>" in snapshots.ps1 and you can change it to "<td>$($snapshot.created.tostring('dd-MM-yyyy HH:mm'))</td>"

 

More by Chris Uys

Developer Social Media

Communities