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 code lists 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
Enter password (for user <hmc_user> at HMC <hmc_host>): .......
+----------+------------------+
| name     | status           |
|----------+------------------|
| P000S67B | service-required |
+----------+------------------+

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zhmccli-0.21.0-py2.py3-none-any.whl (75.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: zhmccli-0.21.0.tar.gz
  • Upload date:
  • Size: 51.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

File hashes

Hashes for zhmccli-0.21.0.tar.gz
Algorithm Hash digest
SHA256 0b418ee23c3fb9773816e7dcf12b3617cd852bb8604326a7f6f8647d8c375cbf
MD5 51939ae7554a44790f7869b4b7cf461d
BLAKE2b-256 4e7e2989d4f1ff3690a83b1e38fcb9944e5437a3705461f0a07f594cbe2beee8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zhmccli-0.21.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 75.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

File hashes

Hashes for zhmccli-0.21.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fd29f4c2ed9387dd67c4efbd2211b64294658872bbd07ece288abae79b31847f
MD5 ae7e5890f336f9977063fd5c00bcaa07
BLAKE2b-256 4eeba8dcb83fddf7e697e152f990b432fdb88f97177dcde93fa9d0a417e0bcd0

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