Skip to content

Commit 26f850c

Browse files
authored
Merge pull request #5 from rebelinux/v0.6.2
V0.6.2
2 parents cd40e50 + 436b00f commit 26f850c

File tree

89 files changed

+402
-520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+402
-520
lines changed

AsBuiltReport.NetApp.ONTAP.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
},
1414
"InfoLevel": {
15-
"_comment_": "0 = Disabled, 1 = Enabled / Summary, 2 = Adv Summary",
15+
"_comment_": "0 = Disabled, 1 = Enabled, 2 = Adv Summary",
1616
"Cluster": 1,
1717
"Node": 1,
1818
"Storage": 1,

AsBuiltReport.NetApp.ONTAP.psd1

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

1414
# Version number of this module.
15-
ModuleVersion = '0.6.1'
15+
ModuleVersion = '0.6.2'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# :arrows_counterclockwise: NetApp ONTAP Storage As Built Report Changelog
22

3+
## [0.6.2] - 2021-12-02
4+
5+
### Added
6+
7+
- Added more health check discovery.
8+
9+
### Changed
10+
11+
- Removes unneeded paragraph section.
12+
13+
### Fixed
14+
15+
- Fix for table caption error message "List table captions are only supported on tables with a single row"
16+
317
## [0.6.1] - 2021-12-02
418

519
### Added

README.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,18 @@
2525

2626
# NetApp ONTAP Arrays AsBuiltReport
2727

28-
NetApp ONTAP AsBuiltReport is a module of the parent "AsBuiltReport" [project](https://github.com/AsBuiltReport/AsBuiltReport). AsBuiltReport is a PowerShell module which generates As-Built documentation for many common datacentre infrastructure systems. Reports can be generated in Text, HTML and MS Word formats and can be presented with custom styling to align with your company/customer's brand.
28+
NetApp ONTAP As Built Report is a PowerShell module which works in conjunction with [AsBuiltReport.Core](https://github.com/AsBuiltReport/AsBuiltReport.Core).
2929

30-
For detailed documentation around the whole project, please refer to the `README.md` file in the parent AsBuiltReport repository (linked to above). This README is specific only to the NetApp ONTAP Array repository.
30+
[AsBuiltReport](https://github.com/AsBuiltReport/AsBuiltReport) is an open-sourced community project which utilises PowerShell to produce as-built documentation in multiple document formats for multiple vendors and technologies.
31+
32+
Please refer to the AsBuiltReport [website](https://www.asbuiltreport.com) for more detailed information about this project.
3133

3234
## :books: Sample Reports
3335

3436
### Sample Report - Custom Style 1
3537

3638
Sample NetApp ONTAP As Built report HTML file: [Sample NetApp As-Built Report.html](https://technomyth.zenprsolutions.net/wp-content/uploads/2021/11/NetApp-ONTAP-As-Built-Report.html)
3739

38-
Sample NetApp ONTAP As Built report with health checks, using custom report style.
39-
40-
![Sample NetApp ONTAP As Built Report](https://github.com/AsBuiltReport/AsBuiltReport.NetApp.ONTAP/raw/master/Samples/Sample_NetApp_Report_1.png "Sample NetApp ONTAP As Built Report")
41-
42-
### Sample Report - Custom Style 2
43-
44-
Sample NetApp ONTAP As Built report with health checks, using custom report style.
45-
46-
![Sample NetApp ONTAP As Built Report](https://github.com/AsBuiltReport/AsBuiltReport.NetApp.ONTAP/raw/master/Samples/Sample_NetApp_Report_2.png "Sample NetApp ONTAP As Built Report")
47-
48-
### Sample Report - Custom Style 3
49-
50-
Sample NetApp ONTAP As Built report with health checks, using custom report style.
51-
52-
![Sample NetApp ONTAP As Built Report](https://github.com/AsBuiltReport/AsBuiltReport.NetApp.ONTAP/raw/master/Samples/Sample_NetApp_Report_3.png "Sample NetApp ONTAP As Built Report")
53-
5440
# :beginner: Getting Started
5541

5642
Below are the instructions on how to install, configure and generate a NetApp ONTAP As Built Report
@@ -83,15 +69,27 @@ These modules may also be manually installed.
8369
| AsBuiltReport.Core | 1.1.0 | [Link](https://www.powershellgallery.com/packages/AsBuiltReport.Core) | [Link](https://github.com/AsBuiltReport/AsBuiltReport.Core/releases/latest) |
8470
| Netapp.ONTAP | 9.9.1 | [Link](https://www.powershellgallery.com/packages/NetApp.ONTAP) | |
8571

86-
### :package: Module Installation
72+
### Linux & macOS
73+
74+
- .NET Core is required for cover page image support on Linux and macOS operating systems.
75+
- [Installing .NET Core for macOS](https://docs.microsoft.com/en-us/dotnet/core/install/macos)
76+
- [Installing .NET Core for Linux](https://docs.microsoft.com/en-us/dotnet/core/install/linux)
77+
78+
❗ If you are unable to install .NET Core, you must set `ShowCoverPageImage` to `False` in the report JSON configuration file.
79+
80+
## :package: Module Installation
81+
82+
### PowerShell
8783

8884
Open a PowerShell terminal window and install each of the required modules as follows;
8985

9086
```powershell
9187
Install-Module AsBuiltReport.NetApp.ONTAP
9288
```
9389

94-
Ensure you repeat the following steps for the [system requirements](https://github.com/AsBuiltReport/AsBuiltReport.NetApp.ONTAP#wrench-system-requirements) also.
90+
### GitHub
91+
92+
If you are unable to use the PowerShell Gallery, you can still install the module manually. Ensure you repeat the following steps for the [system requirements](https://github.com/AsBuiltReport/AsBuiltReport.NetApp.ONTAP#wrench-system-requirements) also.
9593

9694
1. Download the code package / [latest release](https://github.com/AsBuiltReport/AsBuiltReport.NetApp.ONTAP/releases/latest) zip from GitHub
9795
2. Extract the zip file

Src/Private/Get-AbrOntapClusterASUP.ps1

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapClusterASUP {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -25,28 +25,31 @@ function Get-AbrOntapClusterASUP {
2525
process {
2626
$AutoSupport = Get-NcAutoSupportConfig -Controller $Array
2727
if ($AutoSupport) {
28-
$AutoSupportSummary = foreach ($NodesAUTO in $AutoSupport) {
29-
[PSCustomObject] @{
28+
$Outobj = @()
29+
foreach ($NodesAUTO in $AutoSupport) {
30+
$Inobj = [ordered] @{
3031
'Node Name' = $NodesAUTO.NodeName
3132
'Protocol' = $NodesAUTO.Transport
3233
'Enabled' = ConvertTo-TextYN $NodesAUTO.IsEnabled
3334
'Last Time Stamp' = $NodesAUTO.LastTimestampDT
3435
'Last Subject' = $NodesAUTO.LastSubject
3536
}
36-
}
37-
if ($Healthcheck.Cluster.AutoSupport) {
38-
$AutoSupportSummary | Where-Object { $_.'Enabled' -like 'No' } | Set-Style -Style Warning -Property 'Enabled'
39-
}
37+
$Outobj = [PSCustomObject]$Inobj
4038

41-
$TableParams = @{
42-
Name = "Cluster AutoSupport Status - $($ClusterInfo.ClusterName)"
43-
List = $true
44-
ColumnWidths = 25, 75
45-
}
46-
if ($Report.ShowTableCaptions) {
47-
$TableParams['Caption'] = "- $($TableParams.Name)"
39+
if ($Healthcheck.Cluster.AutoSupport) {
40+
$Outobj | Where-Object { $_.'Enabled' -like 'No' } | Set-Style -Style Warning -Property 'Enabled'
41+
}
42+
43+
$TableParams = @{
44+
Name = "Cluster AutoSupport Status - $($NodesAUTO.NodeName)"
45+
List = $true
46+
ColumnWidths = 25, 75
47+
}
48+
if ($Report.ShowTableCaptions) {
49+
$TableParams['Caption'] = "- $($TableParams.Name)"
50+
}
51+
$Outobj | Table @TableParams
4852
}
49-
$AutoSupportSummary | Table @TableParams
5053
}
5154
}
5255

Src/Private/Get-AbrOntapClusterLicense.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapClusterLicense {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -26,8 +26,6 @@ function Get-AbrOntapClusterLicense {
2626
$Nodes = Get-NcNode -Controller $Array
2727
foreach ($Node in $Nodes) {
2828
Section -Style Heading3 "$Node License Usage" {
29-
Paragraph "The following section provides per node installed licenses on $($ClusterInfo.ClusterName)."
30-
BlankLine
3129
$License = Get-NcLicense -Owner $Node -Controller $Array
3230
if ($License) {
3331
$LicenseSummary = foreach ($Licenses in $License) {

Src/Private/Get-AbrOntapEfficiencyAggr.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapEfficiencyAggr {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -40,7 +40,7 @@ function Get-AbrOntapEfficiencyAggr {
4040
}
4141

4242
$TableParams = @{
43-
Name = "Aggregate Efficiency Savings Information - $($ClusterInfo.ClusterName)"
43+
Name = "Aggregate Efficiency Savings - $($ClusterInfo.ClusterName)"
4444
List = $false
4545
ColumnWidths = 35, 15, 15, 15, 20
4646
}

Src/Private/Get-AbrOntapEfficiencyConfig.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapEfficiencyConfig {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -42,7 +42,7 @@ function Get-AbrOntapEfficiencyConfig {
4242
}
4343

4444
$TableParams = @{
45-
Name = "Storage Efficiency Savings Information - $($ClusterInfo.ClusterName)"
45+
Name = "Storage Efficiency Savings - $($ClusterInfo.ClusterName)"
4646
List = $false
4747
ColumnWidths = 30, 10, 15, 15, 15, 15
4848
}

Src/Private/Get-AbrOntapEfficiencyVol.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapEfficiencyVol {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -45,7 +45,7 @@ function Get-AbrOntapEfficiencyVol {
4545
}
4646

4747
$TableParams = @{
48-
Name = "Volume Efficiency Savings Information - $($Vserver)"
48+
Name = "Volume Efficiency Savings - $($Vserver)"
4949
List = $false
5050
ColumnWidths = 30, 15, 10, 11, 10, 12 ,12
5151
}

Src/Private/Get-AbrOntapEfficiencyVolDetailed.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapEfficiencyVolDetailed {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -46,7 +46,7 @@ function Get-AbrOntapEfficiencyVolDetailed {
4646
}
4747

4848
$TableParams = @{
49-
Name = "Volume Efficiency Savings Detailed Information - $($Vserver)"
49+
Name = "Volume Efficiency Savings Detailed - $($Vserver)"
5050
List = $false
5151
ColumnWidths = 20, 10, 10, 11, 10, 12, 12, 15
5252
}

0 commit comments

Comments
 (0)