Execute Remote Commands On One Or More Nodes; Copy Files Within Nodes In A Cluster - HP 1032 Manual

Clusterpack v2.4 tutorial
Table of Contents

Advertisement

3.2.3 How to Run SCM Web-based GUI
Back to Top

1.6.12 Execute remote commands on one or more nodes

A remote command can be executed on one or more nodes in the cluster from any node by using
the 'clsh' command in /opt/clusterpack/bin.
Some examples of clsh usage are:
Invoke 'uname -a' on all cluster nodes
% clsh uname -a
Invoke 'uname -a' on node1
% clsh -C node1 uname -a
Invoke 'uname -a' on all nodes in the cluster group 'sub1'
% clsh -C sub1 uname -a
Invoke 'uname -a' on node1 and node3
% clsh -C node1+node3 uname -a
For more details on the usage of clsh, invoke the command.
% man clsh
Back to Top

1.6.13 Copy files within nodes in a cluster

The 'clcp' command in /opt/clusterpack/bin is used to copy files between cluster nodes. Each file
or directory argument is either a remote file name of the form "%h:path" or "cluster:path" or a
local file name (containing no ':' characters).
Some examples of clcp usage are:
Update /etc/checklist on all nodes with the local /etc/checklist
% clcp /etc/checklist %h:/etc/checklist
% clcp /etc/checklist cluster:/etc/checklist

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents