---
schema_version: "1"
id: 72b2839185d28141664bb56ae537b0a00e3bfebdd5004d2559ccb4bc213cb2ad
title: tsm jobs
collection: tableau
version: current
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/current/zh-tw/server/cli_jobs_tsm.md
canonical_url: https://help.tableau.com/current/server/zh-tw/cli_jobs_tsm.htm
source_site: help.tableau.com
content_type: documentation
content_hash: c518346498afe92de35ff6cf1174455fc0d68a43940c75fcd976740eacea492f
description: Reference for tsm jobs commands to list, reconnect to, and cancel Tableau Server jobs.
---
[跳至主要內容](#main-content)

# tsm jobs

您可以使用 `tsm jobs` 命令列出、重新連線到和取消作業。

- [cancel](#tsm)
- [list](#tsm2)
- [reconnect](#tsm3)

## tsm jobs cancel

取消伺服器上的作業。任何工作都可以在它開始執行之前取消（在佇列中）。只有某些工作在已執行後還能取消：清理、停用檔案存放區、產生備份、重啟伺服器、啟動伺服器 .有關取消作業的更多資訊，請參閱[取消 TSM 作業](https://help.tableau.com/current/server/zh-tw/tsm-jobs-cancel.htm)。

### 概要

`tsm jobs cancel --id <jobID> [global options]`

### 選項

\-i,--id <jobID>

必需。

要取消的作業的 ID。

## tsm jobs list

列出伺服器上的非同步作業。

### 概要

`tsm jobs list [--status <status>] [global options]`

### 選項

\-t,--status <status>

可選。

篩選與給定狀態相符的作業。

## tsm jobs reconnect

重新連線到非同步作業以顯示其進度。如果沒有指定作業 ID，則它將重新連線到最新作業。

### 概要

`tsm jobs reconnect[--id <jobID>] [global options]`

### 選項

\-i,--id <jobID>

可選。

指定應重新連線的作業的 ID。

## 全域選項

\-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-tw/tsm_overview.htm#Connecti)。

\-u, --username <user>

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

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