Monitoring vCenter Services using PowerShell
This PowerShell script allows you to quickly check the status of vCenter Services.
The script interacts with the REST based vSphere APIs in order to list the status of vCenter Services and the health status of the VMware vCSA. When run, it tries to authenticate
against cis API with the given credentials. If the session is established successfully, a token is acquired and a simple menu is presented in order to trigger other functions to retrieve the status of vCenter Services as well as the vCSA health status by performing REST calls towards the appliance API.
Created by: Ioannis Patsiotis
Date Created: 23/10/2019
Version 1.0 (23/10/2019): Initial commit. Support only for vCSA 6.7.
Version 1.1 (06/11/2019): Added support for vCSA 6.5. Code fixing.
Version 1.2 (10/11/2019): New options for vCSA Health Status and vCSA Disks. Code fixing.
Dependencies: vCenter Appliance 6.5 (188.8.131.5200) and higher
Tested Against Environment
vCSA Version: vCenter Appliance 6.7 U2 (184.108.40.206000)
vCSA Version: vCenter Appliance 6.5 (220.127.116.1100)
PowerCLI Version: PowerCLI 6.5 R1
PowerShell Version: 5.1
OS Version: Windows 10 1903