OS Manuals

/usr/bin/swtpm_bios

Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface

From swtpm 0.10.2-r5 (enterprise-packages), captured 2026-11-08 by running swtpm_bios --help (exit 1). permalink

/usr/bin/swtpm_bios: unrecognized option '--help'
TPM emulator BIOS emulator version 0.10.2, Copyright (c) 2015 IBM Corp.

/usr/bin/swtpm_bios [options]

Runs TPM_Startup (unless -n), then (unless -o) sets PP, enable, activate
and finally (using -u) gives up physical presence (PP)

The following options are supported:
	--tpm-device <device>  use the given device; default is /dev/tpm0
	--tcp [<host>]:[<prt>] connect to TPM on given host and port;
	                       default host is 127.0.0.1, default port is 6545
	--unix <path>          connect to TPM using UnixIO socket
	--tpm2                 initialize a TPM2
	-c                     startup clear (default)
	-s                     startup state
	-d                     startup deactivate (no effect on TPM2)
	-n                     no startup
	-o                     startup only
	-cs                    run TPM_ContinueSelfTest on TPM1.2
	                       run TPM2_IncrementalSelfTest on TPM2
	-ea                    make sure that the TPM 1.2 is activated;
	                       terminate with exit code 129 if the TPM
	                       needs to be reset
	-u                     give up physical presence
	                       on TPM 2 set the platform hierarchy to a
	                       random password
	-v                     display version and exit
	-h                     display this help screen and exit
Options (15)
OptionDescriptionSource
--tpm-device deviceUse the given device rather than the default /dev/tpm0.help + man
--unix pathconnect to TPM using UnixIO sockethelp + man
--tpm2initialize a TPM2help
-cSend TPM_Startup(ST_CLEAR) (default).help + man
-sSend TPM_Startup(ST_STATE).help + man
-dstartup deactivate (no effect on TPM2)help + man
-nDon't send a TPM_Startup command.help + man
-oOnly send the startup command and nothing else.help + man
-csSend a TPM_ContinueSelfTest command to a TPM 1.2 and a TPM2_IncrementalSelfTest command to a TPM 2.help + man
-eamake sure that the TPM 1.2 is activated;help + man
-ugive up physical presence on TPM 2 set the platform hierarchy to a random passwordhelp + man
-vDisplay version and exit.help + man
-hdisplay this help screen and exithelp + man
--tcp server>:<portConnect to the given server and port; (in the manual page but not in --help)man
-tpm2The device is a TPM 2. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.