ITG Unix Support
>    
     |  List directory  |  History  |  Similar  |  Print version  

HPC > Bryce Cluster > Running a command on multiple cluster nodes

Running a command on multiple cluster nodes

We have a script named clrun that you can use to run a command on all of the nodes on a cluster. The syntax is simple: first give it a command, then give it a list of machines to run the command on.

For instance, if you wanted to create a directory and set the permissions on it on all nodes (except for node 1, it's special), you can run:

clrun "mkdir /tmp/gauss && chown tstrombe /tmp/gauss" all

If you wanted to run vmstat on nodes 1-4, you could type:

clrun vmstat 1 2 3 4

 

Reference http://wiki.chem.indiana.edu/HPC/RunningACommandOnMultipleClusterNodes
Rights rw-rw-r--   tstrombe   IonMan

Prev. About Bryce   clrun Next