Solved

Edit VMware PowerShell SnapShot Script

Posted on 2012-04-09
4
830 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 20

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 20

Author Comment

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

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
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…

738 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