Skip to content

Commit 75afb88

Browse files
authored
Merge pull request #44 from MicKBfr/dev
New Metrocluster option
2 parents 8a678dc + ce472b1 commit 75afb88

File tree

3 files changed

+42
-33
lines changed

3 files changed

+42
-33
lines changed

AsBuiltReport.NetApp.ONTAP.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
},
1111
"Options": {
1212
"Exclude": {
13-
"Vserver": []
13+
"Vserver": [],
14+
"MetroCluster": false
1415
}
1516
},
1617
"InfoLevel": {

README.md

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ The ONTAP Storage As Built Report supports the following ONTAP versions;
5757

5858
This report is compatible with the following PowerShell versions;
5959

60-
| PowerShell 5.1 | PowerShell 7 |
61-
|:----------------------:|:---------------:|
62-
| :white_check_mark: | :white_check_mark:|
60+
| PowerShell 5.1 | PowerShell 7 |
61+
| :----------------: | :----------------: |
62+
| :white_check_mark: | :white_check_mark: |
6363

6464
## :wrench: System Requirements
6565

@@ -124,49 +124,50 @@ The following provides information of how to configure each schema within the re
124124

125125
The **Report** schema provides configuration of the NetApp ONTAP report information.
126126

127-
| Sub-Schema | Setting | Default | Description |
128-
|---------------------|--------------|--------------------------------|--------------------------------------------------------------|
129-
| Name | User defined | NetApp ONTAP As Built Report | The name of the As Built Report |
130-
| Version | User defined | 1.0 | The report version |
131-
| Status | User defined | Released | The report release status |
132-
| ShowCoverPageImage | true / false | true | Toggle to enable/disable the display of the cover page image |
133-
| ShowTableOfContents | true / false | true | Toggle to enable/disable table of contents |
134-
| ShowHeaderFooter | true / false | true | Toggle to enable/disable document headers & footers |
135-
| ShowTableCaptions | true / false | true | Toggle to enable/disable table captions/numbering |
127+
| Sub-Schema | Setting | Default | Description |
128+
| ------------------- | ------------ | ---------------------------- | ------------------------------------------------------------ |
129+
| Name | User defined | NetApp ONTAP As Built Report | The name of the As Built Report |
130+
| Version | User defined | 1.0 | The report version |
131+
| Status | User defined | Released | The report release status |
132+
| ShowCoverPageImage | true / false | true | Toggle to enable/disable the display of the cover page image |
133+
| ShowTableOfContents | true / false | true | Toggle to enable/disable table of contents |
134+
| ShowHeaderFooter | true / false | true | Toggle to enable/disable document headers & footers |
135+
| ShowTableCaptions | true / false | true | Toggle to enable/disable table captions/numbering |
136136

137137
### Options
138138

139139
The **Options** schema allows certain options within the report to be toggled on or off.
140-
| Sub-Schema | Setting | Default | Description |
141-
|-----------------|--------------|---------|-----------------------------------------------------------------|
142-
| Exclude: Vserver | Array List | Empty | Allow to filter on Vserver Name
140+
| Sub-Schema | Setting | Default | Description |
141+
| --------------------- | ------------ | ------- | -------------------------------------------------- |
142+
| Exclude: Vserver | Array List | Empty | Allow to filter on Vserver Name |
143+
| Exclude: MetroCluster | true / false | false | Allow to filter automatically all Vserver with -mc |
143144

144145
### InfoLevel
145146

146147
The **InfoLevel** schema allows configuration of each section of the report at a granular level. The following sections can be set.
147148

148149
There are 3 levels (0-2) of detail granularity for each section as follows;
149150

150-
| Setting | InfoLevel | Description |
151-
|:-------:|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------|
152-
| 0 | Disabled | Does not collect or display any information |
153-
| 1 | Enabled / Summary | Provides summarised information for a collection of objects |
154-
| 2 | Adv Summary | Provides condensed, detailed information for a collection of objects |
151+
| Setting | InfoLevel | Description |
152+
| :-----: | ----------------- | -------------------------------------------------------------------- |
153+
| 0 | Disabled | Does not collect or display any information |
154+
| 1 | Enabled / Summary | Provides summarised information for a collection of objects |
155+
| 2 | Adv Summary | Provides condensed, detailed information for a collection of objects |
155156

156157
The table below outlines the default and maximum **InfoLevel** settings for each section.
157158

158-
| Sub-Schema | Default Setting | Maximum Setting |
159-
|--------------|:---------------:|:---------------:|
160-
| Cluster | 1 | 2 |
161-
| Node | 1 | 2 |
162-
| Storage | 1 | 2 |
163-
| Network | 1 | 2 |
164-
| License | 1 | 2 |
165-
| Vserver | 1 | 2 |
166-
| Efficiency | 1 | 2 |
167-
| Security | 1 | 2 |
168-
| System | 1 | 2 |
169-
| Replication | 1 | 2 |
159+
| Sub-Schema | Default Setting | Maximum Setting |
160+
| ----------- | :-------------: | :-------------: |
161+
| Cluster | 1 | 2 |
162+
| Node | 1 | 2 |
163+
| Storage | 1 | 2 |
164+
| Network | 1 | 2 |
165+
| License | 1 | 2 |
166+
| Vserver | 1 | 2 |
167+
| Efficiency | 1 | 2 |
168+
| Security | 1 | 2 |
169+
| System | 1 | 2 |
170+
| Replication | 1 | 2 |
170171

171172
### Healthcheck
172173

Src/Public/Invoke-AsBuiltReport.NetApp.ONTAP.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
6969
}
7070
$ClusterInfo = Get-NcCluster -Controller $Array
7171

72+
#If metrocluster option remove all -mc vserver
73+
if ($Options.Exclude.MetroCluster) {
74+
$Options.Exclude.Vserver = $Options.Exclude.Vserver + (Get-NcVserver | Where-Object { $_ -like '*-mc' }).Vserver
75+
$exclude_vserver = $Options.Exclude.Vserver
76+
Write-PScriboMessage "exclude vserver = $exclude_vserver"
77+
}
78+
7279
#---------------------------------------------------------------------------------------------#
7380
# Cluster Section #
7481
#---------------------------------------------------------------------------------------------#

0 commit comments

Comments
 (0)