Tuesday, June 7, 2011

Daily PowerCLI SnipIt - List all WWNs for all HBAs on a host

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

1 comments:

Arvinth said...

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