Skip to main content

IBM Z HMC OS Message Forwarder

Project description

IBM Z HMC OS Message Forwarder

Version on Pypi Test status (master) Docs status (master) Test coverage (master)

The IBM Z HMC OS Message Forwarder connects to the console of operating systems running in LPARs on Z systems and forwards the messages written by the operating systems in the LPARs to remote syslog servers.

The Z systems can be in classic or DPM operational mode.

The forwarder attempts to stay up as much as possible, for example it performs automatic session renewals with the HMC if the logon session expires, and it survives HMC reboots and automatically resumes forwarding again once the HMC come back up, without loosing or duplicating any messages.

Documentation

Supported environments

  • Operating systems: Linux, macOS, Windows
  • Python versions: 3.8 and higher
  • HMC versions: 2.11.1 and higher

Quickstart

  • If not yet available, install the "pipx" command as described in https://pipx.pypa.io/stable/installation/.

  • Without having any virtual Python environment active, install the log forwarder as follows:

    $ pipx install zhmc-os-forwarder
    

    That makes the zhmc_os_forwarder command available in the PATH, without having to activate any virtual Python environment.

  • Provide a config file for use by the forwarder.

    The config file tells the forwarder which HMC to use, and for which CPCs and LPARs it should forward to which syslog servers.

    Download the Example forwarder config file and edit that copy according to your needs.

    For details, see Forwarder config file.

  • Run the forwarder as follows:

    $ zhmc_os_forwarder -c config.yaml
    zhmc_os_forwarder version: 0.2.0
    zhmcclient version: 1.10.0
    Verbosity level: 0
    Opening session with HMC 10.11.12.13 (user: johndoe@us.ibm.com, certificate validation: False)
    Forwarder is up and running (Press Ctrl-C to shut down)
    

Limitations

At this point, the forwarder has several limitations. All of them are intended to be resolved in future releases.

  • The forwarder does not recover from HMC restart or connection loss
  • Restarting the forwarder will send again all OS messages the HMC has buffered
  • New and deleted LPARs in DPM mode are not automatically detected.

Reporting issues

If you encounter a problem, please report it as an issue on GitHub.

License

This 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

zhmc_os_forwarder-1.1.0.tar.gz (74.1 kB view details)

Uploaded Source

Built Distribution

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

zhmc_os_forwarder-1.1.0-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file zhmc_os_forwarder-1.1.0.tar.gz.

File metadata

  • Download URL: zhmc_os_forwarder-1.1.0.tar.gz
  • Upload date:
  • Size: 74.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for zhmc_os_forwarder-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a4a996f9aa837d89d5ab236b2d3416632821ae5c29cecf4a208e71c0b3029742
MD5 64ea18f0348e5da9c31818676cdddf60
BLAKE2b-256 9a609863363b1c3f0bc7a294134a8092924b145ad979b25d2df2590f8171fc85

See more details on using hashes here.

Provenance

The following attestation bundles were made for zhmc_os_forwarder-1.1.0.tar.gz:

Publisher: publish.yml on zhmcclient/zhmc-os-forwarder

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zhmc_os_forwarder-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zhmc_os_forwarder-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d610055c1e85e3a6c9360e464968708469be4afee8bc626a045ddad1b752f0d0
MD5 d7249ed60323dda1e65df037a3bbe4eb
BLAKE2b-256 2e7b2d8271fc0b16123106529ac762a02bb3213124c84d826cce658fdd67adb7

See more details on using hashes here.

Provenance

The following attestation bundles were made for zhmc_os_forwarder-1.1.0-py3-none-any.whl:

Publisher: publish.yml on zhmcclient/zhmc-os-forwarder

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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