Skip to main content
Common Reference

tpm ask

Version availability

Available in 7.0.0 and later.

tpm ask can be used to query values from the common configuration

Usage
tpm ask [args] [context] [value_or_function_name] [argument]

[context] is optional and can be one of the following:

OptionDescriptionVersion
allExtract every available variable from the perl common object.
certsDisplay information about certificates including expiry dates.7.1.0
certtpm
Aliases: certlocations
Display reference information about the security.properties file.7.1.0
commonExtract the variable from the perl common object. This is the default if no context is supplied.
functionExtract the return value of the named function from within the perl_common object. You may specify an optional argument to the function.
functionsExtract the available function names from the perl common object.
keysExtract all available variable names from the perl common object.

[argument] can be one of the following:

OptionDescriptionVersion
--allstagesDisplay stages of the replicators for all roles.7.0.2
--apiUse the v2 API REST interface instead of the command line when possible
--debug
Aliases: -d
Debug mode.
--dsroleDisplay local datasource role.7.0.2
--dsstateDisplay local datasource state.7.0.2
--help
Aliases: -h
Show the help page.
--human
Aliases: -n
Convert values 0 and false to No, and values 1 and true to Yes as human output.7.2.0
--info
Aliases: -i
--nodeinfoDisplay state and role of local datasource and replicator7.0.2
--path
Aliases: -p
Pass full path to replicator executables e.g. /opt/replicator/tungsten/tungsten-replicator/bin
--quiet
Aliases: -q
--service
Aliases: -s
Supply the service name if required for dsrole, dsstate and trstate.7.2.0
--stagesDisplay stages of the local replicator7.0.2
--test
Aliases: -t
--thlPath and name of thl executable (Ignores --path if also supplied)
--trepctlPath and name of trepctl executable (Ignores --path if also supplied)
--trroleDisplay local replicator role.7.0.2
--trstateDisplay local replicator state.7.0.2
-vVerbose output.
short
Aliases: -S
7.2.0

Examples:

shell> tpm ask keys
shell> tpm ask all
shell> tpm ask functions
shell> tpm ask services
shell> tpm ask isCAA
shell> tpm ask function managerEnabled
shell> tpm ask function cleanBool false