---
schema_version: "1"
id: 4a7e90a1dbd9469ec36f57ca069893eb70bd0bc7a088d9977ba9602cdd76538d
title: tsm licenses
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/server-linux/cli_licenses_tsm.md
canonical_url: https://help.tableau.com/v0.0/server-linux/zh-tw/cli_licenses_tsm.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 4dff93ae9b35ead4d79a179d676108f3b6cac5ea7dbf6f9fd389b67a1b91f6ad
description: Reference for tsm licenses commands to activate, deactivate, and manage Tableau Server product keys.
---
[跳至主要內容](#main-content)

# tsm licenses

您可以使用 `tsm licenses` 命令管理伺服器授權任務，例如連線或離線啟動或停用 Tableau Server 產品金鑰，以及獲取關聯檔以進行離線啟動或停用。

- [tsm licenses activate](#TSMActivate)
- [tsm licenses atr-configuration get](#TSMAtr-configuration-get)
- [tsm licenses atr-configuration set](#TSMAtr-configuration-set)
- [tsm licenses deactivate](#TSMDeactivate)
- [tsm licenses get-offline-activation-file](#TSMActivateFile)
- [tsm licenses get-offline-deactivation-file](#TSMDeactivateFile)
- [tsm licenses list](#TSMLicenseList)
- [tsm licenses refresh](#TSMLicenseRefresh)

## tsm licenses activate

啟用 Tableau Server 產品金鑰。

### 概要

`tsm licenses activate --license-key <product-key> [global options]`

### 選項

\-f, --license-file <file.tlf>

必需（如果要進行離線啟動）。

指定用於離線啟動的授權檔案 (<file>.tlf)。

\-k, --license-key <product-key>

必需（如果要啟動有效產品金鑰）。

指定用於連線啟動的產品金鑰。

\-t, --trial

**附註**：此選項僅在 2023.3.0 之前的版本中可用。如需更高版本的試用授權，請聯絡您的客戶代表。

必需（如果要啟用試用授權）。

啟用試用授權。

## tsm licenses atr-configuration get

檢視伺服器執行授權 (ATR) 持續時間。ATR 持續時間是在必須續訂授權之前授權 Tableau Server 執行的時間長度。

### 概要

`tsm licenses atr-configuration get --duration [global options]`

### 選項

\--duration

以秒為單位顯示目前的執行授權 (ATR)。例如，432000（5 天）。

## tsm licenses atr-configuration set

設定伺服器執行授權 (ATR) 持續時間。ATR 持續時間是在必須續訂授權之前授權 Tableau Server 執行的時間長度。

### 概要

`tsm licenses atr-configuration set --duration <duration_in_seconds> [global options]`

### 選項

\--duration <duration\_in\_seconds>

設定執行授權 (ATR) 持續時間（以秒為單位）。例如，432000（5 天）。

## tsm licenses deactivate

連線或離線停用 Tableau Server 產品金鑰。

### 概要

`tsm licenses deactivate --license-key <product-key> [global options]`

### 選項

\-f, --license-file <return\_file.tlr>

必需（如果要進行離線停用）。

指定用於離線停用的授權檔案 (<file>.tlf)。

\-k, --license-key <product-key>

必需（如果要停用產品金鑰）。

指定用於連線停用的產品金鑰。

## tsm licenses get-offline-activation-file

產生離線啟用檔案以用於離線啟用 Tableau Server。若要瞭解詳情，請參閱[離線啟用 Tableau Server](https://help.tableau.com/v0.0/server-linux/zh-tw/activate_off.htm)。

**附註：**一次只能啟用一個產品金鑰，除非使用伺服器 ATR。使用伺服器 ATR，可以在離線啟用檔案中提供以逗號分隔的產品金鑰清單，以同時啟用多個產品金鑰。

### 概要

`tsm licenses get-offline-activation-file --license-key <product-key> --output-dir <path> [global options]`

### 選項

\-k, --license-key <product-key>

必需。

指定用於離線啟動的產品金鑰。

\-o, --output-dir <path>

必需。

應在其中儲存離線啟動檔的位置。此位置必須存在。

## tsm licenses get-offline-deactivation-file

產生離線停用檔案以用於離線停用 Tableau Server。若要瞭解詳細資料，請參閱[離線停用 Tableau Server](https://help.tableau.com/v0.0/server-linux/zh-tw/deactivate_off.htm)。

### 概要

`tsm licenses get-offline-deactivation-file --license-key <product-key> --output-dir <path> [global options]`

### 選項

\-k, --license-key <product-key>

必需。

指定用於離線停用的產品金鑰。

\-o, --output-dir <path>

必需。

應在其中儲存離線停用檔的現有位置。

## tsm licenses list

列出在 Tableau Server 部署上啟用的授權。

例如，具有五個 Creator 授權、五個 Explorer 授權、100 個 Viewer 授權和 資料管理 的伺服器可能會提供類似下列的命令輸出：

![四個 Tableau 授權的清單以及有關其到期日期的詳細資訊。](/tableau/next/zh-tw/server-linux/zh-tw/Img/license_list.png)

會傳回以下欄位：

- **KEY**：識別授權的全域唯一 16 字元字串。
- **TYPE**：說明授權類型
    - 短期：短期授權會映像到訂閱排程，且必須續訂。到期日期會列在 LIC EXP 欄位下方。
    - 永久：永久授權僅須購買一次，不需要續訂，但必須重新整理以更新 MAINT EXP 或維護到期日期。
    - 核心：核心授權為映像至執行特定 Tableau Server 服務之電腦的核心數的授權。核心授權允許來賓使用者存取伺服器上的檢視，或內嵌到其他 Web 伺服器。核心授權亦允許無限個 Explorer 和 Viewer 使用者。
- **CREATOR**：核發至 Tableau Server 部署的 Creator 授權數量。
- **EXPLORER**：核發至 Tableau Server 部署的 Explorer 授權數量。
- **VIEWER**：核發至 Tableau Server 部署的 Viewer 授權數量。
- **DATA MANAGEMENT**：Tableau Server 已取得 資料管理 授權 (`True`/`False`)。請參閱[關於 資料管理](https://help.tableau.com/v0.0/server-linux/zh-tw/dm_overview.htm)。
- **GUEST ACCESS**：Tableau Server 已授權來賓使用者使用。請參閱[來賓使用者](https://help.tableau.com/v0.0/server-linux/zh-tw/users_guest.htm)。使用來賓使用者的功能需要核心授權。請參閱「類型」欄位。
- **LIC EXP**：授權到期的日期，此時 Tableau Server 將會停止運作。短期授權到期。請參閱「類型」欄位。造訪 Tableau [客戶入口網站](https://customer.tableausoftware.com/)，以重新整理授權。
- **MAINT EXP**：僅適用於舊版永久授權 (TYPE = Perpetual)。如為短期授權，此欄位會輸出 `N/A`。MAINT EXP 會顯示 Tableau Server 部署之維護合約的日期到期。若要更新授權維護金鑰，請參閱[重新整理產品金鑰和屬性的到期日期](https://help.tableau.com/v0.0/server-linux/zh-tw/license_refresh.htm)。造訪 Tableau [客戶入口網站](https://customer.tableausoftware.com/)，以檢視維護購買歷程記錄，以及購買額外維護。
- **可更新**：指定授權是否為可更新的訂閱授權（`True`/`False`）
- **LBLM**：指出是否已針對 Tableau Server 部署啟用以登入為基礎的授權管理 (LBLM) (`True`/`False`)。啟用時，LBLM 會允許使用者登入 Tableau Server 以授權其 Tableau Desktop 或 Prep 執行個體，而不用輸入產品金鑰。有關 LBLM 的詳情，請參閱[登入型授權管理](https://help.tableau.com/v0.0/server-linux/zh-tw/license_lblm.htm)。
- **SERVER MANAGEMENT**：Tableau Server 已取得 Advanced Management（之前稱為 Server Management Add-on） 授權 (`True`/`False`)。有關 Advanced Management 詳情，請參閱[关于 Tableau Server 中的 Tableau Advanced Management](https://help.tableau.com/v0.0/server-linux/zh-tw/itm_intro.htm) 。

### 概要

`tsm licenses list [global options]`

## tsm licenses refresh

更新 Tableau Server 上所有產品金鑰的維護到期日期。

### 概要

`tsm licenses refresh [global options]`

## 全域選項

\-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/v0.0/server-linux/zh-tw/tsm_overview.htm#Connecti)。

\-u, --username <user>

在會話不是活動狀態的情況下為必需，`-p` 或 `--password` 也為必需。

請指定使用者名稱。如果未包括此選項，則使用您登入所使用的認證執行該命令。