Get Cluster HBA Info

 

VM Icon

 

This is really just a one liner to grab the WWN of the Host Bus Adapters on a vSphere cluster group.  First off if you copy and past this make sure no line breaks come over it is all one line.  Your also not going to be able just run this bad boy on your PowerCli session.  At the very begging of the command where it says "Your-Cluster-Name" your going to have to plug in your own cluster name.  If you leave the export-csv cmdlet on the end of the command you might want to cahnge the ".csv" output file name. I wrote this a long time ago and I only used it in a Fiber based environment so your mileage may vary.  Take the export-csv off the command and let it dump out to the terminal.  This way you can tweak what you are getting if you do want to eventually add a file based output at the end. It always help me when my buddies on the storage team would ask me to confirm the WWN on their management software.  Apparently on the solution they were using for fabric management they had to manual enter this information. :(

 

 

 

 

 

GitHub Link to script: ESX-GetHBAInfo.ps1