Give a chestnut! Tableau Tips (96): Offline activation and deactivation of Tableau Server for Linux

published: 2021-05-26

Why do I need to activate offline?

In actual enterprise applications, our server computers are based on data privacy and data security requirements. The network environment used is an internal network and cannot access the external Internet. In this case, installing, deactivating, migrating, or upgrading Tableau Server requires an offline approach.

Before we sharedTableau Desktop offline activation with Tableau Server for Windows is activated offline Methods.

Today, let's talk about how to activate and deactivate Tableau Server for Linux offline!

In this issue of "Give a Chestnut", the Tableau trick that Ada wants to share is: Offline activation and deactivation of Tableau Server for Linux.

Tips:Tableau Server 2018.2 and above, Windows and Linux products, use TSM management commands in a unified manner. therefore,This chestnut is also suitable for users of Tableau Server 2018.2 and above for Windows.

Specific steps are as follows: 

【Activate Tableau Server offline】

1, generate an offline activation request file

On the server machine, run the command: tsm licenses get-offline-activation-file -k<product-key> -o <target-directory>

Copy the offline activation file (offline.tlq) from the target directory to a computer that has Internet access.

 

2. Upload an offline activation request to Tableau Server

On a computer with Internet access, go to the Tableau Server product activation page:

https://www.tableau.com/support/activation

(You need to copy the link to the browser) and upload the offline.tlq file.

 

Create an activation file, activation.tlf, click to download activation.tlf

Download the generated activation file from Tableau.

3. Initialize or activate the license

Copy the activation file activation.tlf to a location accessible from the Tableau Server computer and run the following command:

tsm licenses activate -f<path-and-activation-file>

If you are activating the Tableau Server license on your computer for the first time, you will receive a prompt to "require one exchange to generate another activation request file to complete the activation", then repeat the above steps to activate the license, including Create a new offline.tlq file (if you are not sure if you need to repeat these steps, you can run this command: tsm licenses list)

If you see the following message, you will need to repeat the above steps: No licenses are currently activated.)

Repeat the steps to generate the offline.tlq file a second time.

 

If it is not the first time you have activated your Tableau license on your computer, or have completed the above steps to activate your license, execute the command:

tsm licenses activate -f <path-and-activation-file>

Display activated successfully!

 

【Disable Tableau Server offline】

1. Log in as an administrator TSM

Log in to TSM using the Tableau Server administrator account and run the following command:

tsm licenses get-offline-deactivation-file -k -o

2, generate deactivate.tlq file

 

3. Move the deactivate.tlq file to the Internet environment

Move the deactivate.tlq file from the deactivated file directory specified in the previous command to a trusted computer that has access to the Internet

 

4, submit the deactivate.tlq file

On a computer with Internet access, open a web browser and access the product activation page for Tableau Server. Follow the instructions on this page to submit the deactivate.tlq file

 

5, save the key to return the file

When prompted, save the license key return file (return.tlr) from the Product Activation page.

 

6, the migration key returns the file

Return the license key to the file (return.tlr) from the trusted computer that has access to the Internet to the server.

 

7, log in again TSM

Log in to TSM again using the Tableau Server administrator account and run the following command:

tsm licenses deactivate -f<path-to-license-key-return-file>

The display is disabled successfully.

 

Today's Tableau trick, are you getting it?Give it a try!