NVME-ADMIN-PASSTHR(1) | NVMe Manual | NVME-ADMIN-PASSTHR(1) |
NAME¶
nvme-admin-passthru - Submit an arbitrary admin command, return results
SYNOPSIS¶
nvme-admin-passthru <device> [--opcode=<opcode> | -O <opcode>]
[--flags=<flags> | -f <flags>] [-rsvd=<rsvd> | -R <rsvd>]
[--namespace-id=<nsid> | -n <nsid>] [--cdw2=<cdw2> | -2 <cdw2>]
[--cdw3=<cdw3> | -3 <cdw3>] [--cdw10=<cdw10> | -4 <cdw10>]
[--cdw11=<cdw11> | -5 <cdw11>] [--cdw12=<cdw12> | -6 <cdw12>]
[--cdw13=<cdw13> | -7 <cdw13>] [--cdw14=<cdw14> | -8 <cdw14>]
[--cdw15=<cdw15> | -9 <cdw15>]
[--data-len=<data-len> | -l <data-len>]
[--metadata-len=<len> | -m <len>]
[--input-file=<file> | -i <file>]
[--read | -r] [--write | -w]
[--timeout=<timeout> | -t <timeout>]
[--show-command | -s]
[--dry-run | -d]
[--raw-binary | -b]
[--prefill=<prefill> | -p <prefill>]
[--latency | -T]
[--output-format=<fmt> | -o <fmt>] [--verbose | -v]
DESCRIPTION¶
Submits an arbitrary NVMe admin command and returns the applicable results. This may be the simply the commands result and status, or may also include a buffer if the command returns one. This command does no interpretation of the opcodes or options.
The <device> parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1).
On success, the returned structure (if applicable) may be returned in one of several ways depending on the option flags; the structure may printed by the program as a hex dump, or may be returned as a raw buffer printed to stdout for another program to parse.
OPTIONS¶
-O <opcode>, --opcode=<opcode>
-f <flags>, --flags=<flags>
-R <rsvd>, --rsvd=<rsvd>
-n <nsid>, --namespace-id=<nsid>
-[2-9] <cdw>, --cdw[2-3,10-15]=<cdw>
-r, --read, -w, --write
-i <file>, --input-file=<file>
-l <data-len>, --data-len=<data-len>
-m <data-len>, --metadata-len=<data-len>
-s, --show-cmd
-d, --dry-run
-b, --raw-binary
-p, --prefill
-T, --latency
-o <fmt>, --output-format=<fmt>
-v, --verbose
-t <timeout>, --timeout=<timeout>
EXAMPLES¶
# nvme admin-passthru /dev/nvme0 --opcode=06 --data-len=4096 --cdw10=1 -r
# nvme admin-passthru /dev/nvme0 --opcode=06 --data-len=4096 --cdw10=1 -r -b > id_ns.raw
NVME¶
Part of the nvme-user suite
10/31/2024 | NVMe |