Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Tableau Server 命令列工具 tabcmd 完整操作指南

編輯:系統常見問題解答

tabcmd 是 Tableau Server 官方命令列工具,支援自動化發佈、排程觸發、使用者管理等。本文記錄 Windows 域帳號環境下的實戰指令。

環境路徑

D:\"Tableau Server"\8.2\bin\tabcmd.exe

登入與登出

# 登入 (Windows 域帳號格式 user@domain.com)
tabcmd login -s https://localhost -u your_name@yourcompany.com -p "your_pwd"

# 登出
tabcmd logout

輸出範例:

==== Log out completed. ====
Creating new session
  Server:  https://localhost/
  Username: chenshu@letv.com
==== Connecting to server... ====
==== Logging in... ====
==== Login Succeeded. ====

執行排程

tabcmd runschedule "everyday9am"

輸出範例:

===== Login Succeeded. =====
Continuing previous session
  Server:  https://localhost/
  Username: chenshu@letv.com
===== Running schedule 'everyday9am'... =====
===== Succeeded =====
10 tasks from 1 schedule submitted to run

常用指令速查

指令用途
tabcmd publish發佈工作簿/資料源
tabcmd delete刪除內容
tabcmd addusers批次新增使用者
tabcmd syncgroup同步 AD 群組
tabcmd get下載檔案 (PDF/影像/資料)
tabcmd initialuser建立初始管理員

自動化腳本範例

@echo off
set TABCMD="D:\Tableau Server\8.2\bin\tabcmd.exe"
%TABCMD% login -s https://tableau.company.com -u svc_tableau@company.com -p "P@ssw0rd"
%TABCMD% runschedule "Daily_Extract_Refresh"
%TABCMD% logout

將上述存為 .bat 排入 Windows 工作排程器,即可實現無人值守排程觸發。

Copyright © Windows教程網 All Rights Reserved