Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Repository for AsBuiltReport VMware ESXi module

License

NotificationsYou must be signed in to change notification settings

AsBuiltReport/AsBuiltReport.VMware.ESXi

Repository files navigation

Buy Me a Coffee at ko-fi.com

VMware ESXi As Built Report

VMware ESXi As Built Report is a PowerShell module which works in conjunction withAsBuiltReport.Core.

AsBuiltReport is an open-sourced community project which utilises PowerShell to produce as-built documentation in multiple document formats for multiple vendors and technologies.

The VMware ESXi As Built Report module is used to generate as built documentation for standalone VMware ESXi servers.

Please refer to theVMware vSphere AsBuiltReport for reporting of VMware vSphere / vCenter Server environments.

Please refer to the AsBuiltReportwebsite for more detailed information about this project.

🔰 Getting Started

Below are the instructions on how to install, configure and generate a VMware ESXi As Built report.

💾 Supported Versions

VMware ESXi

The VMware ESXi As Built Report supports the following ESXi versions;

  • ESXi 6.5
  • ESXi 6.7
  • ESXi 7.0

End of Support

The following VMware ESXi versions are no longer being tested and/or supported;

  • ESXi 5.5
  • ESXi 6.0

PowerShell

This report is compatible with the following PowerShell versions;

Windows PowerShell 5.1PowerShell 7

🔧 System Requirements

PowerShell 5.1 or PowerShell 7, and the following PowerShell modules are required for generating a VMware ESXi As Built report.

Linux & macOS

❗ If you are unable to install .NET Core, you must setShowCoverPageImage toFalse in the report JSON configuration file.

🔐 Required Privileges

A user with root privileges on the ESXi host is required to generate a VMware ESXi As Built Report.

📦 Module Installation

Open a PowerShell terminal window and install each of the required modules.

⚠️ VMware PowerCLI 12.3 or higher is required. Please ensure older PowerCLI versions have been uninstalled.

install-module VMware.PowerCLI-MinimumVersion12.3-AllowClobberinstall-module AsBuiltReport.VMware.ESXi

✏️Configuration

The ESXi As Built Report utilises a JSON file to allow configuration of report information, options, detail and healthchecks.

An ESXi report configuration file can be generated by executing the following command;

New-AsBuiltReportConfig-Report VMware.ESXi-Path<User specified folder>-Name<Optional>

Executing this command will copy the default ESXi report JSON configuration to a user specified folder.

All report settings can then be configured via the JSON file.

The following provides information of how to configure each schema within the report's JSON file.

Report

TheReport schema provides configuration of the ESXi report information

Sub-SchemaSettingDefaultDescription
NameUser definedVMware ESXi As Built ReportThe name of the As Built Report
VersionUser defined1.0The report version
StatusUser definedReleasedThe report release status
ShowCoverPageImagetrue / falsetrueToggle to enable/disable the display of the cover page image
ShowHeaderFootertrue / falsetrueToggle to enable/disable document headers & footers
ShowTableCaptionstrue / falsetrueToggle to enable/disable table captions/numbering

Options

TheOptions schema allows certain options within the report to be toggled on or off

Sub-SchemaSettingDefaultDescription
ShowLicenseKeystrue / falsefalseToggle to mask/unmask ESXi license keys

Masked License Key
*****-*****-*****-56YDM-AS12K

Unmasked License Key
AKLU4-PFG8M-W2D8J-56YDM-AS12K
ShowVMSnapshotstrue / falsetrueToggle to enable/disable reporting of VM snapshots

InfoLevel

TheInfoLevel schema allows configuration of each section of the report at a granular level. The following sections can be set

There are 6 levels (0-5) of detail granularity for each section as follows;

SettingInfoLevelDescription
0DisabledDoes not collect or display any information
1Enabled / SummaryProvides summarised information for a collection of objects
2Adv SummaryProvides condensed, detailed information for a collection of objects
3DetailedProvides detailed information for individual objects
4Adv DetailedProvides detailed information for individual objects, as well as information for associated objects (Hosts, Clusters, Datastores, VMs etc)
5ComprehensiveProvides comprehensive information for individual objects, such as advanced configuration settings

The table below outlines the default and maximumInfoLevel settings for each section.

Sub-SchemaDefault SettingMaximum Setting
VMHost35
Network34
Storage34
VM34

Healthcheck

TheHealthcheck schema is used to toggle health checks on or off.

VMHost

TheVMHost schema is used to configure health checks for VMHosts.

Sub-SchemaSettingDefaultDescriptionHighlight
ConnectionStatetrue / falsetrueChecks VMHosts connection stateWarning Maintenance
Critical Disconnected
HyperThreadingtrue / falsetrueHighlights VMHosts which have HyperThreading disabledWarning HyperThreading disabled
ScratchLocationtrue / falsetrueHighlights VMHosts which are configured with the default scratch locationWarning Scratch location is /tmp/scratch
IPv6true / falsetrueHighlights VMHosts which do not have IPv6 enabledWarning IPv6 disabled
UpTimeDaystrue / falsetrueHighlights VMHosts with uptime days greater than 9 monthsWarning 9 - 12 months
Critical >12 months
Licensingtrue / falsetrueHighlights VMHosts which are using production evaluation licensesWarning Product evaluation license in use
SSHtrue / falsetrueHighlights if the SSH service is enabledWarning TSM / TSM-SSH service enabled
ESXiShelltrue / falsetrueHighlights if the ESXi Shell service is enabledWarning TSM / TSM-EsxiShell service enabled
NTPtrue / falsetrueHighlights if the NTP service has stopped or is disabled on a VMHostCritical NTP service stopped / disabled
StorageAdaptertrue / falsetrueHighlights storage adapters which are not 'Online'Warning Storage adapter status is 'Unknown'
Critical Storage adapter status is 'Offline'
NetworkAdaptertrue / falsetrueHighlights physical network adapters which are not 'Connected'
Highlights physical network adapters which are 'Down'
Critical Network adapter is 'Disconnected'
Critical Network adapter is 'Down'
LockdownModetrue / falsetrueHighlights VMHosts which do not have Lockdown mode enabledWarning Lockdown Mode disabled

Datastore

TheDatastore schema is used to configure health checks for Datastores.

Sub-SchemaSettingDefaultDescriptionHighlight
CapacityUtilizationtrue / falsetrueHighlights datastores with storage capacity utilization over 75%Warning 75 - 90% utilized
Critical >90% utilized

VM

TheVM schema is used to configure health checks for virtual machines.

Sub-SchemaSettingDefaultDescriptionHighlight
PowerStatetrue / falsetrueHighlights VMs which are powered offWarning VM is powered off
ConnectionStatetrue / falsetrueHighlights VMs which are orphaned or inaccessibleCritical VM is orphaned or inaccessible
CpuHotAddtrue / falsetrueHighlights virtual machines which have CPU Hot Add enabledWarning CPU Hot Add enabled
CpuHotRemovetrue / falsetrueHighlights virtual machines which have CPU Hot Remove enabledWarning CPU Hot Remove enabled
MemoryHotAddtrue / falsetrueHighlights VMs which have Memory Hot Add enabledWarning Memory Hot Add enabled
ChangeBlockTrackingtrue / falsetrueHighlights VMs which do not have Change Block Tracking enabledWarning Change Block Tracking disabled
SpbmPolicyCompliancetrue / falsetrueHighlights VMs which do not comply with storage based policiesWarning VM storage based policy compliance is unknown
Critical VM does not comply with storage based policies
VMToolsStatustrue / falsetrueHighlights Virtual Machines which do not have VM Tools installed, are out of date or are not runningWarning VM Tools not installed, out of date or not running
VMSnapshotstrue / falsetrueHighlights Virtual Machines which have snapshots older than 7 daysWarning VM Snapshot age >= 7 days
Critical VM Snapshot age >= 14 days

💻 Examples

# Generate an ESXi As Built Report for ESXi server 'esxi-01.corp.local' using specified credentials. Export report to HTML & DOCX formats. Use default report style. Append timestamp to report filename. Save reports to 'C:\Users\Tim\Documents'PS C:\>New-AsBuiltReport-Report VMware.ESXi-Target'esxi-01.corp.local'-Username'root'-Password'VMware1!'-Format Html,Word-OutputFolderPath'C:\Users\Tim\Documents'-Timestamp# Generate an ESXi As Built Report for ESXi server 'esxi-01.corp.local' using specified credentials and report configuration file. Export report to Text, HTML & DOCX formats. Use default report style. Save reports to 'C:\Users\Tim\Documents'. Display verbose messages to the console.PS C:\>New-AsBuiltReport-Report VMware.ESXi-Target'esxi-01.corp.local'-Username'root'-Password'VMware1!'-Format Text,Html,Word-OutputFolderPath'C:\Users\Tim\Documents'-ReportConfigFilePath'C:\Users\Tim\AsBuiltReport\AsBuiltReport.VMware.ESXi.json'-Verbose# Generate an ESXi As Built Report for ESXi server 'esxi-01.corp.local' using stored credentials. Export report to HTML & Text formats. Use default report style. Highlight environment issues within the report. Save reports to 'C:\Users\Tim\Documents'.PS C:\>$Creds=Get-CredentialPS C:\>New-AsBuiltReport-Report VMware.ESXi-Target'esxi-01.corp.local'-Credential$Creds-Format Html,Text-OutputFolderPath'C:\Users\Tim\Documents'-EnableHealthCheck# Generate a single ESXi As Built Report for ESXi servers 'esxi-01.corp.local' and 'esxi-02.corp.local' using specified credentials. Report exports to Word format by default. Apply custom style to the report. Reports are saved to the user profile folder by default.PS C:\>New-AsBuiltReport-Report VMware.ESXi-Target'esxi-01.corp.local','esxi-02.corp.local'-Username'root'-Password'VMware1!'-StylePath'C:\Scripts\Styles\MyCustomStyle.ps1'# Generate an ESXi As Built Report for ESXi server 'esxi-01.corp.local' using specified credentials. Export report to HTML & DOCX formats. Use default report style. Reports are saved to the user profile folder by default. Attach and send reports via e-mail.PS C:\>New-AsBuiltReport-Report VMware.ESXi-Target'esxi-01.corp.local'-Username'root'-Password'VMware1!'-Format Html,Word-OutputFolderPath'C:\Users\Tim\Documents'-SendEmail

About

Repository for AsBuiltReport VMware ESXi module

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp