Managing the TrueSight Smart Reporting service as a non-root user

After you install TrueSight Smart Reporting - Platform on the Windows operating system, the TrueSightSmartReporting service is automatically created. However, if you install the product on the Linux operating system, you must create the TrueSightSmartReporting service manually. You can use the service_utility.sh script to create and manage the TrueSightSmartReporting service. You must have root user privileges to create the TrueSightSmartReporting service. 

On Linux, you can use a non-root user to create and manage the TrueSightSmartReporting service. However, if a non-root user is not available, you can manage the TrueSightSmartReporting service as a root user.

This topic provides information about the following actions:

  • Viewing options for the service_utility.sh script
  • Creating and deleting the TrueSightSmartReporting service.
  • Viewing options for the TrueSightSmartReporting service.
  • Starting, stopping, restarting, and viewing status of the TrueSightSmartReporting service. 

Viewing options for the service_utility.sh script

Use the service_utility.sh script to create and delete the TrueSightSmartReporting service. To view the options available in this script, run the following command:

./service_utility.sh -h

The following options are displayed with brief descriptions:

  • create -u <user name>
  • delete

Creating the TrueSight Smart Reporting service

Use the service_utility.sh script to create the TrueSightSmartReporting service.

Note: Root privileges required

You must have root user privileges to create the TrueSightSmartReportingservice.

Do the following:

  1. As a root user, log in to the computer where you have installed  TrueSight Smart Reporting .
  2. Navigate to <installed_dir>/appserver/bin and run the following command:

    service_utility.sh create -u <user name>

    where user name is the user that you provide.

    This user will be the owner of the TrueSightSmartReporting service. The user can be a non-root user.

Deleting the TrueSight Smart Reporting service

Use the service_utility.sh script to create the TrueSight Smart Reporting  service. You can use a non-root user to delete the TrueSightSmartReportingservice.

Do the following:

  1. As a root user, log in to the computer where you created the TrueSightSmartReporting service.
    You must log in with the same root user that you created the service.
  2. Navigate to <installed_dir>/appserver/bin and run the following command:

    service_utility.sh delete

Viewing options for the TrueSight Smart Reporting service

To view the options available for theTrueSightSmartReporting service, run one of the following commands:

  • service TrueSightSmartReporting -h
  • .etc/init.d/TrueSightSmartReporting -h

The following options are available with a brief description:

  • start
  • stop
  • restart
  • status

Starting the TrueSight Smart Reporting service

You can start the TrueSightSmartReporting service by using the same user that you specified while creating the TrueSightSmartReporting service.  The user can be a non-root user.

Do the following:

  1. Log in to the computer where you have created the TrueSightSmartReporting service with the same user that you specified while creating the service.
  2. Run one of the following commands:

    • service TrueSightSmartReporting start
    • ./etc/init.d/TrueSightSmartReporting start

Stopping the TrueSight Smart Reporting service

You can stop the TrueSightSmartReporting service by using the same user that you specified while creating the TrueSightSmartReporting service.  The user can be a non-root user.

Do the following:

  1. Log in to the computer where you have created the TrueSightSmartReporting service with the same user that you specified while creating the service.
  2. Run one of the following commands:

    • service TrueSightSmartReporting stop
    • ./etc/init.d/TrueSightSmartReporting stop

Restarting the TrueSight Smart Reporting service

You can stop the TrueSightSmartReporting service by using the same user that you specified while creating the TrueSightSmartReporting service.  The user can be a non-root user.

Do the following:

  1. Log in to the computer where you have created the TrueSightSmartReporting service with the same user that you specified while creating the service.
  2. Run one of the following commands:

    • service TrueSightSmartReporting restart
    • ./etc/init.d/TrueSightSmartReporting restart

Viewing the status of the TrueSight Smart Reporting service

You can view status of the TrueSightSmartReporting service by using the same user that you specified while creating the TrueSightSmartReporting service.  The user can be a non-root user.

Do the following:

  1. Log in to the computer where you have created the TrueSightSmartReporting service with the same user that you specified while creating the service.
  2. Run one of the following commands:

    • service TrueSightSmartReporting status
    • ./etc/init.d/TrueSightSmartReporting status


Was this page helpful? Yes No Submitting... Thank you

Comments