Solved

Edit VMware PowerShell SnapShot Script

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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Suggested Courses

624 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