HP 1032 Manual page 132

Clusterpack v2.4 tutorial
Table of Contents

Advertisement

single local to single local
% clcp src dst
single local to multiple local
% clcp src dst.%h
single local to multiple remote
% clcp src dst:%h or clcp src cluster-group:dst
multiple local to multiple remote
% clcp src dst.%h %h:dst
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.*

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents