Src/Private/Get-AbrOntapNetworkFailoverGroup.ps1
function Get-AbrOntapNetworkFailoverGroup { <# .SYNOPSIS Used by As Built Report to retrieve NetApp ONTAP Failover Group information from the Cluster Management Network .DESCRIPTION .NOTES Version: 0.6.3 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux .EXAMPLE .LINK #> [CmdletBinding()] param ( ) begin { Write-PscriboMessage "Collecting ONTAP Failover Group information." } process { try { $FG = Get-NcNetFailoverGroup -Controller $Array $FGObj = @() if ($FG) { foreach ($Item in $FG) { try { $inObj = [ordered] @{ 'Name' = $Item.FailoverGroup 'Vserver' = $Item.Vserver 'Target' = $Item.Target } $FGObj += [pscustomobject]$inobj } catch { Write-PscriboMessage -IsWarning $_.Exception.Message } } $TableParams = @{ Name = "Network Failover Group - $($ClusterInfo.ClusterName)" List = $false ColumnWidths = 30, 30, 40 } if ($Report.ShowTableCaptions) { $TableParams['Caption'] = "- $($TableParams.Name)" } $FGObj | Table @TableParams } } catch { Write-PscriboMessage -IsWarning $_.Exception.Message } } end {} } |