Managing product services

This topic describes how to manage product services using the system service and the Stack Manager tool.

Important

Starting from version 3.0.01, services for all deployment types, database, Elasticsearch, and application, are started automatically on system startup.

Using the system service

TrueSight Server Automation installs a new system service on the application, Elasticsearch, and database nodes. On system startup, this system service starts the services for these deployment types automatically.

In addition, you can use this system service to start and stop all of these deployment types using a single command. For example, if application and database are installed on the same computer, you can use this service to start and stop both of these deployment types using a single command. 

Enter the following command to start all deployment types:

systemctl start tsvm

Enter the following command to stop all deployment types:

systemctl stop tsvm

Note

If two of the deployment types (for example, application and database) are installed on the same computer, and you want to start or stop the services only for one of these, use the Stack Manager tool, as described in the following section.

Using the Stack Manager tool

TrueSight Vulnerability Management provides the Stack Manager tool to install, uninstall and manage three nodes, application server, database, and Elasticsearch in a deployment. You can download this tool (TSVM<versionNo>-SM-LIN64.zip) from EPD.

After downloading the tool, extract it, and navigate to the TSVM<versionNo>-SM-LIN64/truesight-sm directory, and run the commands listed in the table below. 

Use the following syntax to run the Stack Manager tool for performing various operations on nodes:

python truesight-sm.py argument

The following table lists the arguments available for the command:

ArgumentDescriptionCommandSample Output
-hDisplays help for the Stack Manager tool.

python truesight-sm.py [-h]

python truesight-sm.py [-help]

positional arguments:
  {install,create_inputs_file,list_deployments,uninstall,start,stop,status,network}
install                     Installs the stack.
create_inputs_file  Creates inputs_file.yml to be used for installation.
list_deployments    Lists deployments.
uninstall                  Uninstalls the stack.
start                         Starts the stack.
stop                         Stops the stack.
status                      Shows the status of stack.
network                   Network related commands.

installInstalls the application, database, or Elasticsearch

python install.py

Note: This command internally uses the Stack Manager tool.

See Installing in the interactive mode.
uninstall --deployment deploymentTypeUninstalls the application, database, or Elasticsearchpython truesight-sm.py uninstall --deployment application|database|elasticsearch --force

Uninstalling components for deployment 'deploymentType'

Uninstallation completed successfully.

list_deploymentsLists the available deployments

python truesight-sm.py list_deployments

[INFO] TrueSight Stack Manager V3.1.00.243
[INFO] Deployments:
deployment-name  location
---------------  --------

application      /data1/bmc/truesight/application
database         /data1/bmc/truesight/database

elasticsearch    /data1/bmc/truesight/elasticsearch
status --deployment applicationLists the status of the application nodepython truesight-sm.py status --deployment application

Component                        Container Name                                 Version     Status
---------                        --------------                                 -------     ------

consul                           truesight-infra-ext-consul                     3.0.00.01   running

discovery-connector              truesight-common-discovery-connector           3.0.00.215  running

orchestration-connector          truesight-common-orchestration-connector       3.0.00.235  running

redis                            truesight-infra-ext-redis                      3.0.00.01   running

tagging                          truesight-common-tagging                       3.0.00.243  running

tsna-connector                   truesight-common-tsna-connector                3.0.00.233  running

tssa-connector                   truesight-common-tssa-connector                3.0.00.223  running

vulnerability-management-drm     truesight-app-vulnerability-management-drm     3.0.00.240  running

vulnerability-management-drw     truesight-app-vulnerability-management-drw     3.0.00.240  running

vulnerability-management-portal  truesight-app-vulnerability-management-portal  3.0.00.266  running

workmanager                      truesight-common-workmanager                   3.0.00.226  running

status --deployment  elasticsearchLists the status of the Elasticsearch node

python truesight-sm.py status --deployment elasticsearch

Component  Version   Status
---------  -------   ------

es         1.7.3.29  DCA Index Service Daemon is running
status --deployment databaseLists the status of the database node

python truesight-sm.py status --deployment database

Component  Version    Status
---------  -------    ------
postgres   10.3-2.20  pg_ctl: server is running (PID: 6399)

start --deployment <deploymentType>Starts the application, database, or Elasticsearch node

python truesight-sm.py start --deployment application|elasticsearch|database

Proceeding with start command for deployment 'deploymentType'

server started

stop --deployment <deploymentType>Stops the application, database, or Elasticsearch node

python truesight-sm.py stop --deployment application|elasticsearch|database

Proceeding with start command for deployment 'deploymentType'

server stopped

network show --deployment applicationDisplays the network details of the application node

python truesight-sm.py network show --deployment application

Name                                   Subnet
----                                   ------

bridge                                 172.17.0.0/16
configurator_app-net                   199.1.1.0/24
host                                   -

none                                   -

tagging_app-net                        199.1.5.0/24
tagging_ext-net                        199.1.4.0/24
vulnerabilitymanagementdrm_app-net     199.1.8.0/24
vulnerabilitymanagementportal_app-net  199.1.7.0/24
vulnerabilitymanagementportal_ext-net  199.1.6.0/24
workmanager_app-net                    199.1.2.0/24

workmanager_data-net                   199.1.3.0/24
Was this page helpful? Yes No Submitting... Thank you

Comments