From f269c630254714af8cd43f416274bb3caafeb77d Mon Sep 17 00:00:00 2001 From: Jonathan Colon Date: Sat, 14 May 2022 14:43:23 -0400 Subject: [PATCH] More changes to allow vserver filtering --- Src/Private/Get-AbrOntapNetworkMGMT.ps1 | 4 ++-- Src/Private/Get-AbrOntapSecuritySSLDetailed.ps1 | 4 ++-- Src/Private/Get-AbrOntapSecuritySSLVserver.ps1 | 4 ++-- Src/Private/Get-AbrOntapSysConfigDNS.ps1 | 4 ++-- Src/Public/Invoke-AsBuiltReport.NetApp.ONTAP.ps1 | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Src/Private/Get-AbrOntapNetworkMGMT.ps1 b/Src/Private/Get-AbrOntapNetworkMGMT.ps1 index 039c670..a210b19 100755 --- a/Src/Private/Get-AbrOntapNetworkMGMT.ps1 +++ b/Src/Private/Get-AbrOntapNetworkMGMT.ps1 @@ -5,7 +5,7 @@ function Get-AbrOntapNetworkMgmt { .DESCRIPTION .NOTES - Version: 0.6.3 + Version: 0.6.4 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux @@ -159,7 +159,7 @@ function Get-AbrOntapNetworkMgmt { } try { Section -Style Heading6 'Data Network Interfaces' { - $ClusterData = Get-NcNetInterface -Controller $Array | Where-Object {$_.Role -eq 'data' -and $_.DataProtocols -ne 'fcp'} + $ClusterData = Get-NcNetInterface -Controller $Array | Where-Object {$_.Role -eq 'data' -and $_.DataProtocols -ne 'fcp' -and $_.Vserver -notin $options.Exclude.Vserver} $ClusterObj = @() if ($ClusterData) { foreach ($Item in $ClusterData) { diff --git a/Src/Private/Get-AbrOntapSecuritySSLDetailed.ps1 b/Src/Private/Get-AbrOntapSecuritySSLDetailed.ps1 index 7a279b6..66f516a 100755 --- a/Src/Private/Get-AbrOntapSecuritySSLDetailed.ps1 +++ b/Src/Private/Get-AbrOntapSecuritySSLDetailed.ps1 @@ -5,7 +5,7 @@ function Get-AbrOntapSecuritySSLDetailed { .DESCRIPTION .NOTES - Version: 0.6.3 + Version: 0.6.4 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux @@ -24,7 +24,7 @@ function Get-AbrOntapSecuritySSLDetailed { process { try { - $Data = Get-NcSecurityCertificate -Controller $Array | Where-Object {$_.Type -eq "server"} + $Data = Get-NcSecurityCertificate -Controller $Array | Where-Object {$_.Type -eq "server" -and $_.Vserver -notin $Options.Exclude.Vserver} $OutObj = @() if ($Data) { foreach ($Item in $Data) { diff --git a/Src/Private/Get-AbrOntapSecuritySSLVserver.ps1 b/Src/Private/Get-AbrOntapSecuritySSLVserver.ps1 index ee42718..4f97fb6 100755 --- a/Src/Private/Get-AbrOntapSecuritySSLVserver.ps1 +++ b/Src/Private/Get-AbrOntapSecuritySSLVserver.ps1 @@ -5,7 +5,7 @@ function Get-AbrOntapSecuritySSLVserver { .DESCRIPTION .NOTES - Version: 0.6.3 + Version: 0.6.4 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux @@ -24,7 +24,7 @@ function Get-AbrOntapSecuritySSLVserver { process { try { - $Data = Get-NcSecuritySsl -Controller $Array + $Data = Get-NcSecuritySsl -Controller $Array | Where-Object {$_.Vserver -notin $Options.Exclude.Vserver} $OutObj = @() if ($Data) { foreach ($Item in $Data) { diff --git a/Src/Private/Get-AbrOntapSysConfigDNS.ps1 b/Src/Private/Get-AbrOntapSysConfigDNS.ps1 index 8e3922d..eef5e79 100755 --- a/Src/Private/Get-AbrOntapSysConfigDNS.ps1 +++ b/Src/Private/Get-AbrOntapSysConfigDNS.ps1 @@ -5,7 +5,7 @@ function Get-AbrOntapSysConfigDNS { .DESCRIPTION .NOTES - Version: 0.6.3 + Version: 0.6.4 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux @@ -24,7 +24,7 @@ function Get-AbrOntapSysConfigDNS { process { try { - $Data = Get-NcNetDns -Controller $Array + $Data = Get-NcNetDns -Controller $Array | Where-Object {$_.Vserver -notin $Options.Exclude.Vserver} $OutObj = @() if ($Data) { foreach ($Item in $Data) { diff --git a/Src/Public/Invoke-AsBuiltReport.NetApp.ONTAP.ps1 b/Src/Public/Invoke-AsBuiltReport.NetApp.ONTAP.ps1 index 63a1587..06f2250 100755 --- a/Src/Public/Invoke-AsBuiltReport.NetApp.ONTAP.ps1 +++ b/Src/Public/Invoke-AsBuiltReport.NetApp.ONTAP.ps1 @@ -647,7 +647,7 @@ function Invoke-AsBuiltReport.NetApp.ONTAP { Get-AbrOntapSysConfigWebStatus } } - if (Get-NcNetDns -Controller $Array) { + if (Get-NcNetDns -Controller $Array | Where-Object {$_.Vserver -notin $Options.Exclude.Vserver}) { Section -Style Heading3 'DNS Configuration' { Get-AbrOntapSysConfigDNS }