Debian Codegraph @

doc/txt/clustershell.rst

raw
1 ClusterShell is an event-driven open source Python framework, designed to run
2 local or distant commands in parallel on server farms or on large Linux
3 clusters. It will take care of common issues encountered on HPC clusters, such
4 as operating on groups of nodes, running distributed commands using optimized
5 execution algorithms, as well as gathering results and merging identical
6 outputs, or retrieving return codes. ClusterShell takes advantage of existing
7 remote shell facilities already installed on your systems, like SSH.
8
9 ClusterShell provides clush, clubak and cluset/nodeset, convenient command-line
10 tools that allow traditional shell scripts to benefit from some of the
11 library's features:
12
13 - **clush**: issue commands to cluster nodes and format output
14
15 Example of use:
16
17 ::
18
19 $ clush -abL uname -r
20 node[32-49,51-71,80,82-150,156-159]: 2.6.18-164.11.1.el5
21 node[3-7,72-79]: 2.6.18-164.11.1.el5_lustre1.10.0.36
22 node[2,151-155]: 2.6.31.6-145.fc11.2.x86_64
23
24 See *man clush* for more details.
25
26 - **clubak**: improved dshbak to gather and sort dsh-like outputs
27
28 See *man clubak* for more details.
29
30 - **nodeset** (or **cluset**): compute advanced nodeset/nodegroup operations
31
32 Examples of use:
33
34 ::
35
36 $ echo node160 node161 node162 node163 | nodeset -f
37 node[160-163]
38
39 $ nodeset -f node[0-7,32-159] node[160-163]
40 node[0-7,32-163]
41
42 $ nodeset -e node[160-163]
43 node160 node161 node162 node163
44
45 $ nodeset -f node[32-159] -x node33
46 node[32,34-159]
47
48 $ nodeset -f node[32-159] -i node[0-7,20-21,32,156-159]
49 node[32,156-159]
50
51 $ nodeset -f node[33-159] --xor node[32-33,156-159]
52 node[32,34-155]
53
54 $ nodeset -l
55 @oss
56 @mds
57 @io
58 @compute
59
60 $ nodeset -e @mds
61 node6 node7
62
63 See *man nodeset* (or *man cluset*) for more details.
64
65 Please visit the ClusterShell website_.
66
67 .. _website: https://clustershell.readthedocs.io/
68