Solved

Edit VMware PowerShell SnapShot Script

Posted on 2012-04-09
4
820 Views
Last Modified: 2012-04-23
I download the following powershell script to email reminders of Vmware snapshots in my enviroment. http://www.virtu-al.net/2009/06/22/powercli-snapreminder/ 

Instead of having a email sent to me for each snapshot, I would like to receive one email that that contains all of the same information that each individual email had..

how can I do this?
0
Comment
Question by:compdigit44
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
coolsport00 earned 500 total points
ID: 37827226
Are you wanting emailed on any VMs that contain snapshots? Is that right?

Alan has a different 'tool' called vCheck Daily. You can download it here: http://www.virtu-al.net/featured-scripts/vcheck/. I think this may serve you better. I did a "guest post" on Chris Colotti's site on how to 'separate' out the plugins for only what you want (see: http://www.chriscolotti.us/vmware/segregating-the-vcheck-daily-report-scripts/?utm_source=website&utm_campaign=wordtwit&utm_medium=web). So, basically, what you'll need to do is download the vCheck files. They come in a .zip file. Place them in a directory on your workstation. In the Plugins folder, all you need is the "00" Plugin, the "Disconnect from vCenter" Plugin and either Plugin "02", "45", "63", "64", or "65". You'll answer some questions at the initial run of the script, one of which is adding SMTP/email addy info. You can then set the script to be scheduled to run daily, or weekly, or whenever you like (see Alan's post on how to sched a script here: http://www.virtu-al.net/2009/07/10/running-a-powercli-scheduled-task/).

What you can do is play around with each of the plugins to see what the output is specifically that you want, or just add them all. If you don't need some of them, you can simply remove the ones you don't want from the Plugins folder.

Hope that helps.

Regards.
~coolsport00
0
 
LVL 19

Author Comment

by:compdigit44
ID: 37840483
Thanks for the tip. I was really hoping to use the same powershell script that I download in my orginal postingby modifiy it to just send one email that contained a list of all servers with snapshot older than X days. There has to be a way to do this
0
 
LVL 19

Author Comment

by:compdigit44
ID: 37862303
Are any of the experts able to help with this?
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

785 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