Powershell: Convert VMware NAA value to Frame and Device ID (for vMax and Symmetrix)
Summary: Found a script to convert the naa value to device id, but not return the frame info. So I augmented it to parse that info out as well. Script Module: Function Convert-NaaIdToVmaxFrameAndDeviceId ( $naa ) { # Original -> http://vmwise.com/2012/06/01/naa-ids-and-breaking-them-apart/ if ( $naa .length -ne 36 ) { " NAA value must be 36 characters " ; break } $deviceString = $naa .ToCharArray() # Prepended w/ Frame info. $device = ( " Frame $($deviceString[20])$($deviceString[21])$($deviceString[22])$($deviceString[23]) Device " ) $device += [ char ][ Convert ]:: ToInt32 ( " $($deviceString[26])$($deviceString[27]) " , 16 ) $device += [ char ][ Convert ]:: ToInt32 ( " $($deviceString[28])$($deviceString[29]) " , 16 ) $device += [ char ][ Convert ]:: ToInt32 ( " $($deviceString[30])$($deviceString[31]) " , 16 ) $device += [ char ][ Convert ]:: ToInt32 ( " $($deviceString[32])$($de...