@broadcom/om-spool-for-zowe-cli
v3.0.1
Published
OM Spool™ Plug-in for Zowe™ CLI.
Readme
OM Spool™ Plug-in for Zowe™ CLI
The OM Spool™ Plug-in for Zowe™ CLI lets users issue any Output Management Spool™ for z/OS (OM Spool) native command from a single command-line interface. This plug-in also enables automated administration of OM Spool and lets service providers that administer multiple OM Spool environments respond to client requests faster.
- Use Cases
- Software Requirements
- Install the Plug-in
- Configuration
- Migrating From Zowe CLI V1 to a Current Zowe Client Configuration
- Get Command Help
- Use the Plug-in
- Update the Plug-in
- Uninstall the Plug-in
- Exit Codes
Use Cases
You can use the OM Spool™ Plug-in for Zowe™ CLI to perform the following tasks:
- Set up automated administration of the OM Spool environment.
- Issue any OM Spool native command from a single command-line interface instead of switching to the MVS terminal.
- Create scripts to automate processes that you currently perform manually.
Software Requirements
Before you install and use the plug-in:
- Install Zowe CLI.
- Ensure that a z/OSMF server is up and running.
- Ensure that an OM Spool 14.0 instance is installed and running in your mainframe environment. The instance must meet the following minimum requirements:
- Release 14.0 with the latest maintenance applied.
- See the Integrate with Zowe CLI topic in OM Spool documentation.
Install the Plug-in
Important: The OM Spool plug-in for Zowe CLI version zowe-v<n>-lts is compatible only with Zowe CLI V<n>, where "n" is supported Zowe CLI LTS release.
To install the @latest version of the plug-in, issue the following command:
$ zowe plugins install @broadcom/om-spool-for-zowe-cliNote: The latest npm tag installs an active development version of the plug-in, which accepts breaking changes. You can use different npm tags to install other versions of the product. For more information about tag usage, see NPM Tag Names.
Configuration
Configure Team Profiles
Team profiles improve the initial setup of the Zowe CLI. Team profiles let application developers store and manage service connection details in one location. Team profiles also improve the configuration experience for new users and let users share their configurations.
Initialize the Team Profile Configuration File
If you have not used any previous Zowe releases or have not set up a team profile configuration file, you must create and initialize the team profile configuration file.
- Issue the following command:
$ zowe config init --global-config- The CLI can respond with prompts for a
host,username, andpassword.
- Enter a
host,username, andpasswordfor a mainframe service, such as z/OSMF.
- The
zowe config initcommand ensures that your credentials are stored securely on your computer by default. - After you enter your credentials, the
zowe.config.jsonteam configuration file is added to your local.zowedirectory. This directory is the primary location where your mainframe service connection details, such ashostandport, are defined. You use this configuration file in the next section.
Populate the Global Profiles
To use the OM Spool plug-in for Zowe CLI, you must populate the global profiles. To do this, you set up z/OSMF and the OM Spool profile parameters in the team profile configuration file (zowe.config.json) that you created in the previous section.
The OM Spool profile parameters contain your TSO account information and the following information for the OM Spool instance:
- OM Spool installation high-level qualifier (HLQ)
- Subsystem name
- Output response data set (must be unique for each Zowe CLI user that is interacting with OM Spool)
- Data set containing ESFZOWE REXX exec
Having these parameters already configured in a file lets you avoid entering that information in every command that you run. You can define multiple profiles in the zowe.config.json file and switch between profiles as needed.
Open the zowe.config.json file in a text editor or IDE and populate global profiles with connection details for your mainframe services as shown in the following example:
{
"$schema": "./zowe.schema.json",
"profiles": {
"zosmf": {
"type": "zosmf",
"properties": {
"port": 443
},
"secure": []
},
"omspool": {
"type": "omspool",
"properties": {
"account": "123456789",
"spoolhlq": "SPOOL.HLQ",
"subsys": "ESF1",
"outds": "OUTPUT.RESPONSE.DS",
"clist": "USER.CLIST"
},
"secure": []
},
"project_base": {
"type": "base",
"properties": {
"host": "host.company.com",
"rejectUnauthorized": true
},
"secure": [
"user",
"password"
]
}
},
"defaults": {
"zosmf": "zosmf",
"omspool": "omspool",
"base": "project_base"
},
"autoStore": true
}For more information about configuring team profiles, see the Zowe Documentation.
Migrating From Zowe CLI V1 to a Current Zowe Client Configuration
After you upgrade Zowe CLI to any of active LTS releases, you must uninstall the OM Spool V1 plug-in to avoid conflicts. The OM Spool profile name was changed from caspool to omspool. Therefore, you must also migrate your existing Zowe CLI V1 user profiles to team profiles.
Note: The OM Spool plug-in name was changed from @broadcom/caspool-for-zowe-cli to @broadcom/om-spool-for-zowe-cli
since the zowe-v2-lts version of the OM Spool plug-in for Zowe CLI.
1. Uninstall the OM Spool V1 plug-in from Zowe CLI V1
$ zowe plugins uninstall @broadcom/caspool-for-zowe-cli2. Install the supported OM Spool plug-in for Zowe CLI
$ zowe plugins install @broadcom/om-spool-for-zowe-cli3. Migrate your existing user profiles to team profiles
- Convert your Zowe V1 user profiles to a new
zowe.config.jsonfile.
$ zowe config convert- For more information about configuring team profiles, see the Zowe Documentation.
- Update the OM Spool profile type from
caspooltoomspoolin the newly createdzowe.config.jsonfile. In this example,caspool_V1is the converted profile name.
"profiles": {
“caspool_V1": {
"type": "omspool", <== Update the type from caspool to omspool
"properties": {
"account": "123456789",
"spoolhlq": "SPOOL.HLQ",
"subsys": "ESF1",
"outds": "OUTPUT.RESPONSE.DS",
"clist": "USER.CLIST"
},
"secure": []
},
"defaults": {
"omspool": "caspool_V1", <== Update this line from caspool to omspool
},Get Command Help
To get help for the available command groups, issue the following command:
$ zowe omspool --helpTo obtain context sensitive help, append the --help argument to your command.
For example, to get help with the issue command command, issue the following command:
$ zowe omspool issue command --helpUse the Plug-in
To issue an OM Spool native command, use the following format:
$ zowe omspool issue command "<om-spool-command>"For example, to display the status of the ESF subsystem, issue the following command:
$ zowe omspool issue command "DS"Update the Plug-in
To update the plug-in, issue the following command:
$ zowe plugins update @broadcom/om-spool-for-zowe-cliUninstall the Plug-in
To uninstall the plug-in, issue the following command:
$ zowe plugins uninstall @broadcom/om-spool-for-zowe-cliExit Codes
0 – The OM Spool plug-in command was executed successfully. 1 – The OM Spool plug-in command failed.
