Skip to content

Commit

Permalink
fix(overview): exclude hcx hosts #65
Browse files Browse the repository at this point in the history
fix(overview): exclude hcx hosts

Signed-off-by: Ryan Johnson [email protected]
  • Loading branch information
GaryJBlake authored Jan 3, 2023
2 parents 0358d79 + a1bf59b commit 6fed300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VMware.CloudFoundation.Reporting.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -8131,8 +8131,8 @@ Function Request-VcenterOverview {
$customObject | Add-Member -notepropertyname "Domain Name" -notepropertyvalue $domain.name
}
$customObject | Add-Member -notepropertyname "Domain Type" -notepropertyvalue $domain.type.ToLower()
$customObject | Add-Member -notepropertyname "Total Clusters" -notepropertyvalue (Get-Cluster -Server $vcfVcenterDetails.fqdn).Count
$customObject | Add-Member -notepropertyname "Total Hosts" -notepropertyvalue (Get-VMHost -Server $vcfVcenterDetails.fqdn).Count
$customObject | Add-Member -notepropertyname "Total Clusters" -notepropertyvalue (Get-VCFWorkloadDomain -id $domain.id).clusters.Count
$customObject | Add-Member -notepropertyname "Total Hosts" -notepropertyvalue (Get-VCFHost | Where-Object {$_.domain.id -eq $domain.id}).Count
$customObject | Add-Member -notepropertyname "Total VMs" -notepropertyvalue (Get-VM -Server $vcfVcenterDetails.fqdn).Count
$customObject | Add-Member -notepropertyname "Powered On" -notepropertyvalue (Get-VM -Server $vcfVcenterDetails.fqdn | Where-Object {$_.PowerState -eq "PoweredOn"}).Count
$customObject | Add-Member -notepropertyname "Powered Off" -notepropertyvalue (Get-VM -Server $vcfVcenterDetails.fqdn | Where-Object {$_.PowerState -eq "PoweredOff"}).Count
Expand Down

0 comments on commit 6fed300

Please sign in to comment.