run_cmd_on_cluster.py

Runs the specified command on all servers in the specified cluster, as though the user running the command is logged into a bash shell on a server in that cluster.

Syntax

run_cmd_on_cluster.py [-h] [-d] [--debug_config_file_parsing] [--debug_function_calls] [--debug_output_formatting] [--debug_threading_code] -e engineId -c clusterId [--plain] [-s] [-u username] [--ssh_debug]

If the command being called uses any options, put quotes around the entire command. For example, the following command gathers log files created in March 2012 on engine 1, cluster1, and saves them to a ZIP file:

run_cmd_on_cluster.py 1:1 "gather_logs.py -l march2012 -o zip"

Options

For descriptions of the server command line options, see the discussion about command line options for server scripts in MATRIXX Administration.

For more information about the MATRIXX environment variables, see the discussion about container directories and environment variables in MATRIXX Installation and Upgrade.

Analyze Queue Statistics on the Local Cluster

run_cmd_on_cluster.py "analyze_queue_stats.py -f ${MTX_TXN_LOG_DIR}/log_filename"