VMware vSphere PowerCLI is an extremely powerful command line utility you can use to automate every aspect of your ESX environment. We’re talking every level from VMs, the host OS, storage, networking, licensing, and more! Basically its a ton of PowerShell cmdlets specifically for ESX that sit on top of Windows PowerShell.
You can download it here if you never played with it before:
http://communities.vmware.com/community/vmtn/vsphere/automationtools/windows_toolkit?view=overview
They have very good documentation and sample scripts to try out at the link above. Now the fun part. What’s the first script you should try out? My advice is vCheck by Alan Renouf.
PowerCLI vCheck (Daily Report) – http://www.virtu-al.net/2009/11/04/vcheck-daily-report-v3/ – Without a doubt one of my favorite PowerCLI scripts. Every morning when you arrive to the office, you can have an email report waiting in your Outlook Inbox with the status of your entire ESX environment. Every aspect of it. From old snapshots to resource utilization on your clusters, it’s all there. I first started using it at version 1 but version 2 is even slicker! If you are an ESX admin, you NEED to be using this script! The lastest version 3 came out the other day and I haven’t used it in a production environment yet but you can download it at the link above. Al has gone back to calling it vCheck by the way instead of Daily Report. I’ll be tweaking V3 at home this weekend hopefully if I have the time and test it out.
You can see more scripts from Alan on his blog:
http://www.virtu-al.net/script-list/
I could list them all here with descriptions but he’s done a good job of keeping everything organized in the link above. Try them out! Let me know if you have any favorite scripts you use. I’m always looking for new scripts to make life easier so share please. 🙂
Jason Samuel is a visionary product leader and trusted advisor with a proven track record of shaping strategy and driving technology innovation. With extensive expertise in enterprise end-user computing, security, cloud, automation, and virtualization technologies, Jason has become a globally recognized authority in the IT industry. His career spans consulting for hundreds of Fortune 500 enterprises across diverse business sectors worldwide, delivering cutting-edge digital solutions from Citrix, Microsoft, VMware, Amazon, Google, and NVIDIA that seamlessly balance security with exceptional user experiences.
Jason’s leadership is amplified by his dedication to knowledge-sharing as an author, speaker, podcaster, and mentor within the global IT and technology community. Recognized with numerous prestigious awards, Jason’s contributions underscore his commitment to advancing technology and empowering organizations to achieve transformative results. Follow him on LinkedIn.
Alan Renouf
January 20, 2010 at 2:57 AM
Thanks for the post, Im always looking for ways to improve my scripts so if you have anything you would like to see please just leave a comment on the blog !
Ashok
April 10, 2012 at 9:24 AM
Thanks for sharing the PowerCLI Scripts. Good stuff !!