Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 244951

Re: Get-VMhostHBA WWN

$
0
0

Found the earlier postings and came up with this:

 

$hosthba = Get-VMHostHBA -type FibreChannel | Select VMHost,Device,PortWorldWideName

 

foreach ($hostwwn in $hosthba){

$hostwwn.PortWorldWideName = "{0:x}" -f $hostwwn.PortWorldWideName

}

$hosthba | Sort VMHost,Device | export-csv hbainfo.csv -notypeinformation

 

 

Yours is much more elegant than mine as usual!


Viewing all articles
Browse latest Browse all 244951

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>