The topics in this section include reference content for Tableau Services Manager (TSM) command line interface (CLI) to support Tableau Server. Show
TSM is used to manage installation and configuration of Tableau Server. To learn more about TSM, see Tableau Services Manager Overview. You can automate the installation and configuration tasks supported by the TSM CLI using the TSM API. To learn more about the prerelease (Alpha) TSM API, see Tableau Services Manager API. Using the tsm CLIYou can run tsm commands on the initial node (the node where TSM is installed), or on any additional node in the cluster. To run tsm commands, you need to open Windows Command Prompt. Do not use PowerShell to run tsm commands. Using PowerShell can cause unexpected behavior.
Authenticating with tsm CLIBeginning in the 2019.2 release of Tableau Server, running tsm commands will not require you to enter a password if the following are true:
Logging into tsm CLI locallyIf you are running tsm commands on the local computer with user account that is a member of a TSM-authorized group, then you will not need to specify a password. In this case, just run the command, for example: Logging into tsm CLI remotelyIf you are running TSM commands from a node in a cluster where the Tableau Server Administration Controller service is not running, then you must authenticate a session with the Tableau Server Administration Controller service on the remote computer before you can run commands. For example, run the following command: Where After running this command, you will be prompted for a password. After the account has been authenticated, you can run TSM commands. Scripting and automating with tsm CLITSM is a batch file. To run TSM commands in another batch
file, use the To run automation on a Tableau Server without a password in the script file, run the script on the initial node and with an account in the proper TSM-authorized group. See the "Authenticating" section above. Viewing help content in the shellTo view minimal
help content from a command line, use the Synopsis Commands Help for all tsm commands Show help for a specific command category. For example, Show help for a specific command. For example, List all top-level commands or categories. CategoriesOther articles in this sectionWindows File SystemIn Windows, files are organized in directories (aka folders). The directories are organized in a hierarchical tree structure, starting from the so-called root directory for EACH of the hard drive (as illustrated). A directory may contain sub-directories and files. A sub-directory may contain sub-sub-directories and files, and so on. Windows' file system is organized in drives, identified by a drive letter followed by a colon, e.g., Windows' file system is NOT case-sensitive, a rose is a Rose, and is a ROSE. Filename and File TypeA Windows' filename consists of two parts: filename and file type (or file extension) separated by a dot, e.g., View File Type in Windows "File Explorer"For programmers, it is important to SEE the file type inside the "File Explorer", which is hidden by default. For
example, " To view the file type, launch "File Explorer" ⇒ "View" menu ⇒ Check "File name extensions". Drive-Letter, Pathname and FilenameTo reference a file, you need to provide the drive letter, the directory name (aka pathname) and the filename. For example, in " The pathname (or directory name) can be specified in two ways:
Command-Line Interface "CMD"Programmers use a Command-Line Interface (CLI) to issue text-commands to the Operating System (OS), instead of clicking on a Graphical User Interface (GUI). This is because command-line interace is much more powerful and flexible than the graphical user interface. The CMD (Command Interpreter or Command Prompt) is a command-line Interface (or shell). It supports a set of commands and utilities; and has its own programming language for writing batch files (or shell scripts). You can launch a CMD via:
The CMD displays a prompt which ends with a " Current Drive and Current Working DirectoryEach CMD session maintains a so-called current drive and current
working directory, which is shown in the prompt in the form of " Set Current Drive "x:" CommandTo set or change the current drive, enter the drive letter followed by a colon ( prompt> d: D:\...> c: C:\...> Take note that commands are NOT case-sensitive in CMD. Change Directory "cd" CommandTo change current working directory under the
current drive, use command " It is important to take note that you need to set the current drive first (via " You can specify new-path in two ways: absolute or relative. An absolute path begins with a " prompt> c: C:\....> cd \ C:\> cd Windows C:\Windows> cd system C:\Windows\system> cd \myproject\java C:\myproject\java> cd "\Program Files\java\jdk1.7.0_07\bin" C:\Program Files\java\jdk1.7.0_07\bin> d: D:\....> cd \ D:\> cd Java D:\Java> Take note that:
You can prompt> c: C:\....> cd \ C:\> cd Program Files C:\Program Files> cd java C:\Program Files\java> cd jdk1.7.0_07 C:\Program Files\java\jdk1.7.0_07> cd bin C:\Program Files\java\jdk1.7.0_07\bin> prompt> c: C:\....> cd \Program Files\java\jdk1.7.0_07\bin C:\Program Files\java\jdk1.7.0_07\bin> Parent directory (..) and Current Directory (.)You can use " C:\Program Files\java\jdk1.7.0_07\bin> cd .. C:\Program Files\java\jdk1.7.0_07> cd .. C:\Program Files\java> cd .. C:\Program Files> Setting proper working directory is important. For example, to compile a Java program called "
Directory "dir" CommandYou can list the contents of the current directory via the prompt> dir ...... prompt> dir Hello.java Wildcards * and ?You can use wildcards for pattern matching. The wildcard prompt> dir *.java ..... prompt> dir test* ..... prompt> dir test?.txt ..... Windows Graphical Interface - File ExplorerYou could, of course, view the contents of a directory (folder) using the Windows' "File Explorer" more conveniently. But,
Tips and Tricks for File Explorer
Shortcut Keys in CMD Shell - IMPORTANTPrevious Commands in Command History: You can use the up/down arrow keys to scroll through the previous/next command in the command history. Auto-Complete with TAB: Type the first few characters of a file/directory name, and press TAB key to auto-complete the file/directory name. Press TAB key repeatedly to cycle through all the matches. Copy/Paste: In the latest CMD, you can use Ctrl-c/Ctrl-v for Copy/Paste, by enabling "Enable Ctrl Key Shortcuts" (via click on the CMD icon (top-left corner) ⇒ Properties ⇒ Options ⇒ Edit Options ⇒ Check "Enable Ctrl Key Shortcuts"). (In the earlier version of CMD, you need to enable Copy/Paste by clicking on the CMD icon (top-left corner) ⇒ Properties ⇒ Options ⇒ Edit Options ⇒ Check "QuickEdit Mode". Once enabled, you can right-click to copy the highlighted text, and another right-click to paste on the command-line.) Moving the Command-Line Cursor: In CMD, you CANNOT use mouse pointer to move the command-line cursor. Instead, you need to use Left/Right-Arrow, Backspace or Delete keys to move the command-line cursor. These are the various ways of moving the command-line cursor:
Tips and Tricks for CMD
Windows Tips and TricksKeyboard Shortcuts for WindowsProgrammers use keyboard shortcuts instead of mouse to perform most of the editing tasks, such as positioning the cursor, selecting texts, copy and paste. Below are the frequently-used keyboard shortcuts for the programmers.
Mouse Clicks
Source-Code Editors and IDETo learn a new programming language, you could begin with a graphical Source-Code Editor, with provides syntax highlighting. But you must switch over to an Integrated Development Environment (IDE), which provides a graphic debugger, when you are working on complex programs and projects to improve your productivity. Read "Source-Code Editors and IDE". Windows Default Text Editor "Notepad"Notepad is a plain text editor, which does not support syntax highlighting. Do NOT use NotePad for programming. At a minimum, use NotePad++ to replace NotePad, and associate the text files ( Not sure if NotePad can be removed from Windows! REFERENCES & RESOURCES
What does SFC Scannow command do?The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache.
Should I run DISM or SFC first?Should I run DISM or SFC first? SFC is a tool for repairing common Windows files and system structures. SFC will scan the integrity of all protected operating system files, including those that are not on your hard drive. It should be used before running DISM.
How do I use command prompt to scan?In the search bar, type CMD . Right-click CMD.exe and select Run as Administrator.. From the desktop, press the Windows + X shortcut key combination.. In the menu, select Command Prompt (Admin). ... . On the User Account Control (UAC) prompt, click Yes.. In the command prompt window, type SFC /scannow and press Enter .. When should you use SFC Scannow?Although you shouldn't usually need to use the tools, it's the one to turn to when you're experiencing frequent crashes, freezes, and errors, but SFC either can't repair your system files or is unable to run at all.
|