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:
| Option | Description | Version |
|---|---|---|
all | Extract every available variable from the perl common object. | |
certs | Display information about certificates including expiry dates. | 7.1.0 |
certtpmAliases: certlocations | Display reference information about the security.properties file. | 7.1.0 |
common | Extract the variable from the perl common object. This is the default if no context is supplied. | |
function | Extract the return value of the named function from within the perl_common object. You may specify an optional argument to the function. | |
functions | Extract the available function names from the perl common object. | |
keys | Extract all available variable names from the perl common object. |
[argument] can be one of the following:
| Option | Description | Version |
|---|---|---|
--allstages | Display stages of the replicators for all roles. | 7.0.2 |
--api | Use the v2 API REST interface instead of the command line when possible | |
--debugAliases: -d | Debug mode. | |
--dsrole | Display local datasource role. | 7.0.2 |
--dsstate | Display local datasource state. | 7.0.2 |
--helpAliases: -h | Show the help page. | |
--humanAliases: -n | Convert values 0 and false to No, and values 1 and true to Yes as human output. | 7.2.0 |
--infoAliases: -i | ||
--nodeinfo | Display state and role of local datasource and replicator | 7.0.2 |
--pathAliases: -p | Pass full path to replicator executables e.g. /opt/replicator/tungsten/tungsten-replicator/bin | |
--quietAliases: -q | ||
--serviceAliases: -s | Supply the service name if required for dsrole, dsstate and trstate. | 7.2.0 |
--stages | Display stages of the local replicator | 7.0.2 |
--testAliases: -t | ||
--thl | Path and name of thl executable (Ignores --path if also supplied) | |
--trepctl | Path and name of trepctl executable (Ignores --path if also supplied) | |
--trrole | Display local replicator role. | 7.0.2 |
--trstate | Display local replicator state. | 7.0.2 |
-v | Verbose output. | |
shortAliases: -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