Response from the developer  --- OK, you're getting the hex serial on the ESXi side, you just need to match up to DeviceID rather than serial on the Compellent side. $a = '6000d310005267000000000000000017' # Connect to array $SCConnect = Get-SCConnection -Hostname $array -user $user -pass $pw # Get the lun $vol = get-scvolume | Where {$_.DeviceID -eq $a} That way you won't have to go through all the transformations and hassle; it should be clean. ---
Hi, I have a compellent array and I carved out a volume (lun) from it and exposed it to ESXi host. On the ESXi host, the lun serial that I am seeing is: 6000d310005267000000000000000017 however, on the compellent UI itself the lun serial is shown as '00005267-00000017'. As I am writing some powershell scripts which work only with the lun serial seen on the UI, I am trying to figure out how to convert the longer serial into the shorter on. Any help would be greatly appreciated !  
Match lun serial on ESX with the serial seen on Compellent UI