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 ... at HMC ...): .......
+----------+------------------+
| 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.22.0.tar.gz (57.7 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.22.0-py2.py3-none-any.whl (78.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for zhmccli-0.22.0.tar.gz
Algorithm Hash digest
SHA256 9c2553d2ae1e2f5477ecdf511332f13ca3765d2d8270877971f2ab8c26da55cc
MD5 054ebf9ae19a9a18aba662cc9f454369
BLAKE2b-256 cfd8028aef89462a97c4328a1da78dbe4869b809798ee60dadad36a0e156bf28

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for zhmccli-0.22.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3e5ee2c08e23f89db5265d26bd0e4f37558302d04a67161ecc16e3795d74743f
MD5 39cc5af4582e42017888468c9ab2e2af
BLAKE2b-256 f19e2b28abcf19ecee7677330ba4ba40ce0444f8ad83500f4563aac2adc85c37

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