Avatar of Jay Thomas
Jay Thomas
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Automating the reports from ESXi hosts

Hi all,

Currently studying VCP and have a question. Is there anyway of automating the reporting side ie, when i go file, Report, Host Summary. Can this be scheduled does anyone know and can one report be used to combine multiple ESXi hosts? Say if you have 500 hosts, I wouldn't want to run the report 500 times and also would be good to pull the reports together.
VMwareVirtualizationWindows Server 2008

Avatar of undefined
Last Comment
Jay Thomas

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

The best way to Automate Reports is to use one of the following:-

I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.

http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli

One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI

http://powergui.org/index.jspa

and

VMware Community Pack
http://www.virtu-al.net/featured-scripts/vmware-powerpack/

In the above VMware Community Pack is vCheck Daily which emails a report daily to you.

see also here

vCheck (Daily Report)
http://www.virtu-al.net/vcheck-pluginsheaders/vcheck/

and

VMware vSphere Health Check Report v5.1.0
https://communities.vmware.com/docs/DOC-9842

RV Tools
http://www.robware.net/

is also good.
Jay Thomas

ASKER
Hi, will PowerCLI work without vcloud director then?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Yes, PowerCLI works connected to Hosts (and/or) vCenter Server.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Jay Thomas

ASKER
Hi, i have run the vcheck (daily report) but i do not have an email system to send the email but i can't see the option of where the file is saved so that i can view it - any ideas?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

How about using Google's SMTP server?
Jay Thomas

ASKER
My report comes in the browser but comes out really weird -its attached. Don't know if you have time to look dude, appreciate your help.
192.168.17.101vCheck-7-5-2014.htm
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Jay Thomas

ASKER
Hey dude ignore that i now got it working. The script doesn't change anything does it? It just that one plug in says allow max number of CPUs and another max number of paths to the LUN.
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Jay Thomas

ASKER
It reports 1 host (i have 2 that are online) and reports number of VMs at 1 where I have 8.

Don't think I'm taking the mick here by keep asking its just it would be difficult to start a new question with this error. Can you think of why it would report the wrong numbers?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

I didn't write the script, so not sure what is going on here with it!

(New Look EE!)
Your help has saved me hundreds of hours of internet surfing.
fblack61
Jay Thomas

ASKER
Thanks for all you help mate