bernz
Enthusiast
Enthusiast

PowerCLI to export HA Multipath of ESX

Hi

Can someone share script for exporting into CSV HA multipath details and status of all ESX within a cluster?

5 Replies
LucD
Leadership
Leadership

You mean the multipath status for all LUNs on all ESXi nodes in all clusters ?

Not sure what you mean with the "status" though.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Akopylov
Commander
Commander

Hello. How about:

Get-cluster -name name_of_cluster | Get-VMHost | foreach {Get-ScsiLun -LunType disk -VmHost $_} | select-object vmhost,canonicalname,multipathpolicy,consoledevicename | Export-Csv C:\lun.csv

0 Kudos
bernz
Enthusiast
Enthusiast

Hi LucD

Thanks for responding...

I need a report for all LUN/DEVICE/DATASTORE/DISK of all ESXi hosts within a cluster, showing multipathing, display name or NAA id, Policy, Operation state, All path (eg. vmhba0, vmhba1, vmhbaX) with state showing active or standby.

Apprciate your help.

0 Kudos
dzak64
Enthusiast
Enthusiast

Any luck with this request?

0 Kudos
LucD
Leadership
Leadership

In that case I assume my LUN report – datastore, RDM and node visibilityscript could be a good start.

Or do you have something completely different in mind?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference