PowerShell
The following script can be used in PowerShell to get the Serial Number for either physical or virtualized host:
Windows PowerShell:
$AllDevices = gwmi -Class Win32_DiskDrive -Namespace 'root\CIMV2'
ForEach ($Device in $AllDevices) {
if($Device.Model -like 'PURE FlashArray*') {
@{
Name=$Device.Name;
Caption=$Device.Caption;
Index=$Device.Index;
SerialNo=$Device.SerialNumber;
} | Format-Table -AutoSize
}
}
Example Output:
Name Value
---- -----
Caption PURE FlashArray Multi-Path Disk Device
Name \\.\PHYSICALDRIVE1
SerialNo 95DAA3D006E43D8F0001C15C
Index 1
Name Value
---- -----
Caption PURE FlashArray Multi-Path Disk Device
Name \\.\PHYSICALDRIVE2
SerialNo 95DAA3D006E43D8F00013D18
Index 2
Name Value
---- -----
Caption PURE FlashArray Multi-Path Disk Device
Name \\.\PHYSICALDRIVE3
SerialNo 95DAA3D006E43D8F00013D1A
Index 3
Source: Pure Support Community via Barkz : Getting LUN ID from the Windows Disk ID and Back Again
VMware
For VMware, the serial number from Pure would correlate to the NAA identifier.
Identifying disks when working with VMware ESXi/ESX (1014953)