NVME-OCP-GET-ERRO(1)
π nvme-ocp-get-error-injection(1) β from the NVMe Manual, bestie π
okay so you found the page for nvme-ocp-get-error-injection in the NVMe Manual, and honestly? it's giving "short but mighty." let's get into it π
β¨ NAME β¨
nvme-ocp-get-error-injection β returns the set of error injection π«Ά
πΈ SYNOPSIS πΈ
nvme [<global-options>] ocp get-error-injection <device> [--no-uuid | -n]
[--sel=<select> | -s <select>] [--all-ns | -a]
π¦ DESCRIPTION π¦
Return set of error injection. that's the whole vibe β¨
the <device> parameter is mandatory and it's an NVMe character device (ex: /dev/nvme0) β you literally cannot skip it, bestie π
β real talk: this only works on OCP compliant devices that support this feature. results for any other device are undefined β like, not "oops it errored," actually undefined. so pls know your device π
on success it returns 0, error code otherwise.
π OPTIONS π
-n,--no-uuidβ do not try to automatically detect the UUID index for this command (required for old OCP 1.0 support, iykyk)-s <select>,--sel=<select>β the Select (SEL) field, which specifies which value of the attributes gets returned in the provided data π:0β name:current, description:Current1β name:default, description:Default2β name:saved, description:Saved3β name:supported, description:Supported capabilities
-a,--all-nsβ send the command to all namespaces. this option is used to specify whether to target all namespaces or no specific namespace. it's required for OCP 2.0 only devices, and optional for OCP 2.5 π
β GLOBAL OPTIONS β
these live at the top-level nvme command and are available to this subcommand, no cap:
--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 tonormal,tabular,'json, orbinary. only one output format may be used at a time (yes, the quote really is in there β copy it exactly, bestie π)--output-format-version=<version>β select the output format version. version1uses the original field naming, while version2(the default) provides more consistent and script-friendly field names. other versions are rejected π--quietβ suppress informational messages. errors are still reported, and--quietcancels any--verbosefor the library log level--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π--timeout=<ms>β set the timeout for the command in milliseconds.infiniteor-1waits without a time limit (0xffffffff)-v,--verboseβ increase the level of detail in the output. may be specified multiple times to further increase verbosity π₯
π§ these options can also be set as machine-wide defaults in nvme-cli.conf(5). a command-line flag always overrides the file. periodt.
πΊ EXAMPLES πΊ
- has the program issue a get-error-injection to retrieve the
0xC0get features π
# nvme ocp get-error-injection /dev/nvme0
π NVME π
part of the nvme-user suite. iconic behavior, honestly π
and that's the page, bestie!! brought to you by the NVMe suite, version dated 10/30/2026 β go forth and get those error injections πβ¨π
π¦ 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