NVME-LOG-PERSISTEN(1)
π NVME-LOG-PERSISTEN(1) π
okay bestie, welcome to the NVMe Manual page for nvme-log-persistent-event. this one is literally about grabbing the persistent event log page from your NVMe device and handing you back the result and log. slay. π¦
β¨ NAME β¨
nvme-log-persistent-event β Send NVMe persistent event log page request, returns result and log. π
πΈ SYNOPSIS πΈ
nvme [<global-options>] log persistent-event <device>
[--action=<action> | -a <action>]
[--log-len=<log-len> | -l <log-len>]
[--raw-binary | -b]
π DESCRIPTION π
Retrieves the NVMe persistent event log page from an NVMe device and provides the returned structure. it's giving "ask the device for the log, receive the log." iconic behavior, no cap. β¨
The <device> parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1). you gotta point it at the right device, bestie. π«Ά
On success, the returned persistent event log structure may be returned in one of several ways depending on the option flags; the structure may be parsed by the program and printed in a readable format or the raw buffer may be printed to stdout for another program to parse. choose your adventure, but the flags decide the vibe. π
π OPTIONS π
-a <action>,--action=<action>β when it tries to retrieve this log, this is the action the controller shall take during processing this persistent log page command. this is a mandatory field, and based on the value issued it may Read Log Data, Establish Context and Read Log Data or Release Context can occur. For More details see NVM Express 1.4 Spec. Section 5.14.1.13 Persistent Event Log (Log Identifier 0Dh). iykyk π«Ά-l <log-len>,--log-len=<log-len>β allocates a buffer of<log-len>bytes size and requests this many bytes be returned in the constructed NVMe command. this param is mandatory. if<log-len>given is0and action is0, it will read the Total Log Length(TLL) of the page. periodt π-b,--raw-binaryβ print the raw persistent event log buffer to stdout. raw raw raw, no filter, just bytes β¨
π 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. it's giving rehearsal, not the actual show π--no-ioctl-probingβ disable probing for 64-bit IOCTL support. no probing, bestie π«--no-retriesβ disable retry logic on transient errors. one shot only π-o <fmt>,--output-format=<fmt>β set the reporting format tonormal,tabular,'json, orbinary. only one output format may be used at a time. choose ur fighter, but only one π--output-format-version=<version>β select the output format version. version1uses the original field naming, while version2(default) provides more consistent and script-friendly field names. other versions are rejected. v2 is the main character, v1 is nostalgia π--quietβ suppress informational messages. errors are still reported, and--quietcancels any--verbosefor the library log level. shhh π€« but errors still get to speak.--set-options=<key=value>[,<key=value>...]β set libnvme library options for this invocation. supported keys areforce-4k,mi-probe-enabled,test-base-dirandtest-sysfs-dir. key=value era π--timeout=<ms>β set the timeout for the command in milliseconds.infiniteor-1waits without a time limit (0xffffffff). patient queen energy β³-v,--verboseβ increase the level of detail in the output. may be specified multiple times to further increase verbosity. the way that more is more π£οΈβ¨
These options can also be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file. file says one thing, flag says another, flag wins π
π EXAMPLES π
- Print the persistent event log page in a human readable format:
# nvme log persistent-event /dev/nvme0
- Print the raw persistent event log to a file:
# nvme log persistent-event /dev/nvme0 --raw-binary > persistent_log.raw
β οΈ It is probably a bad idea to not redirect stdout when using this mode. do not let the raw bytes just spill out into your terminal, bestie π
π NVME π
Part of the nvme-user suite. periodt π
π source/version: NVMe manual β’ date: 10/30/2026 β’ page: NVME-LOG-PERSISTEN(1) β bestie out! π
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms