Solved

Edit VMware PowerShell SnapShot Script

Posted on 2012-04-09
4
812 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now