run_cmd_on_blade.py

Runs the specified command on the specified server, as if the user running the command is logged into a bash shell on that server.

Syntax

run_cmd_on_blade.py [-h] [-d] -e engineId -c clusterId -b bladeId [-w 0|1 -t seconds] [--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 starts server 4 in plain message mode.

run_cmd_on_blade.py -b 4 "start_engine.py -p"

Examples

Display the IP address of server 3 in the local engine:
run_cmd_on_blade.py -b 3  ./sbin/ifconfig
Display the host name of server 4 in engine 2, cluster 2:
run_cmd_on_blade.py 2:2:4 hostname