stop_tra_cluster.py
The stop_tra_cluster.py script stops both Traffic Routing Agents in an HA pair.
Syntax
Note: Before performing the stop operation, the
stop_tra_cluster.py script prompts the user whether to
continue because the result can cause a loss of service. To continue, enter
y or Y.
stop_tra_cluster.py [-h] [--no_prompt] [-v] [-u username] [-w seconds] [--no_log_file]
Options
The stop_tra_cluster.py script has the following options.
- -h, --help
- Help about the script options.
- --no_prompt
- Run the script without prompting the user to confirm whether to continue with the
operation. The user is prompted to prevent running the script on an engine
that is running the HA ACTIVE processing cluster. Using the
--no_prompt
option might cause a loss of service. See the preceding note. - -v, --verbose
- Verbose output.
- -u username, --user username
- When this option is set, run the script as the specified user. The default is the current logged in user.
- -w seconds, --wait seconds
- Wait the specified number of seconds before validating the start-up status of all nodes in the cluster.
- --no_log_file
- Do not log messages from the utility to the /var/log/tra/tra_util.log file. Only print messages to stdout.
Stop the Local Traffic Routing Agent Cluster
stop_tra_cluster.py
********************************************************************************
WARNING: This action could cause a loss of service.
********************************************************************************
Do you want to continue (y/n)?y
INFO: stopping node 2...
INFO: node 2 is stopped
INFO: stopping node 1...
INFO: node 1 is stopped