10.5.1. tpm ask Command

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

Usage:

tpm ask [args] [context] {value_or_function_name} [argument]

Table 10.3. tpm ask Arguments

OptionDescription
--allstagesDisplay stages of the replicators for all roles
--apiUse the v2 API REST interface instead of the command line when possible
--debug, -dDebug Mode.
--dsroleDisplay local datasource role
--dsstateDisplay local datasource state
--help, -h
--info, -i
--nodeinfoDisplay state and role of local datasource and replicator
--path, -pPass full path to replicator executables e.g. /opt/replicator/tungsten/tungsten-replicator/bin
--quiet, -q
--stagesDisplay stages of the local replicator
--test, -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
--trstateDisplay local replicator state
-vVerbose output.

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

Table 10.4. tpm ask Context Options

OptionDescription
allExtract every available variable from the perl common object.
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.

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