Finding the vSphere NAA from VML

I was looking for a way to corelate an disk NAA with the VMware VML. This script will give you all the information that is needed.  VMware Communities

 

$esxName = “myEsx”

$esx = Get-VMHost $esxName

$esx.ExtensionData.Config.StorageDevice.ScsiLun |

Select @{N=”ESX”;E={$esx.Name}},

CanonicalName,

@{N=”VML”;E={$_.Descriptor | where {$_.Id -match “^vml”} | Select -ExpandProperty Id}}

Leave a comment

Blog at WordPress.com.

Up ↑