Skip to content

Commit d36e28b

Browse files
committed
A parameter issue is showing about HTTPS error #35
1 parent fbac2a9 commit d36e28b

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
55
.DESCRIPTION
66
Documents the configuration of NetApp ONTAP in Word/HTML/Text formats using PScribo.
77
.NOTES
8-
Version: 0.6.5
8+
Version: 0.6.6
99
Author: Jonathan Colon Feliciano
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -56,12 +56,12 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
5656
$OntapModuleInstalledVersion = Get-Module -ListAvailable -Name NetApp.ONTAP -ErrorAction SilentlyContinue | Sort-Object -Property Version -Descending | Select-Object -First 1 -ExpandProperty Version
5757
Write-PScriboMessage "Connecting to NetApp Storage '$OntapArray'."
5858
if ($OntapModuleInstalledVersion.Minor -gt 10) {
59-
# Workaround for NetApp.ONTAP v9.11+ RESAPI Issues
59+
# Workaround for NetApp.ONTAP v9.11+ REST API Issues
6060
Write-PScriboMessage "Detected NetApp.ONTAP module version $($OntapModuleInstalledVersion.toString()). Enabling ONTAPI option."
61-
$Array = Connect-NcController -Name $OntapArray -Credential $Credential -ErrorAction Stop -HTTPS -ONTAPI
61+
$Array = Connect-NcController -Name $OntapArray -Credential $Credential -ErrorAction Stop -ONTAPI
6262
} else {
6363
Write-PScriboMessage "Detected NetApp.ONTAP module version $($OntapModuleInstalledVersion.toString()). Disabling ONTAPI option."
64-
$Array = Connect-NcController -Name $OntapArray -Credential $Credential -ErrorAction Stop -HTTPS
64+
$Array = Connect-NcController -Name $OntapArray -Credential $Credential -ErrorAction Stop
6565
}
6666
} Catch {
6767
Write-Verbose "Unable to connect to the $OntapArray Array"
@@ -374,12 +374,12 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
374374
BlankLine
375375
Get-AbrOntapVserverNFSSummary -Vserver $SVM
376376
if ($InfoLevel.Vserver -ge 2) {
377-
Section -Style Heading6 "NFS Options" {
377+
Section -ExcludeFromTOC -Style Heading6 "NFS Options" {
378378
Get-AbrOntapVserverNFSOption -Vserver $SVM
379379
}
380380
}
381381
if (Get-NcVserver -VserverContext $SVM -Controller $Array | Where-Object { $_.VserverType -eq 'data' -and $_.AllowedProtocols -eq 'nfs' -and $_.State -eq 'running' } | Get-NcNfsExport) {
382-
Section -Style Heading6 "NFS Volume Export" {
382+
Section -ExcludeFromTOC -Style Heading6 "NFS Volume Export" {
383383
Get-AbrOntapVserverNFSExport -Vserver $SVM
384384
}
385385
}
@@ -394,33 +394,33 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
394394
BlankLine
395395
Get-AbrOntapVserverCIFSSummary -Vserver $SVM
396396
if ($InfoLevel.Vserver -ge 2) {
397-
Section -Style Heading6 'CIFS Service Configuration' {
397+
Section -ExcludeFromTOC -Style Heading6 'CIFS Service Configuration' {
398398
Get-AbrOntapVserverCIFSSecurity -Vserver $SVM
399399
}
400-
Section -Style Heading6 'CIFS Domain Controller' {
400+
Section -ExcludeFromTOC -Style Heading6 'CIFS Domain Controller' {
401401
Get-AbrOntapVserverCIFSDC -Vserver $SVM
402402
}
403403
}
404-
Section -Style Heading6 'CIFS Local Group' {
404+
Section -ExcludeFromTOC -Style Heading6 'CIFS Local Group' {
405405
Get-AbrOntapVserverCIFSLocalGroup -Vserver $SVM
406406
}
407-
Section -Style Heading6 'CIFS Local Group Members' {
407+
Section -ExcludeFromTOC -Style Heading6 'CIFS Local Group Members' {
408408
Get-AbrOntapVserverCIFSLGMember -Vserver $SVM
409409
}
410410
if ($InfoLevel.Vserver -ge 2) {
411-
Section -Style Heading6 'CIFS Options' {
411+
Section -ExcludeFromTOC -Style Heading6 'CIFS Options' {
412412
Get-AbrOntapVserverCIFSOption -Vserver $SVM
413413
}
414414
}
415-
Section -Style Heading6 'CIFS Share' {
415+
Section -ExcludeFromTOC -Style Heading6 'CIFS Share' {
416416
Get-AbrOntapVserverCIFSShare -Vserver $SVM
417417
}
418-
Section -Style Heading6 'CIFS Share Configuration' {
418+
Section -ExcludeFromTOC -Style Heading6 'CIFS Share Configuration' {
419419
Get-AbrOntapVserverCIFSShareProp -Vserver $SVM
420420
}
421421
if ($InfoLevel.Vserver -ge 2) {
422422
if (Get-NcCifsSession -VserverContext $SVM -Controller $Array) {
423-
Section -Style Heading6 'CIFS Sessions' {
423+
Section -ExcludeFromTOC -Style Heading6 'CIFS Sessions' {
424424
Get-AbrOntapVserverCIFSSession -Vserver $SVM
425425
}
426426
}
@@ -435,13 +435,13 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
435435
Paragraph "The following section provides the ISCSI Service Information on $($SVM)."
436436
BlankLine
437437
Get-AbrOntapVserverIscsiSummary -Vserver $SVM
438-
Section -Style Heading6 "ISCSI Interfaces" {
438+
Section -ExcludeFromTOC -Style Heading6 "ISCSI Interfaces" {
439439
Get-AbrOntapVserverIscsiInterface -Vserver $SVM
440440
}
441441

442442
$ISCSIClientInitiators = Get-AbrOntapVserverIscsiInitiator -Vserver $SVM
443443
if ($ISCSIClientInitiators) {
444-
Section -Style Heading6 "ISCSI Client Initiators" {
444+
Section -ExcludeFromTOC -Style Heading6 "ISCSI Client Initiators" {
445445
$ISCSIClientInitiators
446446
}
447447
}
@@ -455,10 +455,10 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
455455
Paragraph "The following section provides the FCP Service Information on $($SVM)."
456456
BlankLine
457457
Get-AbrOntapVserverFcpSummary -Vserver $SVM
458-
Section -Style Heading6 'FCP Physical Adapter' {
458+
Section -ExcludeFromTOC -Style Heading6 'FCP Physical Adapter' {
459459
Get-AbrOntapVserverFcpAdapter
460460
}
461-
Section -Style Heading6 'FCP Interfaces' {
461+
Section -ExcludeFromTOC -Style Heading6 'FCP Interfaces' {
462462
Get-AbrOntapVserverFcpInterface -Vserver $SVM
463463
}
464464
}
@@ -472,12 +472,12 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
472472
BlankLine
473473
Get-AbrOntapVserverLunStorage -Vserver $SVM
474474
if (Get-NcIgroup -Vserver $SVM -Controller $Array) {
475-
Section -Style Heading6 'Igroup Mapping' {
475+
Section -ExcludeFromTOC -Style Heading6 'Igroup Mapping' {
476476
Get-AbrOntapVserverLunIgroup -Vserver $SVM
477477
}
478478
$NonMappedLun = Get-AbrOntapVserverNonMappedLun -Vserver $SVM
479479
if ($Healthcheck.Vserver.Status -and $NonMappedLunFCP) {
480-
Section -Style Heading6 'HealthCheck - Non-Mapped Lun Information' {
480+
Section -ExcludeFromTOC -Style Heading6 'HealthCheck - Non-Mapped Lun Information' {
481481
Paragraph "The following section provides information of Non Mapped Lun on $($SVM)."
482482
BlankLine
483483
$NonMappedLun
@@ -496,7 +496,7 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
496496
BlankLine
497497
Get-AbrOntapVserverCGSummary -Vserver $SVM
498498
foreach ($CG in $CGs) {
499-
Section -Style Heading6 "$($CG.name) Luns" {
499+
Section -ExcludeFromTOC -Style Heading6 "$($CG.name) Luns" {
500500
Get-AbrOntapVserverCGLun -CGObj $CG
501501
}
502502
}
@@ -511,7 +511,7 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
511511
Paragraph "The following section provides the S3 Service Information on $($SVM)."
512512
BlankLine
513513
Get-AbrOntapVserverS3Summary -Vserver $SVM
514-
Section -Style Heading6 'S3 Buckets' {
514+
Section -ExcludeFromTOC -Style Heading6 'S3 Buckets' {
515515
Get-AbrOntapVserverS3Bucket -Vserver $SVM
516516
}
517517
}
@@ -545,7 +545,7 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
545545
Section -Style Heading5 'SnapMirror Relationship' {
546546
Get-AbrOntapRepRelationship
547547
if ($InfoLevel.Replication -ge 2) {
548-
Section -Style Heading6 'SnapMirror Replication History' {
548+
Section -ExcludeFromTOC -Style Heading6 'SnapMirror Replication History' {
549549
Get-AbrOntapRepHistory
550550
}
551551
}
@@ -581,7 +581,7 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
581581
BlankLine
582582
Get-AbrOntapEfficiencyAggr
583583
foreach ($SVM in $Vservers) {
584-
$VolFilter = Get-ncvol -VserverContext $SVM -Controller $Array | Where-Object {$_.State -eq "online"}
584+
$VolFilter = Get-NcVol -VserverContext $SVM -Controller $Array | Where-Object {$_.State -eq "online"}
585585
if (Get-NcEfficiency -Volume $VolFilter.Name -Controller $Array | Where-Object {$_.Name -ne "vol0"}) {
586586
Section -Style Heading4 "$SVM Vserver Volume Deduplication" {
587587
Get-AbrOntapEfficiencyVolSisStatus -Vserver $SVM
@@ -675,7 +675,7 @@ function Invoke-AsBuiltReport.NetApp.ONTAP {
675675
Get-AbrOntapSecuritySnapLockVol
676676
if ($InfoLevel.Security -ge 2) {
677677
if (Get-Ncvol -Controller $Array | Where-Object {$_.VolumeSnaplockAttributes.SnaplockType -in "enterprise","compliance"}) {
678-
Section -Style Heading6 'Snaplock Volume Attributes' {
678+
Section -ExcludeFromTOC -Style Heading6 'Snaplock Volume Attributes' {
679679
Get-AbrOntapSecuritySnapLockVollAttr
680680
}
681681
}

0 commit comments

Comments
 (0)