SYNOPSIS

tpm_nvread [\s-1OPTIONS\s0]

DESCRIPTION

tpm_nvread reads data from an \s-1NVRAM\s0 area and either displays them or writes them into a file. The user must provide the index of the \s-1NVRAM\s0 area. If the user provided the number of bytes to read then this will be the maximum number of bytes that will be read from the \s-1NVRAM\s0 area, otherwise the whole \s-1NVRAM\s0 area will be read. Some \s-1NVRAM\s0 areas only allow read sizes of zero, i.e., \s-1NVRAM\s0 area with index 0. Optionally an offset into the \s-1NVRAM\s0 area can be given where the reading of the data is to start. If the \s-1NVRAM\s0 area has permission bits set that require owner or \s-1NVRAM\s0 area authentication, then the password must be provided via the password option.

The following options are supported:

-h, --help

Display command usage info.

-v, --version

Display command version info.

-l, --log [none|error|info|debug]

Set logging level.

-u, --unicode

Use \s-1TSS\s0 \s-1UNICODE\s0 encoding for passwords to comply with applications using \s-1TSS\s0 popup boxes

-z, --well-known

Use a secret of all zeros (20 bytes of zeros) as either the \s-1NVRAM\s0 area or owner secret.

-p, --password

Depending on what type of authentication is required for the \s-1NVRAM\s0 area, this must either be the \s-1NVRAM\s0 area or owner password. A password may be directly provided for example by using '--password=password' or '-ppassword'. If no password is provided then the program will prompt the user for the password.

-i, --index

The index of the \s-1NVRAM\s0 area. The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

-s, --size

The number of bytes to read from the \s-1NVRAM\s0 area. The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

-n, --offset (optional parameter)

The offset into the \s-1NVRAM\s0 area from where to start reading. The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

-f, --filename (optional parameter)

The name of a file the read data will be written into. If no filename is given the data will be printed to stdout.

RELATED TO tpm_nvread…

REPORTING BUGS

Report bugs to <[email protected]>