I decided to figure out how to document the HBAs and WWNs
for all of my fiber channel connections on all of my standalone ESXi host. This was a quick solution based off of a
previous script I found and modified. I
used that same methodology to come up with this.
Start of script
Import-Csv C:\temp\ESXi_Server_Names.csv | foreach {
Connect-viServer
-server $_.Server -User root -Password “your password”
Get-VMHostHba
| Select-Object
VMHost,Status,Device,PCI,Model,NodeWorldWideName,PortWorldWideName |
Format-Table * | Out-File C:\Temp\ESXi_HBA.txt -Width 300 -Append
Disconnect-VIserver
* -confirm:$false }
End of script
No comments:
Post a Comment