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.2.tar.gz (276.6 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.2-py3-none-any.whl (191.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zhmccli-1.14.2.tar.gz
Algorithm Hash digest
SHA256 c2dc50562761cfdd74cbeaa45104fe884631d3493542403b6e0035e979f3398b
MD5 11bc07fd130e2102535b6f1db7437ef9
BLAKE2b-256 c52dde0dbba6a13267a180b747a9f52f34752f799859d66d4cb4c69924c09f26

See more details on using hashes here.

Provenance

The following attestation bundles were made for zhmccli-1.14.2.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.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for zhmccli-1.14.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8904c14f67d1b55fc68142f55cfa4c00ca2f07d656da8752cda2351c4b1dfbda
MD5 533850fe7645c35292b59e6b26d4994e
BLAKE2b-256 5c42cef468bd58f58ba289ffe555ce5a27a22130359030b62c779fe77150cc10

See more details on using hashes here.

Provenance

The following attestation bundles were made for zhmccli-1.14.2-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