HP 2064-M ClusterPack V2.4 Tutorial - Page 73
Execute remote commands on one or more nodes, 6.13 Copy files within nodes in a cluster
View all HP 2064-M manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 73 highlights
z 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: z Invoke 'uname -a' on all cluster nodes % clsh uname -a z Invoke 'uname -a' on node1 % clsh -C node1 uname -a z Invoke 'uname -a' on all nodes in the cluster group 'sub1' % clsh -C sub1 uname -a z 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: z Update /etc/checklist on all nodes with the local /etc/checklist % clcp /etc/checklist %h:/etc/checklist % clcp /etc/checklist cluster:/etc/checklist