Skip to content

zhmcclient/zhmccli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

76fdeca · Jan 12, 2025
Dec 12, 2024
Jan 12, 2025
Jan 12, 2025
Nov 22, 2023
Sep 20, 2017
Aug 4, 2024
Dec 12, 2024
Aug 4, 2024
Sep 20, 2017
Sep 11, 2023
Sep 29, 2024
Dec 18, 2020
Aug 5, 2024
Oct 10, 2024
Sep 22, 2024
Aug 19, 2024
Aug 4, 2024
Aug 5, 2024
Aug 5, 2024
Jun 16, 2024
Mar 29, 2023
Oct 10, 2024
Sep 20, 2017
Sep 20, 2017
Sep 29, 2024
Sep 20, 2017
Oct 10, 2024
May 18, 2024
Apr 12, 2023
Sep 25, 2024
Nov 30, 2024
Nov 30, 2024
Jan 12, 2025
Sep 25, 2024
Jan 12, 2025
Aug 16, 2024
Sep 25, 2024

Repository files navigation

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

The quick way:

$ pip install zhmccli

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.