ndctl-list (1) - Linux Manuals

ndctl-list: dump the platform nvdimm device topology and attributes in json


ndctl-list - dump the platform nvdimm device topology and attributes in json


ndctl list [<options>]

Walk all the nvdimm buses in the system and list all attached devices along with some of their major attributes.

Options can be specified to limit the output to devices of a certain class. Where the classes are buses, dimms, regions, and namespaces. By default, ndctl list with no options is equivalent to:

ndctl list --namespaces --bus=all --region=all


# ndctl list --buses --namespaces



-r, --region=

A regionX device name, or a region id number. The keyword all can be specified to carry out the operation on every region in the system, optionally filtered by bus id (see --bus= option).

-b, --bus=

Enforce that the operation only be carried on devices that are attached to the given bus. Where bus can be a provider name or a bus id number.

-d, --dimm=

An nmemX device name, or dimm id number. Filter listing by devices that reference the given dimm. For example to see all namespaces comprised of storage capacity on nmem0:

# ndctl list --dimm=nmem0 --namespaces

-n, --namespace=

An namespaceX.Y device name, or namespace region plus id tuple X.Y. Limit the namespace list to the single identified device if present.

-t, --type=

Filter listing by region type (pmem or blk)

-B, --buses

Include bus info in the listing

-D, --dimms

Include dimm info in the listing

-H, --health

Include dimm health info in the listing. For example:


-R, --regions

Include region info in the listing

-N, --namespaces

Include namespace info in the listing. Namespace info is listed by default if no other options are specified to the command.

-i, --idle

Include idle (not enabled) devices in the listing