• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Yellow Bricks

by Duncan Epping

  • Home
  • Unexplored Territory Podcast
  • HA Deepdive
  • ESXTOP
  • Stickers/Shirts
  • Privacy Policy
  • About
  • Show Search
Hide Search

Alan Renouf’s, the powershell guru, Daily Report

Duncan Epping · Jul 16, 2009 ·

Alan Renouf is definitely on of the most active bloggers when we are talking about Powershell/PowerCLI. His posts are always educational and of a high quality. I love the one-liners but nothing, absolutely nothing, beats this awesome Daily Report script that Alan has just published. I’m not going to repost his full article because I think all of you should visit Alan’s website and give him feedback on the script so he can improve it.

There is a configurable section at the start of the script where you can set how many days old you would like your snapshots to be allowed in your infrastructure, anything over this will show in the report, it will even resolve the name ( the machine running the script must be part of an Active Directory Domain) so that you can forward this email on to them and ask them if they still need the snapshot.

The outcome of the script also contains:

  • Datastores that have less than x% free space
  • VMs which have been created in the last x days and who created these
  • VMs which have been deleted and who deleted them
  • Any Virtual Center Events which have been logged during the given timeframe
  • Any VM’s which have no VMtools installed
  • The state of all VMware services on the vCenter server
  • Any Windows events from the Virtual center server which are related to VMware
  • Any VMs which have CD-Rom or Floppy Drive’s connected
  • Any hosts in Maintenance Mode
  • Any Hosts in a disconnected state

Schedule it and email it to your helpdesk on a daily base and let them check the outcome and archive it. It might come in handy sometime when you need to troubleshoot your environment, believe me it will… Thanks Alan, keep it up.

Related

Management & Automation powershell, Scripting, scripts

Reader Interactions

Comments

  1. NiTRo says

    17 July, 2009 at 15:20

    very nice ! I use HealthCheck from http://engineering.ucsb.edu/~duonglt/vmware/ witch is very very faster, stronger but a bit less sexy 🙂

  2. Roy says

    26 May, 2011 at 18:10

    How do you handle an exception that returns a negative value in get-counters? My script fails whenever a negative value is encountered.

    Thanks

Primary Sidebar

About the Author

Duncan Epping is a Chief Technologist and Distinguished Engineering Architect at Broadcom. Besides writing on Yellow-Bricks, Duncan is the co-author of the vSAN Deep Dive and the vSphere Clustering Deep Dive book series. Duncan is also the host of the Unexplored Territory Podcast.

Follow Us

  • X
  • Spotify
  • RSS Feed
  • LinkedIn

Recommended Book(s)

Advertisements




Copyright Yellow-Bricks.com © 2025 · Log in