ClusterPack Tutorial

z
single local to multiple remote
% clcp src dst:%h or clcp src cluster-group:dst
z
multiple local to multiple remote
%
clcp src dst.%h %h:dst
z
multiple remote to multiple local
% clcp %h:src dst.%h
Examples
1. Assume that the file /etc/checklist needs to be updated on all HP hosts. Also
assume that this file is different on all hosts. The following is a way in
which this can be done:
%
clcp %h:/etc/checklist checklist.%h
% vi checklist.*
Make necessary changes.
% clcp checklist.%h %h:/etc/checklist
If the CLUSTER environment variable was defined as host0+host1, then
the above would map to:
% rcp host0:/etc/checklist checklist.host0
%
rcp host1:/etc/checklist checklist.host1
% vi checklist.host0 checklist.host1
% rcp checklist.host0 host1:/etc/checklist
% rcp checklist.host1 host2:/etc/checklist
2. Another way to do the same thing using "%c" instead of "%h" is:
% clcp %h:/etc/checklist checklist.%c
%
vi checklist.*
Make necessary changes.
% clcp checklist.%c %h:/etc/checklist
which maps to:
%
rcp host0:/etc/checklist checklist.0