Getting started with CICS by using IBM Cloud Provisioning and Management for z/OS
This scenario takes a system programmer through the steps to provision a simple single
CICS® container by using z/OS® PT and IBM® Cloud Provisioning and Management for z/OS.
Request access from your z/OSMF system administrator (Landlord) to a domain to which your
template can be added. This scenario uses the default domain that is created during the Cloud
Provisioning installation process. For more information, see Security planning for z/OS PT with IBM Cloud Provisioning and Management for z/OS.
Ensure that the system programmer's user ID is a domain administrator in z/OSMF.
Ensure that you deprovisioned the CICS container that was
used in Getting started with CICS by using z/OSMF workflows, because you need
the APPLID for this scenario. Deprovision your CICS container
by using the following command, where containerName is USERTEST in this example:
zospt rm -f containerName
About this task
In this task, you add a Cloud Provisioning template in z/OSMF from which a CICS region can be provisioned. The provisioning process runs under the system
programmer's user ID.
The following diagram shows the flow of how a CICS
container is provisioned by using Cloud Provisioning. This scenario uses a predefined CICS region APPLID, and the same CICS configuration as Getting started with CICS by using z/OSMF workflows.Figure 1. Provision a CICS container by using Cloud
Provisioning
Procedure
Add the Cloud Provisioning template into z/OSMF.
From a web browser, connect to the z/OSMF web interface.
In the Template Source file field in the Add Standard
Template window, enter the full path of the manifest file for the CICS getting started template:
zospt/templates/cics_getting_started/cics.mf.
z/OSMF must be able to read from this directory tree.
Click Load.
The Workflow file, Actions file, and
Workflow variables input file fields are populated automatically.
Enter the name cics_getting_started in the Template
Name field.
Use this name for your template so that you can use it with the sample z/OS PT image that is provided.
Click OK.
The template is loaded into z/OSMF in Draft
state.
Associate the template with a tenant in the domain to determine the set of users that can run
the template:
Select the cics_getting_started template. From the
Actions menu, select Associate Tenant.
Select the tenant that your z/OSMF administrator specifies.
Click OK.
In the Add Template and Resource Pool for Tenant view, specify the
following properties and values:
Property
Setting
Software services instance name prefix
Specify a general name prefix, for example, CGS (for CICS getting started).
Maximum number of software services instances
Specify 1 (one). The properties file for this template contains the CICS APPLID, so you can have one CICS
region active at a time. (When you run a fuller configuration as described in Adding a CICS template by using IBM Cloud Provisioning and Management for z/OS, this option controls the maximum number of
regions that are allowed).
Maximum number of software services instances for a user
Specify 1 (one). The properties file for this template contains the CICS APPLID, so you can have one CICS
region active per user at a time. (When you run a fuller configuration as described in Adding a CICS template by using IBM Cloud Provisioning and Management for z/OS, this option controls the maximum number of
regions that are allowed per person).
Specify customized JOB statement JCL
Select this option. If you need to, you can customize the JOB statement. The job statement is
applied to all JES jobs submitted as part of the provisioning process.
System selection for provisioning
Choose the system in the sysplex into which you want to provision the
CICS regions. The default is to provision into the same
system that is running z/OSMF. For more information about configuring z/OSMF for provisioning across
different systems, see z/OSMF product documentation.
Note: To use this template with z/OS PT, do not select the Prompt user
for system option.
Click OK.
The template is now ready for use with z/OS PT. The template is in draft mode, which means
that only the creator can run the template.
Optional:
If you are not using the default domain and tenant, you must set the following environment
variables to set up the environment for z/OS PT:
export zospt_domain=domain_name
export zospt_tenant=tenant_name
Run the template in draft mode to test the template before you publish it and allow other users
to run it. To run the template in draft mode, issue the following command:
zospt run cics_getting_started_cloud --draft
Example output is as
follows:
2018-04-24 15:08:16 IBM z/OS Provisioning Toolkit V1.1.1
2018-04-24 15:08:16 Running image cics_getting_started_cloud.
2018-04-24 15:08:16 The z/OSMF template used is cics_getting_started.
2018-04-24 15:08:16 The z/OSMF domain is default.
2018-04-24 15:08:16 The z/OSMF tenant is default.
2018-04-24 15:08:16 Connecting to z/OSMF on host localhost port 32000.
2018-04-24 15:08:17 The z/OSMF template cics_getting_started was created by USER01 at date:time. The template type is standard. It was last modified by USER01 at date:time.
2018-04-24 15:08:19 Creating container CICS_CGS00 with id 4fcfd7f6-f377-458a-922e-61ae3365ccf5 on system MV01.
2018-04-24 15:08:24 Validating allowed properties for CICS getting started workflows - Complete.
...
2018-04-24 15:09:39 Starting the CICS region - Complete.
2018-04-24 15:09:40 DFH_CICS_TYPE : Unmanaged
2018-04-24 15:09:40 DFH_REGION_APPLID : IYK2ZLVR
2018-04-24 15:09:41 Created container CICS_CGS00 with id 4fcfd7f6-f377-458a-922e-61ae3365ccf5 on system MV01.
You can also run the following command to view your provisioned
container:
zospt ps
Example output is as
follows:
2018-04-26 13:57:29 IBM z/OS Provisioning Toolkit V1.1.1
2018-04-26 13:57:29 Connecting to z/OSMF on host localhost port 32000.
NAME IMAGE OWNER CREATED STATE TEMPLATE SYSTEM CONTAINER TYPE
USERTEST cics_getting_started_cloud user01 2018-04-26T12:56:03 provisioned cics_getting_started MV01 Standard
Results
You successfully added a Cloud Provisioning template in z/OSMF, associated the
cics_getting_started template with a tenant in the domain, and ran the
template.
What to do next
Deprovision your CICS container by using the command
zospt rm -f containerName.