Canonical names of the LUNS that are available

Hello, maybe it is simple: How can I get it back, with powercli, information on the available LUNS that can be added on an esx (glance in the attachment to understand what I mean)?

Basically, I need to get a list of canonical of all LUN names that can be added. I don't have the canonical names of the LUNs already created as data stores.

Thx a lot and sorry for the bad English

To find the Canonicalname free LUNS on an ESXi server, you can do

$esx = Get-VMHost MyEsx* $storMgr = Get-View $esx.ExtensionData.ConfigManager.DatastoreSystem
$storMgr.QueryAvailableDisksForVmfs($null) | Select -ExpandProperty CanonicalName

Tags: VMware

Similar Questions

Maybe you are looking for