NVME-REGISTRY-RETR(1)
π NVME-REGISTRY-RETR(1) β the nvme manual, but make it cute
okay so bestie, you're looking at a page from the NVMe Manual and honestly? this one's a little snack. it does exactly one thing and it does it slay. let's get into it π
β¨ NAME β¨
nvme-registry-retrieve β read an attribute from a controller's registry entry. that's the whole vibe. one attribute, one file, in and out, no drama π
πΈ SYNOPSIS πΈ
nvme [<global-options>] registry retrieve <device>
--attr=<ATTR> | -a <ATTR>
π¦ DESCRIPTION π¦
so here's the tea, bestie π΅ β this command reads a single attribute from the ownership registry entry of an NVMe-oF controller. one attribute. not two. we're being decisive today.
and where does this registry live? under /run/nvme/registry/, and the way it's structured is genuinely iconic: it's one directory per live controller, and inside each one there's one plain-text file per attribute. so like, for example, /run/nvme/registry/nvme3/owner. directory β controller, file β attribute. simple. clean. we love a filesystem moment β¨
the <device> bit is the NVMe controller name (think nvme3, that kind of energy), and you pass it as a positional argument. and the /dev/ prefix? totally optional. with it, without it, doesn't matter, she's flexible π«Ά
π OPTIONS π
-a <ATTR>,--attr=<ATTR>β the attribute name you wanna retrieve (likeowner, ornote). this one is required, no cap, you literally cannot skip it π
π GLOBAL OPTIONS π
okay so these aren't exclusive to this subcommand β they're defined up at the top-level nvme command, and this subcommand gets to borrow them. main character options, honestly π
--dry-runβ prints out the command that would be executed, but does not actually execute it. it's giving window shopping ποΈ--no-ioctl-probingβ turns off probing for 64-bit IOCTL support.--no-retriesβ disables the retry logic on transient errors. one shot, no second chances π-o <fmt>,--output-format=<fmt>β sets the reporting format tonormal,tabular,json, orbinary. only one output format at a time, bestie, we're not greedy.--output-format-version=<version>β picks the output format version. version1uses the original field naming, while version2(that's the default) gives you more consistent and script-friendly field names. any other version? rejected. politely but firmly π«--quietβ suppresses informational messages. errors are still reported (she's quiet, not oblivious), and--quietcancels any--verbosefor the library log level.--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) β literally forever, no clock, just vibes β³-v,--verboseβ increases the level of detail in the output. and yes, you can specify it multiple times to crank the verbosity even higher. stacking buffs π₯
also! these options can be set as machine-wide defaults in nvme-cli.conf(5). and a command-line flag always overrides the file. flag supremacy, periodt π
β EXAMPLES β
- retrieve the
ownerofnvme3:
# nvme registry retrieve nvme3 --attr owner
stas
and it just hands you stas. no ceremony, no extra output, just the answer. we stan a concise queen π
π§ SEE ALSO π§
nvme-registry-list(1) nvme-registry-update(1) nvme-registry-delete(1)
go read those too, they're the rest of the registry friend group π
π NVME π
part of the nvme-user suite. iykyk β¨
and that's the page!! this lil icon was brought to you by NVMe, dated 10/30/2026 β mwah, go read a registry attribute, you absolute legend ππ π₯
π¦ 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