VCF Healthcheck using Powershell

By using Vmware.CloudFoundation.Reporting module we can fetch VCF configuration and health reports. Below are the Pre-requisites for running the same.

Below Powershell Modules needs to be installed to run the report.

Install-Module  -Name VMware.CloudFoundation.Reporting

Install-Module  -Name PowerVCF

Install-Module  -Name VMware.vSphere.SsoAdmin

Install-Module  -Name PowerValidatedSolutions

Install-Module -Name VMware.PowerCLI

Run below script which will generate the html files as a output for each of the category.

$sddcManagerFqdn = “fqdn” #enter the FQDN of SDDC Manager

$sddcManagerUser = “username” #user with admininistartor access or administrator@vsphere.local

$sddcManagerPass = “pwd” #Password of user account

$reportPath = “location” #Location for output files

$sddcManagerRootPass = “rootpwd” #root password of the SDDC Manager

$wldname = “domain name” #Name of Management domain or Workload domain

Invoke-VcfOverviewReport -sddcManagerFqdn $sddcManagerFqdn -sddcManagerUser $sddcManagerUser -sddcManagerPass $sddcManagerPass -reportPath $reportPath

Invoke-VcfHealthReport -sddcManagerFqdn $sddcManagerFqdn -sddcManagerUser $sddcManagerUser -sddcManagerPass $sddcManagerPass -sddcManagerRootPass $sddcManagerRootPass -reportPath $reportPath -allDomains

Invoke-VcfAlertReport -sddcManagerFqdn $sddcManagerFqdn -sddcManagerUser $sddcManagerUser -sddcManagerPass $sddcManagerPass -reportPath $reportPath -allDomains

Invoke-VcfPasswordPolicy -sddcManagerFqdn $sddcManagerFqdn -sddcManagerUser $sddcManagerUser -sddcManagerPass $sddcManagerPass -sddcManagerRootPass $sddcManagerRootPass -reportPath $reportPath -allDomains

Invoke-VcfConfigReport -sddcManagerFqdn $sddcManagerFqdn -sddcManagerUser $sddcManagerUser -sddcManagerPass $sddcManagerPass -reportPath $reportPath -allDomains

Invoke-VcfUpgradePrecheck -sddcManagerFqdn $sddcManagerFqdn -sddcManagerUser $sddcManagerUser -sddcManagerPass $sddcManagerPass -reportPath $reportPath -workloadDomain $wldname

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: