Skip to content

Latest commit

 

History

History
89 lines (60 loc) · 5.44 KB

README.md

File metadata and controls

89 lines (60 loc) · 5.44 KB

zOS-BCPii

zOS Base Control Program internal interface

Base Control Program internal interface (z/OS BCPii)

  • Allows authorized z/OS applications to have HMC-like control over systems in the process control (HMC) network.
  • Does not use any external network; Communicates directly with the SE rather than going over an IP network.
  • A z/OS address space that manages authorized interaction with the interconnected hardware.

This repository contains samples that take advantage of new z/OS BCPii HWIREST interface to issue various requests against the CPC and more.

System Requirements for HWIREST invocation

  • minimum IBM Z15 hardware level for:
    • SE and HMC associated with the local and target CPC
  • mimimum BCPii microcode level applied to the corresponding SE and HMC:
    • SE 2.15.0 with MCL P46598.370, Bundle S38
    • HMC 2.15.0 with MCL P46686.001, Bundle H25
  • minimum BCPii level

HWIREST Interface Considerations

  • C, Assembler

    • Request Body maximum 64KB
    • Response Body maximum 15MB
  • System/ISV REXX

    • Request Body maximum 64KB
    • Response Body maximum 2.5MB
  • TSO/E REXX

    • Request Body maximum 32767 bytes
    • Response Body maximum 2.5MB

Usage Notes

  • In the event the SE System BCPii Permissions on the Security panel are NOT granted in order to restrict access to LPARs only (disallow CPC access), the application should use the following List Permitted Logical Partitions REST API to obtain the URI and Target Name information for the target LPAR
    • GET /api/console/operations/list-permitted-logical-partitions


Example-QueryInfo-REXX

This sample demonstrates how to use the BCPii HWIREST REXX interface to query CPC and LPAR information.


Example-LPARActivate-C

This sample demonstrates how to use the BCPii HWIREST C interface to activate an LPAR and POLL to determine if the operation was successful.


Example-LPARLoad-SystemRexx

This sample demonstrates how to use BCPii HWIREST SYSTEM REXX interface to load an LPAR, including a possible activation of the LPAR before hand.


Example-LPARLoad-Rexx

This sample demonstrates how to use BCPii HWIREST in a TSO/E REXX or ISV REXX interface to load an LPAR, including a possible activation of the LPAR before hand.


Example-Energy-REXX

This sample uses BCPii HWIREST REXX interface to retrieve energy management information for a target CPC. The results are stored in .csv format, in a member in a z/OS data set.


Example-Audit-REXX

This sample uses BCPii HWIREST REXX interface to audit LPARs on a target CPC. The results are stored in .csv format, in a member in a z/OS data set.


Example-Crypto-REXX

This sample uses BCPii HWIREST REXX interface to retrieve crypto information from image activation profiles associated with LPARs located on a specific CPC. The results are stored in .csv format, in a member in a z/OS data set. Note the crypto properties are valid on z16 processors or higher.


Example-CustomUsrGrp-REXX

This sample uses BCPii HWIREST REXX interface to list custom user groups and group members located on a specific CPC (SE). It can also be used to add an LPAR to a custom user group or remove an LPAR from a customer user group.



Publication References:



Other useful references: