You could try something like this
Get-VMHost -PipelineVariable esx | Get-ScsiLun -LunType disk -PipelineVariable lun | Get-ScsiLunPath |
Select @{N='ESX';E={$esx.Name}},
@{N='LUN';E={$lun.CanonicalName}},
LunPath,State
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference