Skip to content

Commit 91399e1

Browse files
tpcarmanmattallford
authored andcommitted
Improve error reporting for vCenter Server connections.
1 parent f5df7be commit 91399e1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Src/Public/Invoke-AsBuiltReport.VMware.vSphere.ps1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,6 +1466,7 @@ function Invoke-AsBuiltReport.VMware.vSphere {
14661466
$DasVmOverrideVmMonitoring | Sort-Object 'Virtual Machine' | Table -Name "$Cluster HA VM Overrides VM Monitoring"
14671467
}
14681468
}
1469+
$DasVmOverrideVmMonitoring | Sort-Object 'Virtual Machine' | Table -Name "$Cluster HA VM Overrides VM Monitoring"
14691470
}
14701471
}
14711472
}
@@ -1519,6 +1520,11 @@ function Invoke-AsBuiltReport.VMware.vSphere {
15191520
$ClusterComplianceInfo | Sort-Object Name, Baseline | Table -Name "$Cluster Update Manager Compliance" -ColumnWidths 25, 50, 25
15201521
}
15211522
}
1523+
if ($Healthcheck.Cluster.VUMCompliance) {
1524+
$ClusterComplianceInfo | Where-Object {$_.Status -eq 'Unknown'} | Set-Style -Style Warning
1525+
$ClusterComplianceInfo | Where-Object {$_.Status -eq 'Not Compliant' -or $_.Status -eq 'Incompatible'} | Set-Style -Style Critical
1526+
}
1527+
$ClusterComplianceInfo | Sort-Object Name, Baseline | Table -Name "$Cluster Update Manager Compliance" -ColumnWidths 25, 50, 25
15221528
}
15231529
#endregion Cluster VUM Compliance
15241530

@@ -1546,6 +1552,7 @@ function Invoke-AsBuiltReport.VMware.vSphere {
15461552
}
15471553
#endregion Cluster Permissions
15481554
}
1555+
$ClusterVIPermissions | Sort-Object 'User/Group'| Table -Name "$Cluster Permissions"
15491556
}
15501557
}
15511558
#endregion Cluster Detailed Information
@@ -1868,6 +1875,7 @@ function Invoke-AsBuiltReport.VMware.vSphere {
18681875
}
18691876
$VMHostBaselines | Sort-Object Name | Table -Name "$VMHost Update Manager Baselines"
18701877
}
1878+
$VMHostBaselines | Sort-Object Name | Table -Name "$VMHost Update Manager Baselines"
18711879
}
18721880
}
18731881
#endregion ESXi Update Manager Baseline Information
@@ -2365,12 +2373,14 @@ function Invoke-AsBuiltReport.VMware.vSphere {
23652373
'lockdownStrict' { 'Enabled (Strict)' }
23662374
default { $VMHost.ExtensionData.Config.LockdownMode }
23672375
}
2376+
$VssPortgroupNicTeaming | Sort-Object 'vSwitch', 'Port Group' | Table -Name "$VMHost vSwitch Port Group NIC Teaming"
23682377
}
23692378
if ($Healthcheck.VMHost.LockdownMode) {
23702379
$LockdownMode | Where-Object { $_.'Lockdown Mode' -eq 'Disabled' } | Set-Style -Style Warning -Property 'Lockdown Mode'
23712380
}
23722381
$LockdownMode | Table -Name "$VMHost Lockdown Mode" -List -ColumnWidths 50, 50
23732382
}
2383+
#endregion ESXi Host Virtual Switch Port Group NIC Teaming
23742384
}
23752385
#endregion ESXi Host Lockdown Mode
23762386

@@ -2391,6 +2401,10 @@ function Invoke-AsBuiltReport.VMware.vSphere {
23912401
default { $VMHostService.Policy }
23922402
}
23932403
}
2404+
if ($Healthcheck.VMHost.LockdownMode) {
2405+
$LockdownMode | Where-Object {$_.'Lockdown Mode' -eq 'Disabled'} | Set-Style -Style Warning -Property 'Lockdown Mode'
2406+
}
2407+
$LockdownMode | Table -Name "$VMHost Lockdown Mode" -List -ColumnWidths 50, 50
23942408
}
23952409
if ($Healthcheck.VMHost.Services) {
23962410
$Services | Where-Object { $_.'Name' -eq 'SSH' -and $_.Daemon -eq 'Running' } | Set-Style -Style Warning -Property 'Daemon'
@@ -2659,6 +2673,7 @@ function Invoke-AsBuiltReport.VMware.vSphere {
26592673
}
26602674
$VDSTrafficShapingDetail | Sort-Object 'Direction' | Table -Name "$VDS Traffic Shaping"
26612675
}
2676+
$VDSTrafficShapingDetail | Sort-Object Direction | Table -Name "$VDS Traffic Shaping"
26622677
}
26632678
#endregion Distributed Virtual Switch Traffic Shaping
26642679

0 commit comments

Comments
 (0)