vmware / pyvmomi

VMware vSphere API Python Bindings
Apache License 2.0
2.21k stars 766 forks source link

How to get host HBA WWN? #849

Open babywd opened 5 years ago

babywd commented 5 years ago

Use [vim.HostSystem].hardware get host info,bud host hba info not in it....please help me,3ks

moksha34 commented 4 years ago

HI, there are couple of ways to get wwn basically for the host wwn you have to access configmanager->storagesystem->storagedeviceinfo->hostbusAdapter. only problem .. it converts the hex to long int.. so you have to convert it back attached is something I quickly put together .. not efficient but will do the job. for faster results, we can use filterspec

getesxwwns.txt

CrashLaker commented 4 years ago

thank you @moksha34 saved my day