NVME-OCP-PERSISTEN(1)
π NVME-OCP-PERSISTEN(1) β like, the nvme-ocp-persistent-event-log of it all π
okay so bestie, this is a page from the NVMe Manual, and it's about nvme-ocp-persistent-event-log β yes that's a whole mouthful, i know, but stay with me π
β¨ NAME β¨
nvme-ocp-persistent-event-log β sends an NVMe persistent event log page request, hands you back the result, and also gives you the extra OCP-specific data on top π«Ά
πΈ SYNOPSIS πΈ
nvme [<global-options>] ocp persistent-event-log <device>
[--action=<action> | -a <action>]
[--log-len=<log-len> | -l <log-len>]
[--raw-binary | -b]
π¦ DESCRIPTION π¦
So what it does: it fetches the NVMe persistent event log page off your NVMe device and gives you the returned structure back. Iconic. β¨
The <device> parameter is mandatory (no skipping it, diva), and it can be either the NVMe character device (ex: /dev/nvme0) or a namespace block device (ex: /dev/nvme0n1).
When it works, the returned persistent event log structure comes back in one of several ways depending on the option flags you picked β either the program parses that structure and prints it in a readable format, or it prints the raw buffer to stdout so some other program can parse it. Choose your fighter π
π₯ OPTIONS π₯
-a <action>,--action=<action>β this is the action the controller shall take while it's trying to retrieve this log, during processing of this persistent log page command. It's a mandatory field, and depending on the value you issue, it may be Read Log Data, Establish Context and Read Log Data, or Release Context. Want the lore? See NVM Express 1.4 Spec. Section 5.14.1.13 Persistent Event Log (Log Identifier 0Dh) π-l <log-len>,--log-len=<log-len>β allocates a buffer of<log-len>bytes and requests that many bytes be returned in the constructed NVMe command. This param is mandatory. Sneaky little detail: if<log-len>given is0and action is0, it will read the Total Log Length (TLL) of the page π-b,--raw-binaryβ prints the raw persistent event log buffer to stdout. no thoughts, just bytes π
π GLOBAL OPTIONS π
These bad boys are defined at the top-level nvme command and are available to this subcommand too:
--dry-runβ prints the command that would be executed, but does not actually execute it. all the vibes, none of the consequences π--no-ioctl-probingβ disables probing for 64-bit IOCTL support.--no-retriesβ disables retry logic on transient errors.-o <fmt>,--output-format=<fmt>β sets the reporting format tonormal,tabular,json, orbinary. Only one output format at a time, bestie, we do not share π―--output-format-version=<version>β selects the output format version. Version1uses the original field naming, while version2(the default) gives you more consistent and script-friendly field names. Any other versions get rejected, periodt π«--quietβ suppresses informational messages. Errors are still reported, and--quietcancels any--verbosefor the library log level. shhh π€«--set-options=<key=value>[,<key=value>...]β sets libnvme library options for this invocation. The supported keys areforce-4k,mi-probe-enabled,test-base-dirandtest-sysfs-dir.--timeout=<ms>β sets the timeout for the command in milliseconds.infiniteor-1waits without a time limit (0xffffffff). it will literally wait forever for you, that's devotion π₯Ή-v,--verboseβ increases the level of detail in the output. May be specified multiple times to further increase verbosity. stack it like your skincare routine π§
Also: these options can be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file. the flag wins, every time, no cap π
β EXAMPLES β
- Print the persistent event log page in a human readable format:
# nvme ocp persistent-event-log /dev/nvme0
- Print the raw persistent event log to a file:
# nvme ocp persistent-event-log /dev/nvme0 --raw-binary > persistent_log.raw
ngl it's probably a bad idea to not redirect stdout when you're using this mode. like. genuinely. redirect it. π
π NVME π
Part of the nvme-user suite. one of us, one of us π
and that's the whole page, bestie π this little gem comes to you from NVMe, dated 10/30/2026 β go forth and read those persistent event logs, you absolute main character ππ¦
π¦ 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