Get a list of all WWNs for all HBAs in ESX01.domain.com
Connect-VIServer MYVISERVER
$ESXHost = get-vmhost "ESX01.domain.com" | Get-View
$storageSystem = get-view $ESXHost.ConfigManager.StorageSystem
$storageSystem.StorageDeviceInfo.HostbusAdapter | select Device, Model,
PortWorldWideName, NodeWorldWideName
~ Joe San
Tuesday, June 7, 2011
Subscribe to:
Post Comments (Atom)
1 comments:
Hey Joe,
this is very usefull, i tried to search for these kind of script to get WWNs for all the HBAs in all the hosts but I was not successfull
Can you help me out in this.. with a simple script
Post a Comment