cli_on_cluster command

Purpose

Run a command on all nodes in the cluster.

Syntax

 cli_on_cluster  [ -S | -P ]  'command string'

Description

Runs a command as root, either serially or in parallel, on all cluster nodes. The output from the command (stdout and stderr) is displayed at the command line. Each line of output is preceded by the node name followed by a colon.

Flags

-S
Runs one command at a time on each node in the cluster. Once the command finishes, the next command is run.
-P
Run the command in parallel on all nodes in the cluster simultaneously.

Example

To reboot every node in the cluster, enter:
cli_on_cluster -S 'shutdown -Fr'