SYNOPSIS

nvme [<global-options>] get-property <device>
                        [--offset=<offset> | -O <offset>]
                        [--human-readable | -H]

DESCRIPTION

Reads and shows the defined NVMe controller property for NVMe over Fabric.

OPTIONS

-O <offset>
--offset=<offset>

The offset of the property. One of CAP=0x0, VS=0x8, CC=0x14, CSTS=0x1c, NSSR=0x20

-H
--human-readable

Display values in a human-readable format where possible. (deprecated, use --verbose)

GLOBAL OPTIONS

The following options are defined at the top-level nvme command and are available to this subcommand:

--dry-run

Print the command that would be executed, but do not actually execute it.

--no-ioctl-probing

Disable probing for 64-bit IOCTL support.

--no-retries

Disable retry logic on transient errors.

-o <fmt>
--output-format=<fmt>

Set the reporting format to normal, tabular, 'json, or binary. Only one output format may be used at a time.

--output-format-version=<version>

Select the output format version. Version 1 uses the original field naming, while version 2 (default) provides more consistent and script-friendly field names.

--timeout=<ms>

Set the timeout for the command in milliseconds.

-v
--verbose

Increase the level of detail in the output. May be specified multiple times to further increase verbosity.

EXAMPLES

  • The following will run the get-property command with offset 0

    # nvme get-property /dev/nvme0 --offset=0x0 --human-readable

BUGS

Currently the CAP value is truncated to 32 bits due to a limitation in the ioctl interface.

In a recent enough kernel, the 64 bit value is shown in kernel traces.

  • First enable traces by this command

    # echo 1 > /sys/kernel/debug/tracing/events/nvme/enable
  • Then look for NVMe Fabrics command (0x7f) at trace

    /sys/kernel/debug/tracing/trace

NVME

Part of the nvme-user suite