Managing product services
This topic describes how to manage product services using the system service and the Stack Manager tool.
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:
Enter the following command to stop all deployment types:
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:
Argument | Description | Command | Sample Output |
---|---|---|---|
-h | Displays help for the Stack Manager tool. | python truesight-sm.py [-h] python truesight-sm.py [-help] | positional arguments: |
install | Installs the application, database, or Elasticsearch | python install.py Note: This command internally uses the Stack Manager tool. | |
uninstall --deployment deploymentType | Uninstalls the application, database, or Elasticsearch | python truesight-sm.py uninstall --deployment application|database|elasticsearch --force | Uninstalling components for deployment 'deploymentType' Uninstallation completed successfully. |
list_deployments | Lists the available deployments | python truesight-sm.py list_deployments | [INFO] TrueSight Stack Manager V3.1.00.243 application /data1/bmc/truesight/application elasticsearch /data1/bmc/truesight/elasticsearch |
status --deployment application | Lists the status of the application node | python 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 elasticsearch | Lists 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 database | Lists the status of the database node | python truesight-sm.py status --deployment database | Component Version Status |
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 application | Displays the network details of the application node | python truesight-sm.py network show --deployment application | Name Subnet bridge 172.17.0.0/16 none - tagging_app-net 199.1.5.0/24 workmanager_data-net 199.1.3.0/24 |