Managing TrueSight Smart Reporting - Platform from the command line interface


As an administrator, you can use the command line interface (CLI) to perform various actions in TrueSight Smart Reporting - Platform. You can run commands on the Windows and Linux operating systems. This topic provides information about setting up and running the CLI.


To set up and run the command line interface

You can set up and run the command line interface on a computer whereTrueSight Smart Reporting - Platform is installed, or on a remote computer, where TrueSight Smart Reporting - Platform is not installed.

Setting up and running the CLI on a computer where TrueSight Smart Reporting is installed

Do the following:

  1. Ensure that TrueSight Smart Reporting - Platform is up and running.
  2. Navigate to the following directory:
    • Windows: <TSSR_INSTALLATION_DIRECTORY>\utilities\cli 
    • Linux: <TSSR_INSTALLATION_DIRECTORY>/utilities/cli 
  3. Perform one of the following tasks depending on your operating system:
    • Windows: Run the TSR.bat file.
    • Linux: Do the following:

      1. If you have not given the execute permission to the TSR.sh file after installing TrueSight Smart Reporting - Platform, run the following command to give the execute permissions:
        chmod 755 TSR.sh
      2. Run one of the following commands:

        • ./TSR.sh
        • sh TSR.sh

Setting up and running the CLI on a computer where TrueSight Smart Reporting is not installed

Do the following:

  1. Ensure the following:
    • TrueSight Smart Reporting - Platform is up and running.
    • The JAVA_HOME environment variable is configured on the computer where TrueSight Smart Reporting - Platform is not installed.
    • The target computer can access the computer where TrueSight Smart Reporting - Platform is installed.
  2. On the computer where TrueSight Smart Reporting - Platform is installed, navigate to the following directory:
    • Windows: <TSSR_INSTALLATION_DIRECTORY>\utilities\cli 
    • Linux: <TSSR_INSTALLATION_DIRECTORY>/utilities/cli 
  3. On the target computer, unzip the cli.zip file, and perform one of the following tasks depending on your operating system:
    • Windows: Run the TSR.bat file.
    • Linux: Do the following:
      1. If you have not given the execute permission to the TSR.sh file after installing TrueSight Smart Reporting - Platform, run the following command to give the execute permissions:
        chmod 755 TSR.sh
      2. Run one of the following commands:
        • ./TSR.sh
        • sh TSR.sh

Supported CLI commands

The following CLI commands are supported on TrueSight Smart Reporting - Platform:

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*