Skip to main content

# HPC Pack ACM CLI

HPC Pack ACM diagnostic tools are a set of command line tools for diagnosing HPC clusters. They’re distributed in a Python package hpc-acm-cli, based on [HPC Pack ACM API](https://github.com/Azure/hpcpack-acm-api-python).

## Prerequisites

Python 2.7, 3.5 or 3.6 is required.

## Installation

There’re several ways to install it. Usually, you should use the PyPI. Other ways are mainly for the package development.

### Install from PyPI

This is a standard way to install a Python package.

` python -m pip install --user hpc-acm-cli `

Note: python may be python2 or python3 for Python 2 or Python 3 for some Linux distributions.

### Install from GitHub

You can install the latest code in development from GitHub by

` python -m pip install --user git+https://github.com/Azure/hpcpack-acm-cli.git#egg=hpc-acm-cli `

### Install from Source

Get the source code to local and then execute

` python -m pip install --user -e <path-to-the-source-directory> `

Note: the -e option enable the “editable” mode for the package so that any change you do in the source will take effect without reinstallation.

## Usage

After installation, there’re 3 commands avaiable: clusnode, clusdiag and clusrun for checking cluster nodes, checking/doing diagnostic jobs and checking/running general command separately. They each have subcommands, such as list, show new, etc..

### Notes for Python on Windows

If you’re using a [Python release for Windows](https://www.python.org/downloads/windows/), make sure the path of the Scripts direcotry of the Python installation is on the PATH, since the above commands are installed in this direcotry.

Take Python 3.6 for example. By default, it will be installed to C:Users<username>AppDataLocalProgramsPythonPython36. And thus you need to add C:Users<username>AppDataLocalProgramsPythonPython36Scripts to the PATH.

### Common Usage

  • Execute a command with -h paramter to list its subcommands, like clusnode -h.

  • For help of a subcommand, say list, show it like clusnode list -h.

  • All these commands require some common parameters. They’re –host, –user and –password. You can save the values for them in a configuration file and thus avoid entering them each time you run a command. See configuration section below for more.

  • The examples below assume you have the required parameters provided in the configuration file. You could provide them on the command line instead. But if they’re missing, you’ll encounter an error at runtime.

### clusnode

clusnode is for checking cluster nodes.

For example, to list the nodes in a cluster, execute

` clusnode list `

By default, it will list 100 nodes at once. If you prefer more, use the –count parameter, like

` clusnode list --count 1000 `

There’s also a parameter –last-id for paging. Refer to command help for more.

To check a specific node

` clusnode show <node-name> `

### clusdiag

clusdiag is for checking/doing diagnostic tests on a cluster.

For example, to list available diagnostic tests

` clusdiag tests `

To run a diagnostic test

` clusdiag new <test-name> --pattern <your-node-name-pattern> `

The –pattern is a glob pattern just like the file name globbing on most OSes. For example, abc* matches names starting with abc, and thus abc, abc1 and abc2 are all matched. You can use * to match all nodes.

You can also specify several nodes to run the test, by the –nodes parameter, like

` clusdiag new <test-name> --nodes "n1 n2 n3" `

The nodes named n1, n2 and n3 are specified, spearated by a space and qouted in a pair of .

To see a list of diagnostic tests

` clusdiag list `

To check detailed result of a test

` clusdiag show <id> `

### clusrun

clusrun is for checking/running general command on a cluster.

For example, to run a command on all nodes of the cluster:

` clusrun new --pattern "*" "hostname && date" `

It will execute hostname && date on all nodes in a cluster.

## Configuration

The above commands share a common configuration file, .hpc_acm_cli_config, for default values for the command line.

The file will be generated at the first time you run any of the commands. It will be put under the user’s home directory(~). Typically, it’s /home/{username} for Linux, and C:Users{username} for Windows.

The configuration file sets default values for command parameters, and the default values can be overriden by those provided on command line. See comments in the file for configurable options and examples.

Release files for hpc-acm-cli 2.8.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hpc-acm-cli 2.8.4
File Size Uploaded
hpc_acm_cli-2.8.4.tar.gz 14.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hpc-acm-cli 2.8.4
File Interpreter ABI Platform
hpc_acm_cli-2.8.4-py2-none-any.whl Python 2 none any Details

Total release size: 36.2 kB

Release files / hpc_acm_cli-2.8.4.tar.gz

Download URL hpc_acm_cli-2.8.4.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
16c9578ea0f5c19dcbd187e65d071a5f6508a89f957eee1f03709902cd5e7e8c
BLAKE2b-256 checksum
How to use checksums
3ae7deeb6c5b026e302d5ebeda4d1b4de3da7c8cda3f10de5a340cc6248e7afe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.12

Release files / hpc_acm_cli-2.8.4-py2-none-any.whl

Download URL hpc_acm_cli-2.8.4-py2-none-any.whl
Size 21.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
bcd6ad751edffc0cd69fa15915d37e1f32a5cb6a2951a56d0ced90805a3af4a5
BLAKE2b-256 checksum
How to use checksums
946df3aab03e751a2eafc786af21eb427e443b9f12f2917dd043997f99015410
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.12

Release history Release notifications | RSS feed

This release

2.8.4 This release

2 release files

2.8.3

2 release files

2.8.2

2 release files

2.8.1

2 release files

2.8.0

2 release files

2.7.14

2 release files

2.7.13

2 release files

2.7.12

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page