Tableau’s two command tools are tabcmd and tabadmin. Tabcmd provides functions for performing workflow tasks such as publishing workbooks, adding users, or exporting workbooks as images or data files. tabadmin is designed for server administration-configuring server options, activating users, resetting passwords, and other tasks associated with managing the deployment and usage of the server within the enterprise.
When Tableau Server is installed, tabcmd and tabadmin are automatically installed in the tableau server’s bin folder. Depending on the operating system being used (window 32-bit or 64-bit) the program will be installed in one of these locations:
If you are using an older version of the Tableau server the portion of the address that says 8.0 should be replaced with the specific version number that you are using. If you are running a distributed environment with multiple worker machines and you want to utilize tabcmd on one or more of the worker boxes, you must install tabcmd on those other machines. Tableau provides an installer program for doing that. Those programs are:
If you want to enrich your career and become a professional in Tableau then enroll in "Tableau Online Course". This course will help you to achieve excellence in this domain. |
Copy the tabcmdinstaller.exe program to the computer where you want to install it and double-click on the file to run the program. The program provides prompts as it installs. Tableau Software recommends installing the tabcmd program on the root drive (c:tabcmd).
Since the setup program doesn’t automatically add the bin folder containing tabcmd or tabadmin to the windows PATH system variable, you have to manually navigate to the bin folder subdirectory using the programs. This can be avoided if you modify your computer’s PATH system variable to include the path to the bin folder.
Doing this allows you to run the executable commands without any need to manually enter the directory location of the bin folder. To start using tabcmd, open the windows command prompt. Figure 11.1 shows you how to do that in a Windows 7 environment.
Figure 11.1 Opening windows command prompt
[ Check out How to Install and Deploy the Tableau Server? ]
If you are using a different version of windows, find the accessories folder by searching your computer’s hard disk. Once you’ve entered the accessories folder, click on the command prompt to open the command prompt window. In order for you to have access to the tabcmd program files, you must first navigate to one of the bin folders listed in the first section. If you are using a 64-bit version of windows, type in the following command and press enter:
Cd “c:program
Files(x86)tableautableau
Server8.0bin”
This will change the active directory to the bin folder that holds the tabcmd program. Assuming that your tableau server address is HTTP://TABLEAUSERVER.COM, and that your tableau server uses port 80, start a tabcmd session by typing the following into the command prompt window:
Tabcmd login-s
Http://mytableserver.com-u USER-p PASSWORD
The end of the string immediately following the “.com” is case-sensitive.
After entering the tabcmd login command, and the –s site URL, substitute the URL location of your tableau server installation. Then enter your username and password after the –u and –p global option variables.
The instance of TABLEAU SERVER used in this example is a local installation on a laptop. The username is admin and the password is admin. The command-line entry to log into this server can be seen in figure 11.2.
Figure 11.2 tabcmd login example
[ Check out How to Monitor Activity on Tableau Server? ]
Notice that the portion of the script that includes the server address also includes an additional element (:8000). This defines the TCP/IP port for the local server instance and is required because the port assigned to the local server isn’t the default value that the tableau server normally uses. You can find more details regarding the default port settings in the tableau server online manual by searching for TCP/IP ports. After completing this step you can now issue other commands to the tableau server.
Figure 11.3 Editing the PATH system variable through the Windows control panel.
If you want to avoid the manual change of your current directory to the tableau server bin folder every time you run an executable file, add the bin folder to your windows PATH system variable. Edit PATH by going to the windows control panel, clicking on the system, then advanced system settings and selecting the environmental variables button to expose the dialog box you see in figure 11.3.
If this seems intimidating, there are free utilities available on the web that makes this process easier and provide a larger editing window. Figure 11.4 shows a free utility called eveditor in which the PATH has been edited to include the bin folder.
Figure 11.4 Editing PATH using a free editing tool
Adding the path for the tableau server bin folder eliminates the need to manually type in the path every time you want to start tabcmd or tabadmin in a batch file. Later you’ll see how to dynamically set PATH commands inside the executable batch files-enabling the dynamic setting of the file path so that tabcmd can always find the script that it needs to execute.
Learn Top Tableau Interview Questions and Answers that help you grab high-paying jobs |
Keep in mind that any third-party tools (like eveditor) are not supported by tableau software. You may be successful with eveditor or other tools that you enjoy using, or you may experience problems. But this is out of tableau software’s control.
List of Tableau Courses:
Tableau Advanced Training |
Tableau Server Training |
Data Visualization and Dashboarding Fundamentals Training |
Name | Dates | |
---|---|---|
Tableau Training | Nov 02 to Nov 17 | View Details |
Tableau Training | Nov 05 to Nov 20 | View Details |
Tableau Training | Nov 09 to Nov 24 | View Details |
Tableau Training | Nov 12 to Nov 27 | View Details |
As a Senior Writer for Mindmajix, Saikumar has a great understanding of today’s data-driven environment, which includes key aspects such as Business Intelligence and data management. He manages the task of creating great content in the areas of Programming, Microsoft Power BI, Tableau, Oracle BI, Cognos, and Alteryx. Connect with him on LinkedIn and Twitter.