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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: