validate_tra_config.py
The
validate_tra_config.py script checks the basic configuration settings
for an HA pair of Traffic Routing Agent nodes, confirms that password-less SSH access is enabled, and that basic networking
parameters are set. Run this script as the tra
user on a server hosting Traffic Routing Agent to validate.
Syntax
validate_tra_config.py [ -h ] [ -c ] [ -g ] [ -s ] [ -u username] [ -v ] [ --network-enabler ] [--no_log_file]
Options
The validate_tra_config.py script has the following options:
When this script is run with no arguments, it validates the configuration of the Traffic Routing Agent node running on the current server and validates the peer Traffic Routing Agent node running on the remote server.
- -h, --help
- Help about the script options.
- -c, -copy-config
- Copy the TRA configuration file to remote hosts. Two TRA nodes must have already been configured.
- -g, --gcp
- Validate Google Cloud Platform (GCP)-specific configuration.
- -s, --single-node
- Validate the configuration of this single Traffic Routing Agent node only.
- -u username, --user username
- When this option is set, run the script as the specified user. The default is the logged in user.
- -v, --verbose
- Verbose output.
- --network-enabler
- Use this option when the Network Enabler is installed on the TRA node to ensure that the validation process does not reset Network Enabler configuration in the mtx_config.xml file.
- --no_log_file
- Do not log messages from the utility to the /var/log/tra/tra_util.log file. Only print messages to stdout.
Validate Two Traffic Routing Agent Nodes
validate_tra_config.py
INFO: running /opt/tra/bin/validate_tra_config.py on node 1 (mtx-ibm5-bld01, 10.10.226.51) ...
INFO: passwordless ssh access to 127.0.0.1 is enabled
INFO: passwordless ssh access to 10.10.226.51 is enabled
INFO: passwordless ssh access to 10.10.226.52 is enabled
INFO: TRA cluster configured for point-to-point
INFO: address 10.10.224.51 is configured on interface enp6s1f0 used for VIP vip3
INFO: address 10.10.224.51 is configured on interface enp6s1f0 used for VIP vip2
INFO: file /opt/tra/conf/tra_config.xml is same on all nodes
INFO: running /opt/tra/bin/validate_tra_config.py on node 2 (mtx-ibm5-bld02, 10.10.226.52) ...
INFO: passwordless ssh access to 127.0.0.1 is enabled
INFO: passwordless ssh access to 10.10.226.51 is enabled
INFO: passwordless ssh access to 10.10.226.52 is enabled
INFO: TRA cluster configured for point-to-point
INFO: address 10.10.224.52 is configured on interface enp6s1f0 used for VIP vip3
INFO: address 10.10.224.52 is configured on interface enp6s1f0 used for VIP vip2