$cluster = Get-Cluster $hosti = $cluster | Get-VMHost $report333 = foreach ($esxi in $hosti) { Get-VMHosthba -VMHost $esxi -type FibreChannel | where{$_.STatus -eq 'online'} | Select @{N="Host";E={$esxi.Name}}, @{N='HBA Node WWN';E={$wwn = "{0:X}" -f $_.NodeWorldWideName; (0..7 | %{$wwn.Substring($_*2,2)}) -join ':'}}, @{N='HBA Node WWP';E={$wwp = "{0:X}" -f $_.PortWorldWideName; (0..7 | %{$wwp.Substring($_*2,2)}) -join ':'}} }