tabcmd.exe login Command & .bat file
Error Messages Indicating Failure of tabcmd.exe “login” Command
See “Login to DSA Server” or “Tab_login function failed” Messages
Template for .bat file for Testing the “tabcmd login” Command
Using the template below and values from the static parameter file make a .bat file and run it.
The .bat file should display a message indicating a successful login.
<static_TabCmdPath>/tabcmd.exe login --server <static_DSAServerDomain>
--user <static_DSAServerUserName > --password <static_DSAServerPassword>
--timeout 30 --cookie --no-certcheck
Replace the text in the “< >” brackets in the code above by the corresponding values from the static parameter file. (See an example below.)
The code above represents one line of the
.bat
file.See tabcmd.exe for more about the optional
--no-certcheck
option
Example Static Parameter File
The static parameter file is usually named SParms0.ps1.
#-------- Path to tabcmd.exe ---------------------------------------------------
# File Path to DSA's tabcmd.exe file.
# Example: [string] $TabCmdPath = "C:\Program Files (x86)\Tableau Server\Tableau\8.0\bin"
[string] $global:static_TabCmdPath = "C:\tabcmd-2018-1-6\Command Line Utility"
##------- DSA Server Login Info ------------------------------------------------
[string] $global:static_DSAServerDomain = https://dataselfbi.com/ ##-- http://localhost/views/1ADTestWorkbook/1ADTest#1
[string] $global:static_DSAServerUserName = "Demo"
[string] $global:static_DSAServerPassword = "demo"
The static parameter file can be read using any text editor.
.ps1
files contain PowerShell scripts.
How to Fix
Wrong Version of tabcmd.exe.
Older versions of tabcmd.exe may not work with newer versions of Tableau Web Server.
Download and install the version of tabcmd from Tableau’s website that is designed for the current version of Tableau Web Server.
Find the copy of tabcmd.exe that was just installed.
Update the path assigned to the
static_TabCmdPath
in the static parameter file.
Related Pages
tabcmd.exe – info on the
tabcmd.exe
utility