---
schema_version: "1"
id: 824af4322952a67af017c09fc1e7101f3bed412b6ffdbd14bb9cafa89da76344
title: tsm settings
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server/cli_settings_tsm.md
canonical_url: https://help.tableau.com/current/server/zh-cn/cli_settings_tsm.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 319864a4501a41de46d1fd6583a9459c09d44623df255ccbf400245c166ec054
description: Reference for tsm settings commands to export and import Tableau Server configuration values.
---
[跳转到主要内容](#main-content)

# tsm settings

您可以使用 `tsm settings` 命令来导出 (get) 和导入 (set) 配置值。

- [tsm settings clone](#TSMSettingsClone)
- [tsm settings export](#TSMExport)
- [tsm settings import](#TSMSet)

**重要信息**：本主题中引用的服务器配置文件包含用于对配置密码进行加密的主密钥存储文件的副本。我们强烈建议您采取其他措施来保护节点配置文件，并使用[保护用于导入和导出操作的密文](https://help.tableau.com/current/server/zh-cn/security_secret_storage.htm#Securing)中描述的机制。

## tsm settings clone

创建一个由 Tableau Server 安装的配置和拓扑（包括外部服务和端口）组成的“克隆有效负载”。此有效负载可用于重新创建 Server 安装的精确副本。此命令最适合与包含外部存储库和外部文件存储的 Server 安装配合使用。有关使用克隆有效负载创建安装副本的详细信息，请参见[克隆 Tableau Server](https://help.tableau.com/current/server/zh-cn/server_clone.htm)。

### 概要

`tsm settings clone --output-directory <output-directory> [global options]`

### 选项

\-d, --output-directory <输出目录>

必需。

指定将克隆有效负载写入其中的位置。

## tsm settings export

将当前服务器配置和拓扑导出到文件。

使用 `tsm settings import`或 `tsm settings export` 命令不会导出或导入以下文件。您必须手动管理这些文件：

- SAML 证书文件
- SAML 密钥文件
- SAML IdP 元数据文件
- OpenID .static 文件
- Kerberos .keytab 文件
- LDAP Kerberos 密钥表文件
- LDAP Kerberos conf 文件
- 相互 SSL 证书文件
- 相互 SSL 吊销文件
- 自定义标头徽标文件
- 自定义登录徽标文件
- 自定义压缩徽标文件

### 概要

`tsm settings export --output-config-file <path/to/output_file.json> [global options]`

### 选项

\-f, --output-config-file <file>

必需。

指定由此操作创建的文件的位置和名称。

## tsm settings import

导入服务器配置或拓扑。

使用 `tsm settings export`或 `tsm settings import` 命令不会导出或导入以下文件。您必须手动管理这些文件：

- SAML 证书文件
- SAML 密钥文件
- SAML IdP 元数据文件
- OpenID .static 文件
- Kerberos .keytab 文件
- LDAP Kerberos 密钥表文件
- LDAP Kerberos conf 文件
- 相互 SSL 证书文件
- 相互 SSL 吊销文件
- 自定义标头徽标文件
- 自定义登录徽标文件
- 自定义压缩徽标文件

### 概要

`tsm settings import --import-config-file <path/to/import_file.json> [global options]`

### 选项

\-f,--import-config-file <FILE>

必需。

输入文件的路径。

\--config-only

可选。

\--topology-only

可选。

\-frc, --force-keys

可选。

强制将键添加到配置中，即使其以前不存在。

## 全局选项

\-h, --help

可选。

显示命令帮助。

\-p, --password <password>

在会话不是活动状态的情况下为必需，`-u` 或 `--username` 也为必需。

为在 `-u` 或 `--username` 中指定的用户指定密码。

如果密码包括空格或特殊字符，请将其括在引号中：

`--password "my password"`

\-s, --server https://<hostname>:8850

可选。

对 Tableau 服务管理器使用指定的地址。URL 必须以 `https` 开头，包括端口 8850，并使用服务器名称（而不是 IP 地址）。例如，`https://<tsm_hostname>:8850`。如果没有指定服务器，则假定为 `https://<localhost | dnsname>:8850`。

\--trust-admin-controller-cert

可选。

使用此标志来信任 TSM 控制器上的自签名证书。有关证书信任和 CLI 连接的详细信息，请参见 [连接 TSM 客户端](https://help.tableau.com/current/server/zh-cn/tsm_overview.htm#Connecti)。

\-u, --username <user>

在会话不是活动状态的情况下为必需，`-p` 或 `--password` 也为必需。

指定用户帐户。如果未包括此选项，则使用您登录所使用的凭据运行该命令。