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
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
zhmccommand 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26d357a7ca6991c77bbceccc45b245d9e0fa18c27fd332600b3b033f5da68f41
|
|
| MD5 |
4b64c334e74dfec358c264c2ac8689bf
|
|
| BLAKE2b-256 |
288368f8f5b49488d465ad16e7c3b1858453907f0f884de26692cacfbf6a4cb4
|
Provenance
The following attestation bundles were made for zhmccli-1.14.1.tar.gz:
Publisher:
publish.yml on zhmcclient/zhmccli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zhmccli-1.14.1.tar.gz -
Subject digest:
26d357a7ca6991c77bbceccc45b245d9e0fa18c27fd332600b3b033f5da68f41 - Sigstore transparency entry: 940442368
- Sigstore integration time:
-
Permalink:
zhmcclient/zhmccli@61fbf0f190a7e21ab44934ee0cb5335a265874b9 -
Branch / Tag:
refs/tags/1.14.1 - Owner: https://github.com/zhmcclient
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@61fbf0f190a7e21ab44934ee0cb5335a265874b9 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
451ce88accab3f2c9553fada6068e5789a3b7b46de892d8db23a63fe0f86e2ae
|
|
| MD5 |
713488d92be5df15b07522126dca8250
|
|
| BLAKE2b-256 |
ae0035d06de21f3aa7c7fb8984365c4a6db59be88164fafd4cd24fe6a2f479e7
|
Provenance
The following attestation bundles were made for zhmccli-1.14.1-py3-none-any.whl:
Publisher:
publish.yml on zhmcclient/zhmccli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zhmccli-1.14.1-py3-none-any.whl -
Subject digest:
451ce88accab3f2c9553fada6068e5789a3b7b46de892d8db23a63fe0f86e2ae - Sigstore transparency entry: 940442372
- Sigstore integration time:
-
Permalink:
zhmcclient/zhmccli@61fbf0f190a7e21ab44934ee0cb5335a265874b9 -
Branch / Tag:
refs/tags/1.14.1 - Owner: https://github.com/zhmcclient
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@61fbf0f190a7e21ab44934ee0cb5335a265874b9 -
Trigger Event:
push
-
Statement type: