NVME-SHOW-HOSTNQN(1)

πŸ’… NVME-SHOW-HOSTNQN πŸ’…

okay bestie, welcome to the nvme-show-hostnqn page β€” part of the NVMe Manual, and honestly? it's a short one, so we're gonna get through it together and you're gonna feel so smart after 🫢


✨ NAME ✨

nvme-show-hostnqn β€” show the host NQN that's configured for the system πŸ‘‘


✨ SYNOPSIS ✨

nvme [<global-options>] show-hostnqn

that's it. that's the whole vibe. no cap 🌸


✨ DESCRIPTION ✨

So the whole point of this one: it shows the host NQN that's configured for the system. Slay, that's the job. πŸ’–

But here's the little plot twist you need to know about: if /usr/local/etc/nvme/hostnqn is not present, and systemd application-specific machine IDs are available, then this will show the systemd-generated host NQN for the system. so the systemd girlies get their moment too 🧚✨


✨ OPTIONS ✨

πŸ’… GLOBAL OPTIONS πŸ’…

These following options are defined up at the top-level nvme command, and they're available to this subcommand too β€” they trickle down, main character energy πŸ‘‘

  • --dry-run β€” prints the command that would be executed, but doesn't actually execute it. like a rehearsal, but for your terminal πŸŽ€
  • --no-ioctl-probing β€” disables probing for 64-bit IOCTL support. no poking around, we're just not doing it πŸ™ˆ
  • --no-retries β€” disables the retry logic on transient errors. one shot, one opportunity 😭
  • -o <fmt>, --output-format=<fmt> β€” sets the reporting format to normal, tabular, json, or binary. only one output format at a time, bestie β€” you can't collect them all πŸ’€
  • --output-format-version=<version> β€” picks the output format version. version 1 uses the original field naming, while version 2 (the default, and honestly the icon) gives you more consistent and script-friendly field names. any other version? rejected. no discussion πŸ”₯
  • --quiet β€” suppresses informational messages. errors are still reported, and heads up: --quiet cancels any --verbose for the library log level. it's giving "silence, but make it honest" 🀫
  • --set-options=<key=value>[,<key=value>...] β€” sets libnvme library options for this invocation. supported keys are force-4k, mi-probe-enabled, test-base-dir and test-sysfs-dir. mix and match, comma-separated, go off ⭐
  • --timeout=<ms> β€” sets the timeout for the command in milliseconds. infinite or -1 waits without a time limit (0xffffffff) β€” literally forever, no clock-watching πŸ’œ
  • -v, --verbose β€” increases the level of detail in the output. you can specify it multiple times to crank the verbosity even further. more flag = more lore 🌈
lowkey important note: these options can also be set as machine-wide defaults in nvme-cli.conf(5). and a command-line flag always overrides the file. always. periodt πŸ’…

✨ EXAMPLES ✨

nvme show-hostnqn

that's the example. run it, get your host NQN, live your life πŸ¦‹


✨ NVME ✨

Part of the nvme-user suite. yeah, she's in the family πŸ‘‘


and that's the page!! πŸŽ€ fr fr you now understand nvme-show-hostnqn better than most people. this little slice of the NVMe manual is dated 10/30/2026, so go forth, be iconic, and show that host NQN bestie πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from