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

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.

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.12.2.tar.gz (223.1 kB view details)

Uploaded Source

Built Distribution

zhmccli-1.12.2-py3-none-any.whl (166.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zhmccli-1.12.2.tar.gz
  • Upload date:
  • Size: 223.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for zhmccli-1.12.2.tar.gz
Algorithm Hash digest
SHA256 67130435548b24c7c40f34259638a51277fd331f6a736cf098f238553e7034c1
MD5 00ec8bec201171687457c8d6b7ee825b
BLAKE2b-256 3bfd14f7b0e37c5844e2a7b0a90addb746ced436670cad395b8848de77fcf5b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zhmccli-1.12.2-py3-none-any.whl
  • Upload date:
  • Size: 166.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for zhmccli-1.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 356d0a4076ae32f1444ae57665b1f5c0b2359309e1a9a327abaed2fb4a5a0771
MD5 642985992e1adc7481f77bd8f8c43c6a
BLAKE2b-256 d2be4c0602df1c884c96282c190b981ae0f56bb8ca95fa067bad36cda079218e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page