Skip to content

Commit 5a2992c

Browse files
authored
Merge pull request #73 from AsBuiltReport/dev
v1.1.3 release
2 parents b2bf457 + 0edcbdf commit 5a2992c

File tree

6 files changed

+1378
-765
lines changed

6 files changed

+1378
-765
lines changed

AsBuiltReport.VMware.vSphere.Style.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if ($AsBuiltConfig.Company.FullName) {
6060
}
6161
Table -Name 'Cover Page' -List -Style Borderless -Width 0 -Hashtable ([Ordered] @{
6262
'Author:' = $AsBuiltConfig.Report.Author
63-
'Date:' = Get-Date -Format 'dd MMMM yyyy'
63+
'Date:' = (Get-Date).ToLongDateString()
6464
'Version:' = $ReportConfig.Report.Version
6565
})
6666
PageBreak

AsBuiltReport.VMware.vSphere.json

204 Bytes
Binary file not shown.

AsBuiltReport.VMware.vSphere.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'AsBuiltReport.VMware.vSphere.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.0.7'
15+
ModuleVersion = '1.1.3'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Desktop'

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,50 @@
11
# VMware vSphere As Built Report Changelog
22

3+
## [1.1.3 - 2020-02-04]
4+
### Added
5+
- Added vCenter Server certificate information (Fix #31)
6+
- Added VM summary information
7+
- Added VM disk and guest volume information
8+
- Added Virtual Switch to VMkernel adapter information
9+
- Added Virtual Switch & Port Group Traffic Shaping information
10+
- Added vSAN Disk Groups, iSCSI Targets & LUN reporting
11+
- Added number of paths to SCSI LUN information
12+
- Added VMHost CPU & Memory totals to Informative level
13+
- Added VM Connection State information & health check
14+
- Added number of targets, devices & paths to storage adapters
15+
- Added VMHost storage and network adapter health checks
16+
- Added License expiration information
17+
- Added additional information to VMkernel adapters
18+
- Added NTP, SSH & ESXi Shell health checks
19+
20+
### Changed
21+
- Improved report formatting
22+
- Improved VMHost storage adapter reporting (Fix #32)
23+
- Improved VMHost network adapter CDP reporting
24+
- Improved VM SCSI controller reporting
25+
- Updated VMHost CPU & Memory totals/usage in Detailed level
26+
- Updated report JSON structure & default settings. A new report JSON must be generated for this release, use `New-AsBuiltReportConfig -Report VMware.vSphere -Path <path> -Overwrite`.
27+
- Updated README with minimum required privileges to generate a VMware vSphere As Built Report. Full administrator privileges should no longer be required.
28+
29+
## Fixed
30+
- Resolved issue with VMHost PCI device reporting (Fix #33)
31+
- Resolved issue with reporting of ESXi boot device size (Fix #65)
32+
- Resolved issue with vSphere licensing (Fix #68 & #69)
33+
- Resolved vSwitch reporting issue with physical adpaters (Fix #27)
34+
- Resolved issue with VMHost uptime health check reporting
35+
36+
### Removed
37+
- Removed support for ESX/ESXi hosts prior to vSphere 5.0 (Fix #67)
38+
- Removed VMHost CPU & Memory usage from Informative level
39+
340
## [1.0.7] - 2019-06-21
441
### Changed
542
- Fixed font in default VMware style
643
- Updated module manifest for icon and release notes
744

45+
### Removed
46+
- Removed Services health check
47+
848
## [1.0.6] - 2019-05-16
949
### Changed
1050
- Fixed code errors which prevented a report from being generated
@@ -30,6 +70,7 @@
3070
- Refactored into PowerShell module
3171
- Updated default VMware style sheet to include page orientation
3272
- Changed VM Snapshot reporting to be per VM for InfoLevel 3
73+
3374
### Removed
3475
- Removed NSX-V reporting
3576

README.md

Lines changed: 48 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,44 @@ Sample vSphere As Built report with health checks, using custom report style.
3535
# Getting Started
3636
Below are the instructions on how to install, configure and generate a VMware vSphere As Built report.
3737

38+
## Supported vSphere Versions
39+
The VMware vSphere As Built Report supports the following vSphere versions;
40+
- vSphere 5.0
41+
- vSphere 5.1
42+
- vSphere 5.5
43+
- vSphere 6.0
44+
- vSphere 6.5
45+
- vSphere 6.7
46+
3847
## Pre-requisites
3948
The following PowerShell modules are required for generating a VMware vSphere As Built report.
4049

4150
Each of these modules can be easily downloaded and installed via the PowerShell Gallery
4251

4352
- [VMware PowerCLI Module](https://www.powershellgallery.com/packages/VMware.PowerCLI/)
44-
- [AsBuiltReport Module](https://www.powershellgallery.com/packages/AsBuiltReport/)
53+
- [AsBuiltReport.VMware.vSphere Module](https://www.powershellgallery.com/packages/AsBuiltReport.VMware.vSphere/)
54+
55+
## Module Installation
56+
57+
Open a Windows PowerShell terminal window and install each of the required modules.
4558

46-
### Module Installation
59+
**Note:** VMware PowerCLI 10.0 or higher required.
4760

48-
Open a Windows PowerShell terminal window and install each of the required modules as follows;
4961
```powershell
50-
install-module VMware.PowerCLI
51-
install-module AsBuiltReport
62+
install-module VMware.PowerCLI -MinimumVersion 10.0
63+
install-module AsBuiltReport.VMware.vSphere
5264
```
5365

5466
### Required Privileges
5567

56-
To generate a VMware vSphere report, a user account with full administrative privileges to vCenter Server is required.
68+
The following role assigned privileges are required to generate a VMware vSphere As Built Report.
69+
70+
* Global > Licenses
71+
* Global > Settings
72+
* Host > CIM > CIM Interaction
73+
* Host > Configuration > Change Settings
74+
* Profile-driven Storage > Profile-driven storage view
75+
* VMware vSphere Update Manager > View Compliance Status
5776

5877
## Configuration
5978
The vSphere As Built Report utilises a JSON file to allow configuration of report information, options, detail and healthchecks.
@@ -94,12 +113,12 @@ The **InfoLevel** sub-schema allows configuration of each section of the report
94113
| InfoLevel | vCenter | 3
95114
| InfoLevel | ResourcePool | 3
96115
| InfoLevel | Cluster | 3
97-
| InfoLevel | VMhost | 3
116+
| InfoLevel | VMHost | 3
98117
| InfoLevel | Network | 3
99118
| InfoLevel | vSAN | 3
100119
| InfoLevel | Datastore | 3
101120
| InfoLevel | DSCluster | 3
102-
| InfoLevel | VM | 3
121+
| InfoLevel | VM | 2
103122
| InfoLevel | VUM | 3
104123

105124
There are 6 levels (0-5) of detail granularity for each section as follows;
@@ -113,8 +132,6 @@ There are 6 levels (0-5) of detail granularity for each section as follows;
113132
| 4 | Adv Detailed | provides detailed information for individual objects, as well as information for associated objects (Hosts, Clusters, Datastores, VMs etc)
114133
| 5 | Comprehensive | provides comprehensive information for individual objects, such as advanced configuration settings
115134

116-
\*\* *future release*
117-
118135
### Healthcheck
119136
The **Healthcheck** sub-schema is used to toggle health checks on or off.
120137

@@ -144,7 +161,7 @@ The **Cluster** sub-schema is used to configure health checks for vSphere Cluste
144161
| Cluster | PredictiveDRS | true / false | Highlights vSphere Clusters which do not have Predictive DRS enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Predictive DRS disabled
145162
| Cluster | DRSVMHostRules | true / false | Highlights DRS VMHost rules which are disabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) DRS VMHost rule disabled
146163
| Cluster | DRSRules | true / false | Highlights DRS rules which are disabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) DRS rule disabled
147-
| Cluster | VsanEnabled | true / false | Highlights vSphere Clusters which do not have Virtual SAN enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Virtual SAN disabled
164+
| Cluster | vSANEnabled | true / false | Highlights vSphere Clusters which do not have Virtual SAN enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Virtual SAN disabled
148165
| Cluster | EVCEnabled | true / false | Highlights vSphere Clusters which do not have Enhanced vMotion Compatibility (EVC) enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) vSphere EVC disabled
149166
| Cluster | VUMCompliance | true / false | Highlights vSphere Clusters which do not comply with VMware Update Manager baselines | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Unknown<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) Not Compliant
150167

@@ -153,16 +170,19 @@ The **VMHost** sub-schema is used to configure health checks for VMHosts.
153170

154171
| Schema | Sub-Schema | Setting | Description | Highlight |
155172
| ------ | ---------- | ------- | ----------- | --------- |
156-
| VMhost | ConnectionState | true / false | Highlights VMHosts connection state | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Maintenance<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) Disconnected
157-
| VMhost | HyperThreading | true / false | Highlights VMHosts which have HyperThreading disabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) HyperThreading disabled<br>
158-
| VMhost | ScratchLocation | true / false | Highlights VMHosts which are configured with the default scratch location | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Scratch location is /tmp/scratch
159-
| VMhost | IPv6Enabled | true / false | Highlights VMHosts which do not have IPv6 enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) IPv6 disabled
160-
| VMhost | UpTimeDays | true / false | Highlights VMHosts with uptime days greater than 9 months | ![Warning](https://placehold.it/15/FFE860/000000?text=+) 9 - 12 months<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) >12 months
161-
| VMhost | Licensing | true / false | Highlights VMHosts which are using production evaluation licenses | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Product evaluation license in use
162-
| VMhost | Services | true / false | Highlights status of important VMHost services | ![Warning](https://placehold.it/15/FFE860/000000?text=+) TSM / TSM-SSH service enabled
163-
| VMhost | TimeConfig | true / false | Highlights if the NTP service has stopped on a VMHost | ![Critical](https://placehold.it/15/FFB38F/000000?text=+) NTP service stopped
164-
| VMhost | LockdownMode | true / false | Highlights VMHosts which do not have Lockdown mode enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Lockdown Mode disabled<br>
165-
| VMhost | VUMCompliance | true / false | Highlights VMHosts which are not compliant with VMware Update Manager software packages | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Unknown<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) Incompatible
173+
| VMHost | ConnectionState | true / false | Highlights VMHosts connection state | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Maintenance<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) Disconnected
174+
| VMHost | HyperThreading | true / false | Highlights VMHosts which have HyperThreading disabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) HyperThreading disabled<br>
175+
| VMHost | ScratchLocation | true / false | Highlights VMHosts which are configured with the default scratch location | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Scratch location is /tmp/scratch
176+
| VMHost | IPv6 | true / false | Highlights VMHosts which do not have IPv6 enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) IPv6 disabled
177+
| VMHost | UpTimeDays | true / false | Highlights VMHosts with uptime days greater than 9 months | ![Warning](https://placehold.it/15/FFE860/000000?text=+) 9 - 12 months<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) >12 months
178+
| VMHost | Licensing | true / false | Highlights VMHosts which are using production evaluation licenses | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Product evaluation license in use
179+
| VMHost | SSH | true / false | Highlights if the SSH service is enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) TSM / TSM-SSH service enabled
180+
| VMHost | ESXiShell | true / false | Highlights if the ESXi Shell service is enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) TSM / TSM-EsxiShell service enabled
181+
| VMHost | NTP | true / false | Highlights if the NTP service has stopped or is disabled on a VMHost | ![Critical](https://placehold.it/15/FFB38F/000000?text=+) NTP service stopped / disabled
182+
| VMHost | StorageAdapter | true / false | Highlights storage adapters which are not 'Online' | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Storage adapter status is 'Unknown'<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) Storage adapter status is 'Offline'
183+
| VMHost | NetworkAdapter | true / false | Highlights physical network adapters which are not 'Connected'<br> Highlights physical network adapters which are 'Down' | ![Critical](https://placehold.it/15/FFB38F/000000?text=+) Network adapter is 'Disconnected'<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) Network adapter is 'Down'
184+
| VMHost | LockdownMode | true / false | Highlights VMHosts which do not have Lockdown mode enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Lockdown Mode disabled<br>
185+
| VMHost | VUMCompliance | true / false | Highlights VMHosts which are not compliant with VMware Update Manager software packages | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Unknown<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) Incompatible
166186

167187
#### vSAN
168188
The **vSAN** sub-schema is used to configure health checks for vSAN.
@@ -190,13 +210,14 @@ The **VM** sub-schema is used to configure health checks for virtual machines.
190210

191211
| Schema | Sub-Schema | Setting | Description | Highlight |
192212
| ------ | ---------- | ------- | ----------- | --------- |
193-
| VM | PoweredOn | true / false | Enables/Disables checking if the VM is powered on | ![Warning](https://placehold.it/15/FFE860/000000?text=+) VM is powered off
194-
| VM | CpuHotAddEnabled | true / false | Highlights virtual machines which have CPU Hot Add enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) CPU Hot Add enabled
195-
| VM | CpuHotRemoveEnabled | true / false | Highlights virtual machines which have CPU Hot Remove enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) CPU Hot Remove enabled
196-
| VM | MemoryHotAddEnabled | true / false | Highlights VMs which have Memory Hot Add enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Memory Hot Add enabled
197-
| VM | ChangeBlockTrackingEnabled | true / false | Highlights VMs which do not have Change Block Tracking enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Change Block Tracking disabled
213+
| VM | PowerState | true / false | Enables/Disables checking if the VM is powered on | ![Warning](https://placehold.it/15/FFE860/000000?text=+) VM is powered off
214+
| VM | ConnectionState | true / false | Enables/Disables checking if the VM is orphaned or inaccessible | ![Critical](https://placehold.it/15/FFB38F/000000?text=+) VM is orphaned or inaccessible
215+
| VM | CpuHotAdd | true / false | Highlights virtual machines which have CPU Hot Add enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) CPU Hot Add enabled
216+
| VM | CpuHotRemove | true / false | Highlights virtual machines which have CPU Hot Remove enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) CPU Hot Remove enabled
217+
| VM | MemoryHotAdd | true / false | Highlights VMs which have Memory Hot Add enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Memory Hot Add enabled
218+
| VM | ChangeBlockTracking | true / false | Highlights VMs which do not have Change Block Tracking enabled | ![Warning](https://placehold.it/15/FFE860/000000?text=+) Change Block Tracking disabled
198219
| VM | SpbmPolicyCompliance | true / false | Highlights VMs which do not comply with storage based policies | ![Warning](https://placehold.it/15/FFE860/000000?text=+) VM storage based policy compliance is unknown<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) VM does not comply with storage based policies
199-
| VM | VMToolsOK | true / false | Highlights Virtual Machines which do not have VM Tools installed, are out of date or are not running | ![Warning](https://placehold.it/15/FFE860/000000?text=+) VM Tools not installed, out of date or not running
220+
| VM | VMToolsStatus | true / false | Highlights Virtual Machines which do not have VM Tools installed, are out of date or are not running | ![Warning](https://placehold.it/15/FFE860/000000?text=+) VM Tools not installed, out of date or not running
200221
| VM | VMSnapshots | true / false | Highlights Virtual Machines which have snapshots older than 7 days | ![Warning](https://placehold.it/15/FFE860/000000?text=+) VM Snapshot age >= 7 days<br> ![Critical](https://placehold.it/15/FFB38F/000000?text=+) VM Snapshot age >= 14 days
201222

202223

@@ -223,8 +244,6 @@ New-AsBuiltReport -Target 'vcenter-01.corp.local' -Username 'administrator@vsphe
223244
```
224245

225246
## Known Issues
226-
- Verbose script errors when connecting to vCenter with a Read-Only user account.
227-
- A user account with administrator privileges to vCenter Server is required to generate a VMware vSphere report.
228247

229248
- Error message _"Unable to determine the identity of the domain"_ when saving a report.
230249
- Issue relates to [Isolated Storage](http://rekiwi.blogspot.com/2008/12/unable-to-determine-identity-of-domain.html) and occurs when generating large reports.

0 commit comments

Comments
 (0)