Skip to content

Commit

Permalink
v1.1.3 release
Browse files Browse the repository at this point in the history
- Added VMHost IPMI / BMC configuration information
  • Loading branch information
tpcarman committed Apr 21, 2022
1 parent 2e9e41f commit 498a12a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# :arrows_clockwise: AsBuiltReport.VMware.ESXi Changelog

## [[1.1.3](https://github.com/AsBuiltReport/AsBuiltReport.VMware.ESXi/releases/tag/v1.1.2)] - 2022-04-21

### Added
- Added VMHost IPMI / BMC configuration information

## [[1.1.2](https://github.com/AsBuiltReport/AsBuiltReport.VMware.ESXi/releases/tag/v1.1.2)] - 2022-03-24

### Added
Expand Down
32 changes: 31 additions & 1 deletion Src/Public/Invoke-AsBuiltReport.VMware.ESXi.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Invoke-AsBuiltReport.VMware.ESXi {
.DESCRIPTION
Documents the configuration of VMware ESXi servers in Word/HTML/XML/Text formats using PScribo.
.NOTES
Version: 1.1.2
Version: 1.1.3
Author: Tim Carman
Twitter: @tpcarman
Github: tpcarman
Expand Down Expand Up @@ -168,6 +168,36 @@ function Invoke-AsBuiltReport.VMware.ESXi {
$VMHostDetail | Table @TableParams
#endregion ESXi Host Specifications

#region ESXi IPMI/BMC Settings
Try {
$VMHostIPMI = $esxcli.hardware.ipmi.bmc.get.invoke()
} Catch {
Write-PScriboMessage -IsWarning "Unable to collect IPMI / BMC configuration from $($VMHost.ExtensionData.Name)"
}
if ($VMHostIPMI) {
Section -Style Heading3 'IPMI / BMC' {
$VMHostIPMIInfo = [PSCustomObject]@{
'Manufacturer' = $VMHostIPMI.Manufacturer
'MAC Address' = $VMHostIPMI.MacAddress
'IP Address' = $VMHostIPMI.IPv4Address
'Subnet Mask' = $VMHostIPMI.IPv4Subnet
'Gateway' = $VMHostIPMI.IPv4Gateway
'Firmware Version' = $VMHostIPMI.BMCFirmwareVersion
}

$TableParams = @{
Name = "IPMI / BMC - $($VMHost.ExtensionData.Name)"
List = $true
ColumnWidths = 50, 50
}
if ($Report.ShowTableCaptions) {
$TableParams['Caption'] = "- $($TableParams.Name)"
}
$VMHostIPMIInfo | Table @TableParams
}
}
#endregion ESXi IPMI/BMC Settings

#region ESXi Host Boot Device
Section -Style Heading3 'Boot Device' {
$ESXiBootDevice = Get-ESXiBootDevice -VMHost $VMHost
Expand Down

0 comments on commit 498a12a

Please sign in to comment.