tss2_nvread(1)

NAME ✨

Okay so tss2_nvread(1) β€” straight from the General Commands Manual, bestie. The NAME line is literally tss2_nvread(1) - and then… nothing else. That's the whole section. We move. πŸ’…

SYNOPSIS πŸŽ€

tss2_nvread [OPTIONS]

SEE ALSO πŸ¦‹

  • fapi-config(5) β€” use this to adjust Fapi parameters like the used cryptographic profile and TCTI, or directories for the Fapi metadata storages. 🫢
  • fapi-profile(5) β€” use this to determine the cryptographic algorithms and parameters for all keys and operations of a specific TPM interaction, like the name hash algorithm, the asymmetric signature algorithm, scheme and parameters, and PCR bank selection. πŸ‘‘

DESCRIPTION πŸ’…

tss2_nvread(1) reads the entire data from an NV index of the TPM. The way that it does exactly that? Iconic. Slay. ✨

OPTIONS 🌸

These are the options, and yes, we're keeping every one β€” no cap:

  • -f, --force β€” force overwriting the output file. πŸ’₯
  • -o, --data=FILENAME or - (for stdout) β€” returns the value read from the NV space. 🫢
  • -p, --nvPath=STRING β€” identifies the NV space to read. πŸ”
  • -l, --logData=FILENAME or - (for stdout) β€” returns the JSON encoded log, if the NV index is of type β€œextend” and an empty string otherwise. Optional parameter. πŸŽ€

COMMON OPTIONS πŸ‘‘

This collection of options is common to all tss2 programs and provides information that many users may expect. Highkey useful, ngl:

  • -h, --help [man|no-man] β€” displays the tool's manpage. Here's the whole saga:
    • By default, it attempts to invoke the manpager for the tool; on failure, it will output a short tool summary.
    • This is the same behavior if the man option argument is specified.
    • However, if explicit man is requested, the tool will provide errors from man on stderr.
    • If the no-man option is specified, or the manpager fails, the short options will be output to stdout.
    • To successfully use the manpages feature requires the manpages to be installed or on MANPATH; see man(1) for more details. πŸ“š
  • -v, --version β€” displays version information for this tool, supported tctis and exit. πŸ‘‹

EXAMPLE πŸ“

A little example, served fresh β€” copy it exactly, iykyk:

tss2_nvread --nvPath=/nv/Owner/myNV --data=data.file

RETURNS ⭐

0 on success or 1 on failure. That's the whole return vibe, fr fr.

BUGS πŸ’€

Github Issues β€” that's the section, bestie. No cap.

HELP 🫢

See the Mailing List.

License πŸ“œ

This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).


Cute sign-off: tpm2-tools β€’ APRIL 2019 β€’ tss2_nvread(1) πŸ’–

πŸ“¦ where this page comes from