Link to home
Start Free TrialLog in
Avatar of Jay Thomas
Jay ThomasFlag 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.
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of Jay Thomas

ASKER

Hi, will PowerCLI work without vcloud director then?
Yes, PowerCLI works connected to Hosts (and/or) vCenter Server.
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?
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
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
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
I didn't write the script, so not sure what is going on here with it!

(New Look EE!)
Thanks for all you help mate