list-tokens

Syntax

tadm list-tokens common_options [--all] --config=config_name

Description

Use this command to list all PKCS#11 tokens.

Options

For information about common_options, run the help command.

--all|-l

If you specify this option, the command displays information whether the tokens are enabled and if the token PIN is saved in the server.xml file for each PKCS#11 token.

--config|-c

Specify the name of the configuration to list all the tokens.

Example

tadm list-tokens --user=admin --password-file=./admin.passwd 
--host=admin.example.com --port=8989 --no-prompt 
--config=www.example.org

Exit Codes

The following exit values are returned:

0: command executed successfully

>0: error in executing the command

For more information about exit codes and syntax notations, run the help command.

See Also

help, get-pkcs11-prop, set-pkcs11-prop, set-token-prop, set-token-pin