Firstly I would like to thank everyone who took the time to comment on my previous Daily Report script, I really appreciate the feedback and have never had so many comments !
Now onto V2…
This one will take a while longer to run than the last script but as its a scheduled task we are not really worried about that, we are hardly going to sit there and watch it running !
I think you will agree the results are worth the wait:
- Bug Fixes
- Active VMs count
- Inactive VMs count
- DRS Migrations count and list
- Correct NTP Server check for each host
- VMs stored on local datastores
- NTP Service check for each host
- vmkernel warning messages for each host
- VM CPU ready over x%
I have fixed the bugs which were mentioned in my previous posts comments, thanks to all for helping me find these. I have also added a few other tweaks along the way to improve output etc.
Active VMs count
In the General Details section there will now be a count of the number of VMs which are powered on.
Inactive VMs count
In the General Details section there will now be a count of the number of VMs which are powered off.
DRS Migrations count and list
In the General Details section there will now be a count of the number of DRS migrations over the given timescale (configurable in the config section), these migrations will also be listed in the DRS Migrations section later in the report:
Correct NTP Server and service check for each host
In the config section of the script you must specify your correct ntp server name, the script will then check to make sure all your hosts are using this NTP server and that the NTP service is running, if they are not it will report on these as below:
VMs stored on local datastores
The script will check to see if you have any VMs which reside on local storage if they do it will report these. At the top of the script you can add exclusions for things like templates or machines you know are allowed to be on local storage.
vmkernel warning messages for each host
Each host’s vmkernel log file will be checked and if any warning messages are being displayed these will be included in the report:
VM CPU ready over x%
Any VMs with a CPU %RDY over the configurable amount will be displayed in the report as below:
I hope you enjoy these additions and find them as useful as I do.
Please leave your comments below !