ClusterPack Tutorial

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:
z
Update /etc/checklist on all nodes with the local /etc/checklist
% clcp /etc/checklist %h:/etc/checklist
% clcp /etc/checklist cluster:/etc/checklist
z
Update /etc/checklist on node1 and node3 with the local /etc/checklist
%
clcp -C node1+node3 /etc/checklist %
h:/etc/checklist
z
Copy multiple local files to all nodes
% clcp a.txt b.txt c.txt %h:/tmp/.
z
Copy multiple remote files to multiple local files
% clcp %h:/tmp/a.txt /tmp/a.%h.txt
For more details on the usage of clcp, invoke:
% man clcp
Back to Top
1.6.14 List a user's process status on one or more cluster nodes
The 'clps' command in /opt/clusterpack/bin is used to produce a 'ps' output that includes the host
name. A clps command with no arguments lists all the processes associated with the user
invoking the command on all Compute Nodes.
Some examples of clps usage are:
z
List all processes belonging to user 'joeuser'
% clps -u joeuser