Skip to main content

ClusterShell library and tools

Project description

ClusterShell is an event-driven open source Python framework, designed to run local or distant commands in parallel on server farms or on large Linux clusters. It will take care of common issues encountered on HPC clusters, such as operating on groups of nodes, running distributed commands using optimized execution algorithms, as well as gathering results and merging identical outputs, or retrieving return codes. ClusterShell takes advantage of existing remote shell facilities already installed on your systems, like SSH.

ClusterShell provides clush, clubak and cluset/nodeset, convenient command-line tools that allow traditional shell scripts to benefit from some of the library’s features:

  • clush: issue commands to cluster nodes and format output

Example of use:

$ clush -abL uname -r
node[32-49,51-71,80,82-150,156-159]: 2.6.18-164.11.1.el5
node[3-7,72-79]: 2.6.18-164.11.1.el5_lustre1.10.0.36
node[2,151-155]: 2.6.31.6-145.fc11.2.x86_64

See man clush for more details.

  • clubak: improved dshbak to gather and sort dsh-like outputs

See man clubak for more details.

  • nodeset (or cluset): compute advanced nodeset/nodegroup operations

Examples of use:

$ echo node160 node161 node162 node163 | nodeset -f
node[160-163]

$ nodeset -f node[0-7,32-159] node[160-163]
node[0-7,32-163]

$ nodeset -e node[160-163]
node160 node161 node162 node163

$ nodeset -f node[32-159] -x node33
node[32,34-159]

$ nodeset -f node[32-159] -i node[0-7,20-21,32,156-159]
node[32,156-159]

$ nodeset -f node[33-159] --xor node[32-33,156-159]
node[32,34-155]

$ nodeset -l
@oss
@mds
@io
@compute

$ nodeset -e @mds
node6 node7

See man nodeset (or man cluset) for more details.

Please visit the ClusterShell website.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clustershell-1.10.1.tar.gz (440.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clustershell-1.10.1-py3-none-any.whl (219.4 kB view details)

Uploaded Python 3

File details

Details for the file clustershell-1.10.1.tar.gz.

File metadata

  • Download URL: clustershell-1.10.1.tar.gz
  • Upload date:
  • Size: 440.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clustershell-1.10.1.tar.gz
Algorithm Hash digest
SHA256 b27af0baa9d1b10ac6a2729700b03e5a2796c838cbb6aaf1902698226ab9ea8a
MD5 b4216d481b88bd9be10164ef76aa8118
BLAKE2b-256 2d603eac7912d749cf1f624afee12555d1c751191e8986afe45a21774904c534

See more details on using hashes here.

Provenance

The following attestation bundles were made for clustershell-1.10.1.tar.gz:

Publisher: release.yml on clustershell/clustershell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clustershell-1.10.1-py3-none-any.whl.

File metadata

  • Download URL: clustershell-1.10.1-py3-none-any.whl
  • Upload date:
  • Size: 219.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clustershell-1.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df3b7b2a945b067416e0f31ae8c32910d3d97c356e2638c9d80a5a17a92f4047
MD5 66628ee4bc20f75c4c919d43623b5171
BLAKE2b-256 635bc606f2c2ec345650e13a4d3c180b501fbf7a54031145c8b1d4364f3e8e1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for clustershell-1.10.1-py3-none-any.whl:

Publisher: release.yml on clustershell/clustershell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page