Skip to main content

A CLI for the IBM Z HMC, written in pure Python

Project description

zhmccli - A CLI for the IBM Z HMC, written in pure Python

Version on Pypi Test status (master) Docs status (master) Test coverage (master) Code Climate

Overview

The zhmccli package is a CLI written in pure Python that interacts with the Hardware Management Console (HMC) of IBM Z or LinuxONE machines. The goal of this package is to provide an easy-to-use command line interface for operators.

The zhmccli package uses the API provided by the zhmcclient package, which interacts with the Web Services API of the HMC. It supports management of the lifecycle and configuration of various platform resources, such as partitions, CPU, memory, virtual switches, I/O adapters, and more.

Installation

  • If not yet available, install the "pipx" command as described in https://pipx.pypa.io/stable/installation/.

  • Without having any virtual Python environment active, install the CLI as follows:

    $ pipx install zhmccli
    

    That makes the zhmc command available in the PATH, without having to activate any virtual Python environment.

For more details, see the Installation section in the documentation.

Quickstart

The following example lists the names of the machines (CPCs) managed by an HMC:

$ hmc_host="<IP address or hostname of the HMC>"
$ hmc_userid="<userid on that HMC>"
$ zhmc -h $hmc_host -u $hmc_userid cpc list --names-only
Enter password (for user ... at HMC ...): .......
+----------+
| name     |
|----------+
| P000S67B |
+----------+

Documentation

Contributing

For information on how to contribute to this project, see the Development section in the documentation.

License

The zhmccli package is licensed under the Apache 2.0 License.

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

zhmccli-1.14.1.tar.gz (275.5 kB view details)

Uploaded Source

Built Distribution

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

zhmccli-1.14.1-py3-none-any.whl (191.8 kB view details)

Uploaded Python 3

File details

Details for the file zhmccli-1.14.1.tar.gz.

File metadata

  • Download URL: zhmccli-1.14.1.tar.gz
  • Upload date:
  • Size: 275.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zhmccli-1.14.1.tar.gz
Algorithm Hash digest
SHA256 26d357a7ca6991c77bbceccc45b245d9e0fa18c27fd332600b3b033f5da68f41
MD5 4b64c334e74dfec358c264c2ac8689bf
BLAKE2b-256 288368f8f5b49488d465ad16e7c3b1858453907f0f884de26692cacfbf6a4cb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for zhmccli-1.14.1.tar.gz:

Publisher: publish.yml on zhmcclient/zhmccli

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

File details

Details for the file zhmccli-1.14.1-py3-none-any.whl.

File metadata

  • Download URL: zhmccli-1.14.1-py3-none-any.whl
  • Upload date:
  • Size: 191.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zhmccli-1.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 451ce88accab3f2c9553fada6068e5789a3b7b46de892d8db23a63fe0f86e2ae
MD5 713488d92be5df15b07522126dca8250
BLAKE2b-256 ae0035d06de21f3aa7c7fb8984365c4a6db59be88164fafd4cd24fe6a2f479e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for zhmccli-1.14.1-py3-none-any.whl:

Publisher: publish.yml on zhmcclient/zhmccli

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