rmtadmin Command Line Utility

Resource Monitoring Tool includes a command line interface, rmtadmin.cmd, located in the installation folder. The default installation folder is:

  • RMT Server %PROGRAMFILES%\Tableau\Tableau Resource Monitoring Tool\Master
  • Agent: %PROGRAMFILES%\Tableau\Tableau Resource Monitoring Tool\agent

Note: You must run the command prompt as an Administrator for these commands to run successfully.

rmtadmin is included in both the RMT Server and Agent installations. Some commands may vary based on whether you are using the RMT Server or Agent rmtadmin command line utility. E.g. the users command only works from the RMT Server. The ziplogs command is available everywhere but only includes the log files from the application the command is run on.

Here are the commands that can be used with the rmtadmin command line:

Note: The rmtadmin commands use both positional parameters and options.
The positional parameters should be specified using only the values. You don't need to specify the actual keyword. The option keyword and the value should be specified using an equals sign.
Example:
rmtadmin <command> <positional parameter value> --<option keyword>=<value>

In an effort to align with our company values of Equality, we have changed non-inclusive terminology where possible. Because changing terms in certain places can cause a breaking change, we maintain the existing terminology. So, you may continue to see the terms in CLI commands and options, installation folders, configuration files and other instances. For more information, see About Tableau Help(Link opens in a new window).

rmtadmin agents

Note: Added in version 2021.2

Lists all the registered Agents on Tableau Server nodes for all environments.

This is useful to see where the Resource Monitoring Tool Agent is installed on Tableau Server.

This command only works on the RMT Server.

Synopsis

rmtadmin agents [options][global option]

Options

--env

Optional: Use this option to see the list of Agents for the specific environment. This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.

--keys

Optional: includes the agent key in the output.

Example:rmtadmin agents --env=<myenvironmentidentifier> --keys

rmtadmin bootstrap-file

Note: Added in version 2021.2

Creates and saves the bootstrap file used to register Agents on Tableau Server nodes.

Bootstrap file will be created and saved to the specified absolute path or relative path. Relative paths are resolved to the current working directory.

This command only works on the RMT Server.

Synopsis

rmtadmin bootstrap-file [options][global option]

Options

--env

Required. This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.
The Agent on a Tableau Server node can only be registered to one environment at a time.

--filename

Optional. The absolute or relative path including the file name. The relative paths are resolved to the current working directory. If not specified, the default output filename is used.

--force

Optional. Overwrites the existing file with the same name.

Example:rmtadmin bootstrap-file --env=<myenvironmentidentifier>

rmtadmin cleanup

Note: Added in version 2021.2

Deletes the log files that are older than a certain number of days. By default it deletes log files older than 31 days.

This command works on both the RMT Server and Agent.

Note: If the Resource Monitoring Tool processes are running, the active log files will not be cleaned up by the command. If you want to be sure that all files are deleted, you will need to stop RMT using the rmtadmin_stop command and then run cleanup using the following command, rmtadmin cleanup --log-files-retention=0, and then restart the processes using the rmtadmin_start command.

Synopsis

rmtadmin cleanup [option][global option]

Option

--log-files-retention

Optional. Deletes the log files older than the specified number of days.

Example:rmtadmin cleanup --log-files-retention=<number of days>

rmtadmin create-admin-user

Version: Added in version 2022.1

Creates an initial admin user if no other users exist.

Note: Beginning in version 2023.1 you can create multiple admin users.

This command is only on RMT Server.

Synopsis

rmtadmin create-admin-user [options][global option]

Options

--username

Optional. The username for the admin user account. Defaults to "admin" if not specified.

--password

Required. The password for the admin user account.

--password-file

Optional. The path to the file containing the password for the admin user account. You can use this if you do not want to type in the password directly and have the password stored in a file that can be accessed.

Example:rmtadmin create-admin-user --username<admin user name> --password <password for the admin user account>

rmtadmin create-env

Note: Added in version 2021.2

Creates a new environment.

This command only works on the RMT Server.

Synopsis

rmtadmin create-env [options][global option]

Options

OptionRequired?DefaultDescription
--nameYesn/aThe name of the environment.
--gateway-url

Yes

 

n/a

URL used to access the Tableau Server gateway.

--versionYesn/aTableau Server version that this environment will be monitoring.
--non-interactive

No

Interactive prompts are enabled by default.Disables all interactive prompts.
--no-test

No

API and Repository connection testing is enabled by default.Disables testing API and repository connections.
--api-usernameNoNullUsername of the account used to connect to Tableau Server APIs. The user account should be a Tableau Server administrator with access to all Tableau Server sites.
--api-password

No

(If you specify the Tableau API username, you will either provide the password or specify the file path and file that has the password)

Null

Password of the Tableau Server API user account used to connect to Tableau Server APIs.

--api-password-fileNoNullThe path to the file and the name of the file containing the password of the Tableau Server API user account.
--repository-serverYes

Null

This is the server name for the PostgreSQL database that in installed with Tableau Server.
--repository-databaseYesNullThis is the name of the PostgreSQL database that is installed with Tableau Server.
--repository-portYesNullThe port number of the Tableau Server Repository database.
--repository-usernameYesNull

Username used to connect to PostgreSQL database installed with the Tableau Server Repository.

Resource Monitoring Tool accesses the Tableau Server Repository database directly for performance reasons. For this to work, access to the repository must be enabled, with a password set for the readonly database user. For details, see Enable access to the Tableau Server repository.

--repository-passwordYesNull

Password for the user account used to connect to the PostgreSQL database that is installed with the Tableau Server.

Resource Monitoring Tool accesses the Tableau Server Repository database directly for performance reasons. For this to work, access to the repository must be enabled, with a password set for the readonly database user. For details, see Enable access to the Tableau Server repository.

--repository-password-fileNo, but required if you are not providing the password in command prompt or in a script directly.NullThe path including the filename where the password for the user account used to connect to the PostgreSQL database that is installed with Tableau Server.
--repository-ssl-mode

No

Prefer

Tableau Server Repository SSL Mode:

Prefer SSL or Require SSL to configure SSL connections to Tableau Repository.

Disable to never use SSL to make Tableau Server Repository connections.

--repository-ssl-thumbprint

No

NullWhen configuring Tableau Server PostgreSQL to allow direct connections, Tableau Server creates a certificate and keys. You can choose to either supply the thumbprint for the certificate that was generated by Tableau Server, or copy the server.crt file to the Resource Monitoring Tool Server machine. If you choose to copy the certificate file, you don't have to supply the thumbprint. For more information, see Configure Postgres SSL to Allow Direct Connections from Clients.

Example:rmtadmin create-env --name=<myenvironment> --api-username=<TableauServer API user name> --api-password=<password for the Tableau Server API user account> --gateway-url <Tableau Server Gateway URL> --version <Tableau Server version>

rmtadmin data-access

Note: Added in version 2022.3

Enables or disables access to the PostgreSQL database. Note: Access to the PostgreSQL database is required starting in version 2022.3 for Resource Monitoring Tool to successfully gather all monitoring data from Tableau Server.

This command only works on the RMT Server

Note: The PostgreSQL database must be restarted for this configuration to take effect.

Synopsis

rmtadmin data-access [positional parameter][options] [global option]

Positional Parameter

mode

Required. The mode that should be used for remote data access to PostgreSQL database. The values should be one of: None, ReadOnly, Admin. When set to None, the data access is disabled. ReadOnly and Admin specify which user account to use to access the database..

Options

--

Example:

rmtadmin data-access ReadOnly

rmtadmin restart --db

rmtadmin delete-env

Note: Added in version 2021.2

Deletes a specific environment and all data that has been collected for that environment. It also removes the connection and topology information about the Tableau Server that the environment is monitoring and deregisters all the Resource Monitoring Tool Agents.

This command only works on the RMT Server.

Synopsis

rmtadmin delete-env [positional parameter][options] [global option]

Positional Parameter

env

Required. This is the system-generated identifier. This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.

Options

--confirm

Optional. Confirm that you want to delete the environment. If you do not provide this option, you will be prompted to confirm.

--skip-agent-disconnect

Optional. Skips disconnecting the Agent and continues with deregistering the Agent. Use this option if you think the Agent is inaccessible – for example, if the Tableau Server node has been removed or if the Agent has been uninstalled on that node.

Example:rmtadmin delete-env <myenvironmentidentifier>

rmtadmin delete-env-data

Permanently deletes all Tableau Server-related data collected for a specific environment. Environment configuration, Tableau Server information and Agent registration will not be removed.

This is useful for clearing all the existing data in an environment without removing the environment itself. After deleting the existing data, new data sent by the Agents will continue to be processed.

This command only works on the RMT Server.

Synopsis

rmtadmin delete-env-data [positional parameter][option][global option]

Positional Parameter

env

The identifier of the environment for which the data should be deleted. This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.

Option

--confirm

Optional. Confirm that you want to delete the environment data. If you do not provide this option, you will be prompted to confirm.

Example:rmtadmin delete-env-data <myenvironmentidentifier>

rmtadmin delete-server

Note: Added in version 2021.2

Deletes the configuration information of the Tableau Server node from the environment, deregisters the Agent on that node and deletes all monitoring data collected specific to that node.

This command only works on the RMT Server.

Synopsis

rmtadmin delete-server [options][global option]

Options

--env

Required. The identifier of the environment that the Tableau Server node is connected to. This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.

--hostname

Required to delete information about one or more connected to the environment and if --all is not specified.

This is the machine name of the Tableau Server node. Use commas to separate multiple values if specifying more than one host name.

--all

Optional, but required if --hostname is not specified.

Deletes the information for all the Tableau Server nodes connected to the environment.

--skip-agent-disconnect

Optional. Skips disconnecting the Agent and continues with deregistering the Agent. Use this option if the Agent is inaccessible – for example, if the node has been removed from Tableau Server or if the Agent has been uninstalled on that node.

--confirm

Confirm that you want to delete all the information about the Tableau Server node. If you do not provide this option, you will be prompted to confirm.

Example:rmtadmin delete-server --hostname=<machine name of the Tableau Server node>

rmtadmin delete-server-data

Note: Added in version 2021.2

Deletes the data collected from one or more Tableau Server nodes. Data removed only pertains to the nodes that are specified. If you specify all, then all the data collected from all the nodes will be deleted. Environment configuration, Tableau Server information and Agent registrations will not be deleted.

This command only works on the RMT Server.

Synopsis

rmtadmin delete-server-data [options][global option]

Options

--env

Required. The identifier of the environment that the Tableau Server node is connected to. This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.

--hostname

Required to delete information about one or more connected to the environment and if --all is not specified.

This is the machine name of the Tableau Server node. Use commas to separate multiple values if specifying more than one host name.

--all

Optional, but required if --hostname is not specified.

Deletes the monitoring data for all the Tableau Server nodes connected to the environment.

--confirm

Confirm that you want to delete all the monitoring data from the Tableau Server nodes. If you do not provide this option, you will be prompted to confirm.

Example:rmtadmin delete-server-data --all

rmtadmin deregister

Note: Added in version 2021.2

Deregisters the Agent from the environment. Monitoring data from this node will no longer be collected. Existing data will remain and not be deleted.

This command only works when run on the RMT Agent. Run this on the Agent you want to deregister.

Synopsis

rmtadmin deregister [options]

Options

--confirm

Optional. Confirm that you want to deregister the Agent. This bypasses the confirmation prompt.

--ignore-master-errors

Optional. Ignores any errors that occur while communicating with the RTM Server during this process.

Example:rmtadmin deregister --confirm

rmtadmin deregister-agent

Note: Added in version 2021.2

Deregisters the specified Agent from the environment. Monitoring data from this node will no longer be collected. Existing data will remain and not be deleted.

This command only works when run on the RMT Server.

Synopsis

rmtadmin deregister-agent [options][global option]

Options

--env

Required if --key is not specified.

This is the identifier of the environment where the Agent is currently registered. This is the system-generated identifier. This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.

--key

Optional if --env is specified.

This is the Agent key. Use commas to separate multiple values. You can get the key values by running the rmtadmin agents command.

--hostname

Optional. Machine name of the Tableau Server node where the Agent is installed. Use commas to separate multiple values.

--all

Optional. Use this option to deregister Agents on all the nodes.

--ignore-agent-errors

Optional. Ignores any errors that occur if unable to connect with the Agents during this process.

--skip-agent-disconnect

Optional. Skips disconnecting the Agent and continues with deregistering the Agent. Use this option if you think the Agent is inaccessible – for example, if the node has been removed from Tableau Server or if the Agent has been uninstalled on that node.

--confirm

Optional. Confirm that you want to deregister the Agents. If you do not provide this option, you will be prompted to confirm.

Example:rmtadmin deregister-agent --env=<myenvironmentidentifier> --all

rmtadmin environments

Note: Added in version 2021.2

Lists all the environments on the Resource Monitoring Tool Server.

This command only works on the RMT Server.

Synopsis

rmtadmin environments [global option]

rmtadmin get

Gets the value of a specified configuration key.

This command can be used both on the RMT Server and Agent.

Synopsis

rmtadmin get <config.key> [global option]

Positional Parameter

key

Name of the configuration key.

Example: rmtadmin get db:database

Supported configuration keys

KeyData TypeApplies ToDEFAULTDescription
db:databaseStringRMT ServertabrmtdbName of the PostgreSQL database that RMT uses.
db:readOnlyUsernameStringRMT Serverread onlyUsername of a PostgreSQL user account which has only read-only access to the RMT data.
db:readOnlyPasswordStringRMT ServerGenerated by the installer program.Password of the PostgreSQL read-only user.
mq:tls:certificateHostNameStringRMT Server and Agentn/aHost name in the certificate to use when connecting to RabbitMQ via TLS.
mq:tls:enabledBooleanRMT Server and AgentFALSEEnable/disable TLS connection to RabbitMQ.
mq:portIntegerRMT Server and Agent5672RabbitMQ host port number.
mq:virtualHostStringRMT Server and AgenttabrmtConnection to the RMT Server or Agent. For Agent, you can modify this setting by registering the Agent with a bootstrap file. For the RMT Server, the value is managed by the installer.
server.web.runBooleanAgentTRUEEnable or disable the Agent's web interface.

Use the set command to change the current configuration value.

rmtadmin help

Shows general help about the command line interface and the available commands.

This command can be used both on the RMT Server and Agent.

Synopsis

rmtadmin help

Show help and usage information for a specific command:

This command can be used both on the RMT Server and Agent.

rmtadmin help [command]

rmtadmin master-setup

Configures the RMT Server with specified options. Used both during install and post installation configurations.

Synopsis

rmtadmin master-setup [options][global option]

The configuration options are listed below:

OptionRequired?DefaultDescription
--admin-password

Yes (Required for initial installation only)

Password can be supplied in the command line or provide a file with the password to use. If neither is provided, you will be prompted for the password.

n/aThe password for the administrator user.
--admin-password-file

Yes (Required for initial installation only)

Password can be supplied in the command line or provide a file with the password to use. If neither is provided, you will be prompted for the password.

n/aThe password for the administrator user.
--admin-usernameNoadminThe username for the administrator user.
--skip-admin-creation

Added: version 2020.4.0

Retired: version 2022.3.0

No

This option must be and only used when you making configuration updates post installation.

In versions where this option is valid (2020.4.0 - 2022.2.x), if not used during post installation configuration updates, the command will fail and no updates will be made.

In versions 2022.3.0 and later, the command will create the admin where necessary.

False

Skip creating the administrator user and password.

--http-portNo80 
--require-httpsNoFalseRedirect http traffic to HTTPS.
--https-certificate-modeNo

'Default'

Available options:

  • Default
  • Store (Windows only)
  • Local

The type of certificate search to perform for the HTTPS certificate.

Default: This mode uses the default self-signed certificate supplied by the installer.

Store: This allows you to enter the thumbprint of a certificate in the Windows certificate store.

Local: Allows you to specify a file-based certificate in the config folder.

--https-certificate-store-thumbprintNoNullThe HTTPS certificate hash/thumbprint to search for in 'store' certificate mode.
--https-certificate-local-nameNo

Null

Note: If not specified, the Resource Monitoring Tool is installed with a self-signed certificate and will use that certificate for HTTPS communications.

The name of the HTTPS certificate file.
--https-certificate-local-passwordNoNullThe password to use for the HTTPS certificate.
--https-certificate-local-password-fileNoNullThe path to the file containing the password to use for the HTTPS certificate.
--confirmNoPrompt for confirmation.Confirms the restart of the RMT Server.
--host

No

Note: We don't recommended changing this value.

Current configuration value or machine name.The preferred URL for accessing the Resource Monitoring Tool server. The server will listen to all the IPs regardless of the host name.
--db-config=externalNoNone.
This is only used when the repository is configured external to RMT Server.
Use this to configure RMT Server to use an external repository. You do not need to specify this if you want the PostgreSQL database to be installed locally.
--db-serverNoCurrent configuration value or installer default.

This is the server name for the PostgreSQL database that is installed with the Resource Monitoring Tool.

If you are using an external repository hosted on AWS RDS, this should be the RDS instance name.

--db-ssl-mode

Version: Added in version 2023.1.0

NoPrefer

This determines the SSL/TLS encryption for the connection to the PostgreSQL database that is installed with the Resource Monitoring Tool.

Options are Prefer (the default), VerifyCA and VerifyFull. For details, see the Npgsql documentation(Link opens in a new window).

--db-portNoCurrent configuration value or installer default.Port number for the database server.
--db-usernameNoCurrent configuration value or installer default.

Username used to connect to PostgreSQL database installed with the Resource Monitoring Tool.

If you are using an external repository hosted on AWS RDS, this should be "postgres".

--db-passwordNoCurrent configuration value or installer default.

Password for the user account used to connect to the PostgreSQL database that is installed with the Resource Monitoring Tool.

If you are using an external repository hosted on AWS RDS, this is the user password you created when creating the RDS instance.

--mq-config=externalNoNone
This option is only specified when the messaging service is hosted external to RMT Server.
This option configures RMT Server to use an external RabbitMQ messaging service.
--mq-serverNoCurrent configuration value or installer default.The name of the message queue server.
--mq-portNoCurrent configuration value or installer default.The message queue port.
--mq-vhostNoCurrent configuration value or installer default.The message queue virtual host.
--mq-usernameNoCurrent configuration value or installer default.The username used to connect to the message queue.
--mq-passwordNoCurrent configuration value or installer default.The password for the user account used to connect to the message queue.
--mq-enable-tlsNoCurrent configuration value or false.Requires TLS connection to connect to the message queue.
--mq-tls-certificate-hostNoCurrent configuration value or null.The canonical name of the message queue server. This must match the name on the certificate.
--password-saltNoRandom

A global salt to use to hash the password.

This applies to the local user accounts created in the Resource Monitoring Tool.

--password-min-lengthNoCurrent configuration value or 10.

The minimum length for the password.

This applies to the local user accounts created in the Resource Monitoring Tool.

--password-min-numericNoCurrent configuration value or 1.

The minimum required numeric characters in the password.

This applies to the local user accounts created in the Resource Monitoring Tool.

--password-min-specialNoCurrent configuration value or 1.

The minimum required special characters in the password.

This applies to the local user accounts created in the Resource Monitoring Tool.

--password-min-latinNoCurrent configuration value or 5.

The minimum required latin characters in the password.

This applies to the local user accounts created in the Resource Monitoring Tool.

--password-require-mixed-caseNoCurrent configuration value or true.

Requires mixed case characters in passwords.

This applies to the local user accounts created in the Resource Monitoring Tool.

--auth-timeout-minutesNoCurrent configuration value or 240.The number of minutes before the user authentication expires for the session.
--auth-sliding-expirationNoCurrent configuration or true.Whether or not to reset the authentication timeout period with user activity.

Examples:

To specify the admin password: rmtadmin master-setup --admin-password=<password> --skip-admin-creation

To update the port post install: rmtadmin master-setup --http-port=8000 --skip-admin-creation

rmtadmin passwd

Resets the password for a specific Resource Monitoring Tool user account.

This command works only on the RMT Server.

Synopsis

rmtadmin passwd [positional parameter][global option]

Positional Parameter

username

Name of the user that you want to change the password for.

Example: rmtadmin passwd <username>

rmtadmin query

Executes a raw SQL query against the Resource Monitoring Tool database and saves the results to an output file.

This command works only on the RMT Server.

Synopsis

rmtadmin query [positional parameter][options] [global option]

Positional Parameter

sql

SQL command text to run. You can provide multiple SQL commands. To use a file with the SQL commands, use @ as a prefix to the name of the file.

Options

--outfile=VALUE

Name of the zip file you want to output the query results. Default is queryresults.zip

--force

Overwrites the existing file.

--timeout=VALUE

timeout for the query. Specify this in seconds

--commit

Commits any changes made by the SQL command to the database. By default, the SQL command is run as a transaction, but is rolled back on completion.

Example: rmtadmin query <SQLCommand> --outfile=<path and the output file name>

rmtadmin register

Note: Added in version 2020.2

Registers the Agent using a bootstrap file. The bootstrap file can be downloaded using the rmtadmin bootstrap-file command.

This command is can only be used on the Agent and should be run on the machine where you want to install the Agent.

Synopsis

rmtadmin register [options][positional parameter] [global option]

Positional Parameter

bootstrap

The file path including the name of the bootstrap file.

Options

--username

Required. Name of the admin user created during the RMT Server installation.

--password

Required. Password for the user account.

--password-file

Path including the file name that contains the password information. Password can be supplied in the command line or a file that contains the password. If neither is provided, you will be prompted for the password.

--server-name

Name of the node where Agent is being installed. It defaults to the machine name if no name is specified.

--server-description

Custom description for the Server.

Example: rmtadmin register <bootstrap file name and path> --server-name=<server name>

rmtadmin restart

Restarts the Resource Monitoring Tool applications. When run from the machine where RMT Server is installed, it restarts the RMT Server application. When run on a node where the Agent is installed, it restarts just the Agent application on that particular node.

This command can be run from both the RMT Server and Agent.

Synopsis

rmtadmin restart [options] [global option]

Options

At least one option must be specified:

RMT Server:

--all

Restarts all services.

--master

Restarts the RMT Server.

--mq

Restarts the message queue service.

--db

Restarts the database service.

Agent:

--agent

Restarts the Agent service running on the machine.

Example: rmtadmin restart --db

 

rmtadmin rotate-mq-certificate

Rotates the Agent message queue client certificate on the agent machine. Run this command after running rmtadmin rotate-mq-certificate on the Server machine.

This command must be run from the RMT Agent.

Synopsis

rmtadmin rotate-mq-certificate [options] [positional parameter]

Positional Parameter

bootstrap

The file path including the name of the bootstrap file.

Options

--username

Required. The username for the master server.

--password

Required. Password for the master server user account.

--password-file

Path including the file name that contains the master server password information. Password can be supplied in the command line or a file that contains the password. If neither is provided, you will be prompted for the password.

--confirm-restart

Confirms service restart and bypasses confirmation prompt.

rmtadmin rotate-mq-certificates

Rotates message queue server and client certificates on the Server machine.

This command must be run from the RMT Server.

Synopsis

rmtadmin rotate-mq-certificates [options]

Options

--confirm-restart

Confirms service restart and bypasses confirmation prompt.

rmtadmin servers

Note: Added in version 2021.2

Lists all the Tableau Server nodes across all environments or a specific environment.

This command only works on the RMT Server.

Synopsis

rmtadmin servers [positional parameter][global option]

Positional Parameter

env

Optional. Specify the identifier of the environment to get a list of Tableau Server nodes registered in that environment. This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.

rmtadmin service-setup

Note: Added in version 2021.4. Used to install or update the user credential for Resource Monitoring Tool services including RMT Server, Agent, RabbitMQ and PostgreSQL database. This is useful to update service information post-installation.

This command works on both RMT Server and Agent.

Synopsis

rmtadmin service-setup [positional parameter][options][global option]

Positional Parameter

At least one of the following values must be specified:

all

Updates all available services. Can be run on both RMT and Agent. When run on a Tableau Server node, updates the Agent on that node.

master

Updates the RMT Server.

agent

Updates the Agent. Can only be run on the Agent (Tableau Server node).

db

Updates the database service. Can only be run on RMT Server.

mq

Updates the message queue service. Can only be run on RMT Server.

Options

--confirm

Optional. Confirm that you want to make updates. Can be run on both RMT and Agent. When run on a Tableau Server node, updates the Agent on that node.

--user-type

Required for RMT Server and Agent. The type of account that is used to run RMT Server or Agent. Allowed values are:

  • Virtual account (RMT Server only)
  • network-service
  • local-system
  • local-service
  • username (username of local or domain user account)

--username

Specifies the username of the account. Required if using a local or domain user account.

--password

Specifies the password for the account. Required if using a local or domain user account.

--password-file

Optional. The path to the location of the file, including the file name where the password information is stored.

--append-permissions

Optional. Appends new permissions. Use this if you do not want to overwrite the existing permissions.

rmtadmin set

Sets the value of a specified configuration key.

This command works both on the RMT Server and Agent.

Synopsis

rmtadmin set [positional parameter] [global option]

Positional Parameters

key

The configuration key you want to change the value for.

value

The new value you want to use.

Example: rmtadmin set mq:port <port number> where mq:port is the key and the <port number> is the value.

Supported configuration keys

KeyData TypeApplies ToDEFAULTDescription
mq:tls:certificateHostNameStringRMT Server and Agentn/aHost name in the certificate to use when connecting to RabbitMQ via TLS
mq:tls:enabledBooleanRMT Server and AgentFALSEEnable/disable TLS connection to RabbitMQ
mq:portIntegerRMT Server and Agent5672RabbitMQ host port number.
server.web.runBooleanAgentTRUEEnable or disable the Agent’s web interface.

Options

--backup

Creates a backup of the configuration file before making changes.

Use the get command to view the current configuration value.

rmtadmin start

Starts the Resource Monitoring Tool services. When this is run on the RMT Server, it will start the RMT Server only. When run on an Agent, it will start the Agent on the machine you are running the command from.

This command works both on the RMT Server and Agent

Synopsis

rmtadmin start [options] [global option]

Options

At least one option must be specified:

RMT Server:

--all

Starts all services.

--master

Starts the RMT Server.

--mq

Starts the message queue service.

--db

Starts the database service.

Agent:

--agent

Starts the Agent service running on the machine.

Example: rmtadmin start --all

rmtadmin status

Checks the status of the application and running services on the machine you are running this command on. For RMT Server, the status report confirms that the RMT Server is connected to the database and message queue. For Agents, the status report confirms that the agent is connected to the RMT Server.

This command can be run both on the RMT Server and the Agent.

This command returns the following:

  • Application status (running or not)
  • Licence status
  • MQ connection
  • Queue details
  • Memory used
  • Disk space used
  • Tableau server version on machine
  • Process topology of Tableau Server that is stored in Agent config file.

Beginning with version 2024.2.0, when run on the RMT Server, the command returns:

Synopsis

rmtadmin status [global option]

rmtadmin stop

Stops the Resource Monitoring Tool services. When this command is run on the RMT Server, it will only stop the RMT Server. When run on a machine where Agent is installed, it will only stop the Agent on that machine.

This command can be run both on the RMT Server and the Agent.

Synopsis

rmtadmin stop [options] [global option]

Options

At least one option must be specified:

RMT Server:

--all

Stops all services.

--master

Stops the RMT Server.

--mq

Stops the message queue service.

--db

Stops the database service.

Agent:

--agent

Stops the Agent service running on the machine.

Example: rmtadmin stop --db

rmtadmin test-env

Note: Added in version 2021.2

Tests the various connection points between Resource Monitoring Tool and Tableau Server. This includes testing Tableau Server Repository connection, Tableau Server API connections and Advanced Management capabilities.

This command only works on the RMT Server.

Synopsis

rmtadmin test-env [positional parameter][global option]

Positional Parameter

--env

Optional. The identifier of the environment that the Resource Monitoring Tool is monitoring. This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.

--force

Optional. Use this option to update the baseline immediately even if enough data is not available. By default the command will wait for 50 successful loads to calculate the baseline

rmtadmin update-baseline

Note: Added in version 2021.4

Updates the baseline for all view loads. Baseline is the 95th percentile of 50 successful initial load times for a view.

This command only works on the RMT Server.

Synopsis

rmtadmin update-baseline [options][global option]

Options

env

Required. This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.

rmtadmin update-env

Note: Added in version 2021.2

Updates the environment settings.

This command only works on the RMT Server.

Synopsis

rmtadmin update-env [options][global option]

Options

OptionRequired?Description
--non-interactive

No

Disables all interactive prompts.
--no-test

No

Disables testing API and repository connections.
--nameYesThe name of the environment.
--idNoIdentifier of the environment used in web interface URLs.

This is the system-generated identifier. You can find this by going to Admin > Environments > Edit Environment. On this page, in the Environment Details section, you will see the identifier for the environment.

--gateway-url

No

 

URL used to access the Tableau Server gateway.

--versionNoTableau Server version that this environment will be monitoring.
--api-usernameNoUsername of the account used to connect to Tableau Server APIs. The user account should be a Tableau Server administrator with access to all Tableau Server sites.
--api-passwordNo

Password of the Tableau Server API user account used to connect to Tableau Server APIs.

--api-password-fileNoThe path to the file containing the password of the Tableau Server API user account.
--repository-serverNoThis is the server name for the PostgreSQL database that is installed with the Resource Monitoring Tool.
--repository-portNoThe port number of the Tableau Server Repository database.
--repository-usernameNo

Username used to connect to PostgreSQL database installed with the Tableau Server Repository.

Resource Monitoring Tool accesses the Tableau Server Repository database directly for performance reasons. For this to work, access to the repository must be enabled, with a password set for the readonly database user. For details, see Enable access to the Tableau Server repository.

--repository-passwordNo

Password for the user account used to connect to the PostgreSQL database that is installed with the Tableau Server.

Resource Monitoring Tool accesses the Tableau Server Repository database directly for performance reasons. For this to work, access to the repository must be enabled, with a password set for the readonly database user. For details, see Enable access to the Tableau Server repository.

--repository-passwordNoThe path including the filename where the password for the user account used to connect to the PostgreSQL database that is installed with Tableau Server.
--repository-ssl-mode

No

Tableau Server Repository SSL Mode:

Prefer SSL or Require SSL to configure SSL connections to Tableau Repository.

Disable to never use SSL to make Tableau Server Repository connections.

--repository-ssl-thumbprint

No

When configuring Tableau Server PostgreSQL to allow direct connections, Tableau Server creates a certificate and keys. You can choose to either supply the thumbprint for the certificate that was generated by Tableau Server, or copy the server.crt file to the Resource Monitoring Tool Server machine. If you choose to copy the certificate file, you don't have to supply the thumbprint. For more information, see Configure Postgres SSL to Allow Direct Connections from Clients.

Example:rmtadmin update-env --name=<new name>

rmtadmin users

Shows a list of the Resource Monitoring Tool user accounts.

This command works only on the RMT Server.

Synopsis

rmtadmin users

rmtadmin version

Shows the current version information for the RMT Server when run on the RMT Sever machine. It shows the current version information of the Agent installed on the machine that you are running the command from.

This command can be run both on the RMT Server and the Agent.

Synopsis

rmtadmin version

rmtadmin ziplogs

Creates a ZIP archive file containing the Resource Monitoring Tool log files.

This command works both on the RMT Server and Agent but only includes the log files from the application the command is run on.

Synopsis

rmtadmin ziplogs [positional parameter] [option] [global option]

Positional Parameter

filename

Name of the output zip file. Defaults to log.zip if no name is provided.

Option

--force

Overwrites the existing file.

Example: rmtadmin ziplogs <zip file name> --force

Global Option

--help

Shows the help for the command.

Thanks for your feedback!Your feedback has been successfully submitted. Thank you!