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 Actions status Docs build status (latest) 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.5.0.tar.gz (83.9 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.5.0-py2.py3-none-any.whl (109.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: zhmccli-1.5.0.tar.gz
  • Upload date:
  • Size: 83.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for zhmccli-1.5.0.tar.gz
Algorithm Hash digest
SHA256 bb0f1f202d24c15472e9331cb6d04333b741d1045f19a6db3850edb181c9040f
MD5 7dca26d5b82e2cc597606b6bd475202c
BLAKE2b-256 21e8f3653b81071074c769227b6c5acd4abec771c3435439edfe152c02e48848

See more details on using hashes here.

File details

Details for the file zhmccli-1.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: zhmccli-1.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 109.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for zhmccli-1.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8883a7af4acc6929e3f9fe09edce84d1d48ec6eedc12b57aba1216799c948a43
MD5 32327e39699ddef35ff8b6c3cdc7c675
BLAKE2b-256 3298b7ed25a27c3961e31126abce8a12cb260243905aeeea014c987d16c1ea50

See more details on using hashes here.

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