Usage
To use the z/OS Management Facility plugin, z/OS Management Facility must be started and permission must be setup to allow access to the REST API. Additionally, the user ID used to run discovery must have proper permission to access the software instance.
Step palette
To access this plugin in the palette, click Utilities > zOS Utility > zOSMF.
Discovering Mainframe Software Services Instances
Only software instances provisioned using z/OS Management Facility Cloud Provisioning or z/OS Provisioning Toolkit can be discovered. Before you begin, complete the following tasks.
- Install the current version of the z/OS Management Facility plugin.
- Install an HCL Launch agent on the LPAR where z/OS Management Facility is running.
- Verify that the Cloud Provisioning function in z/OS Management Facility is installed and software services instances have already been provisioned.
In the HCL Launch server user interface, clickResources > Agents. Open the z/OS agent to be used to run discovery. Add an agent property named zosmf.url and set the value to the URL of z/OSMF. For example: https://localhost/zosmf
.
Create a top-level resource group and add the agent as an agent resource under the top-level resource group. Wait for a few seconds and refresh the Resource Tree.Eventually, another resource is displayed under the agent resource. This resource is named zOSMFService.
Open zOSMFService resource and click Configuration > Basic Settings. The resource has the zOSMFServicerole, which includes several properties that are related to z/OSMF. In theRole Properties table, specify the user ID and password to be used to run discovery and click Save.
Note: The ID is an MVS user ID with proper permissions setup. To ensure the user ID is working properly, use it to log into the z/OSMF web interface and list the software services instances.
Go back to the Resource Tree view, the click Actions button that is associated with the zOSMFServiceresource, and then clickConfigure using Software Services Instance Discovery. The discovery step runs. A log displays to show progress. When the discovery process completes, close the log window, and refresh the resource tree. Resources that represent the software services instances are displayed in the resource tree. The new resources are organized in structure: plex\system\software type\instance name
.
Software Services Instances Resources
You may add components to the resources and add these resources to an environment to start application deployment. The resource properties contain information of the instance which can be used in a deploy process. The properties are retrieved from the z/OSMF software services instance variables.
Tips: Sometimes the name of the property is not what is expected by the deploy process. You can define the expected property name in the top-level folder and have it reference the value of an instance property. See following graphic for an example.
Provisioning and Discovering Mainframe Software Services Instances
Software services instances discovery can be run manually from the resource tree and automatically in an HCL Launch process. This document describes a use case where a software instance is provisioned and discovered in a single automated HCL Launch process.
Before you begin, complete the following tasks.
- Install the current z/OS Management Facility plugin.
- Install an HCL Launch agent on the LPAR where z/OS Management Facility is running.
- Verify that the Cloud Provisioning function in z/OS Management Facility is installed and a Published Software Service template is ready to run
Create a generic process
Create a generic process using two steps.
The first step is a Run Published Software Service Template step. The following example runs the CICS53 template to provision a new CICS region. The template is available from z/OS Provisioning Toolkit
The second step is aSoftware Services Instance Discovery step. The Query Parameters fieldis set to object-name = ${p:provision/zosmf.instanceName} so that it will only discover the instance provisioned by the previous step. ${p:provision/zosmf.instanceName} is a reference to the provisioned instance name from the previous step.
Run the process
Create a top-level resource group. Add following properties to the group and set the appropriate values for connecting to z/OS Management Facility.
- zosmf.password
- zosmf.url
- zosmf.user
Add the z/OS agent tobe used to the group and run the process on the agent resource.
After the process completes, refresh the resource tree.Resources that represent the provisioned CICS region are displayed in the resource tree.
Next step
You can now provision a software services instance and have the resources automatically created in HCL Launch to represent the subsystem. You can use the resource or you can further enhance the automation. For example you can map a component to the resource, create environment and start initial deployments.
Note:If you prefer to usez/OSPTto provision software, you can replace the Run Published Software Service Template step with a Shell step and input the corresponding z/OSPT commands. You need to parse the z/OSPT output to find the name of the instance.