Edit

Share via


Get-PmemPhysicalDevice

Gets the physical devices associated with persistent memory.

Syntax

AllDevices (Default)

Get-PmemPhysicalDevice
    [<CommonParameters>]

ByDeviceId

Get-PmemPhysicalDevice
    [[-DeviceId] <String[]>]
    [<CommonParameters>]

ByPmemDisk

Get-PmemPhysicalDevice
    [-LogicalDisk <PmemDisk>]
    [<CommonParameters>]

ByDiskNumber

Get-PmemPhysicalDevice
    [-DiskNumber <UInt32>]
    [<CommonParameters>]

ByInputObject

Get-PmemPhysicalDevice
    [-InputObject <CimInstance>]
    [<CommonParameters>]

Description

The Get-PmemPhysicalDevice cmdlet gets the physical devices associated with persistent memory.

Examples

Example 1: Get physical devices that have persistent memory

Get-PmemPhysicalDevice
DeviceId DeviceType           HealthStatus OperationalStatus PhysicalLocation FirmwareRevision Persistent memory size Volatile
                                                                                                                      memory size
-------- ----------           ------------ ----------------- ---------------- ---------------- ---------------------- --------------
1020     Intel INVDIMM device Healthy      {Ok}              CPU2_DIMM_C1     102005310        126 GB                 0 GB
1120     Intel INVDIMM device Healthy      {Ok}              CPU2_DIMM_F1     102005310        126 GB                 0 GB
120      Intel INVDIMM device Healthy      {Ok}              CPU1_DIMM_F1     102005310        126 GB                 0 GB
20       Intel INVDIMM device Healthy      {Ok}              CPU1_DIMM_C1     102005310        126 GB                 0 GB

This command gets all the physical devices with persistent memory.

Example 2: Get physical device for a persistent memory disk

(Get-PmemDisk)[0] | Get-PmemPhysicalDevice
DeviceId DeviceType           HealthStatus OperationalStatus PhysicalLocation FirmwareRevision Persistent memory size Volatile memory size
-------- ----------           ------------ ----------------- ---------------- ---------------- ---------------------- --------------------
20       Intel INVDIMM device Healthy      {Ok}              CPU1_DIMM_C1     102005310        126 GB                 0 GB
120      Intel INVDIMM device Healthy      {Ok}              CPU1_DIMM_F1     102005310        126 GB                 0 GB

This example uses the Get-PmemDisk cmdlet to get a persistent memory disk and gets the physical device for that disk.

Parameters

-DeviceId

Specifies the device ID of the physical device to get.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByDeviceId
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DiskNumber

Specifies the disk number of persistent memory disk. The cmdlet gets the physical device for that disk.

Parameter properties

Type:UInt32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByDiskNumber
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Specifies the input object that is used in a pipeline command.

Parameter properties

Type:CimInstance
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByInputObject
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-LogicalDisk

Specifies a logical persistent memory disk. The cmdlet gets the physical device for that disk.

Parameter properties

Type:PmemDisk
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByPmemDisk
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Storage.PersistentMemory.Management.PmemDisk

CimInstance

Outputs

Microsoft.Storage.PersistentMemory.Management.PmemPhysicalDevice