Src/Private/Get-AbrOntapVserverIscsiInitiator.ps1
function Get-AbrOntapVserverIscsiInitiator { <# .SYNOPSIS Used by As Built Report to retrieve NetApp ONTAP Vserver ISCSI ClientInitiators information from the Cluster Management Network .DESCRIPTION .NOTES Version: 0.4.0 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux .EXAMPLE .LINK #> [CmdletBinding()] param ( ) begin { Write-PscriboMessage "Collecting ONTAP Vserver ISCSI Client Initiators information." } process { $VserverData = Get-NcIscsiInitiator $VserverObj = @() if ($VserverData) { foreach ($Item in $VserverData) { $inObj = [ordered] @{ 'Initiator Name' = $Item.InitiatorNodeName 'Target Port Group' = $Item.TpGroupName 'Vserver' = $Item.Vserver } $VserverObj += [pscustomobject]$inobj } $TableParams = @{ Name = "ISCSI Client Initiator Information - $($ClusterInfo.ClusterName)" List = $false ColumnWidths = 55, 30, 15 } if ($Report.ShowTableCaptions) { $TableParams['Caption'] = "- $($TableParams.Name)" } $VserverObj | Table @TableParams } } end {} } |