HP 1032 ClusterPack V2.4 Tutorial - Page 132
Examples
View all HP 1032 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 132 highlights
z single local to single local % clcp src dst z single local to multiple local % clcp src dst.%h 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.*