cl_nodecmd command

Purpose

Runs a given command in parallel on a given set of nodes.

Syntax

cl_nodecmd [-q] [-cspoc "[-f] [-n nodelist | -g resourcegroup ]" ] command args

Flags

-q
Specifies quiet mode. All standard output is suppressed.
-cspoc
Argument used to specify one of the following C-SPOC options:

-f - Forces cl_nodecmd to skip PowerHA® SystemMirror® version compatibility checks and node accessibility verification.

-g resource group - Generates the list of nodes participating in the resource group where the command will be executed.

-n nodelist - Runs the command on this list of nodes. If more than one node, separate nodes listed by commas.

command
Specifies the command to be run on all nodes in the nodelist.
args
Specifies arguments that are passed to the cl_nodecmd command.

Examples

  1. Run the lspv command on all cluster nodes.
    cl_nodecmd lspv
  2. Runs the lsvg rootvg command on nodes beaver and dam , suppressing standard output.
    cl_nodecmd -cspoc "-n beaver,dam" lsvg rootvg