cli_on_node command

Purpose

Run an arbitrary command on a specific node in the cluster.

Syntax

cli_on_node  [ -V <volume group> | -R <resource group | -N <node> ] 'command string'

Description

Runs a command as root on either an explicitly specified node, or on the cluster node that owns a specified volume group or resource group. Any output from the command (stdout and stderr) is displayed at the command line.

Flags

-V volume group
Runs the command on the node or nodes on which the specified volume group is in a varied on state. If the volume group is in a varied on state in concurrent mode on multiple nodes, the command is run on all nodes.
-R resource group
Runs the command on the node that currently owns the specified resource group.
-N node
Runs the command on the specified node. This flag identifies the PowerHA® SystemMirror® node name.

Example

To run the ps -efk command on the node that is named awesome, enter:
cli_on_node -N awesome 'ps -efk'