@broadcom/ops-for-zowe-cli v5.2.2
OPS/MVS® Plug-in for Zowe CLI
The Broadcom® OPS/MVS® Plug-in for Zowe CLI lets you interact with OPS/MVS automation elements, enabling efficient automation administration and resource management from a single command-line interface. The plug-in also lets you include automation administration and resource management in workflows to foster continuous integration.
Key Features
Using the plug-in, you can benefit from the following OPS/MVS features:
- Display the status of specific automation rules and *rule sets.
- Enable and disable specific automation rules.
- Display the state of specific System State Manager (SSM) resources.
- Start and stop specific SSM resources.
- *Display the status of a REST API server.
- *Display the log names.
- *Display the subsystems.
- *Display RDF tables.
- *Display SSM parms.
- *Display OPSLOG records.
- *Execute a REXX program.
- *Execute a operator command.
- *Create a generic AOF event for API rules processing.
Note: * Indicates only available if you are using the plug-in with the OPS/MVS REST API.
Prerequisites
Install Zowe CLI on your computer.
Install one of the following OPS/MVS components:
To use the plug-in with multiple OPS/MVS instances running on different systems, install and configure the RESTful Web Services component or the REST API to one OPS/MVS instance on each system. When you have multiple instances of OPS/MVS running on a single system, only one instance of the RESTful Web Services component or the REST API is required.
Note: To use the OPS/MVS Plug-in for Zowe CLI with the Zowe API Mediation Layer (API ML), you must use the OPS/MVS REST API. For more information, see Create an OPS/MVS Profile for the Zowe API ML.
Security Requirements
To issue OPS/MVS commands through the plug-in, you must be authorized for those commands through OPS/MVS security. For more information, refer to the article Authorize REST API Users.
Install the OPS/MVS Plug-in From a Local Package
To install the OPS/MVS plug-in to the Zowe CLI from a local package: 1. Issue the following command to install the plug-in.
```bash
zowe plugins install @broadcom/ops-for-zowe-cli
```- Issue the following command to validate the installed plug-in.
After the installation process completes, it validates that the plug-in was installed correctly and that the names of its commands, options, and arguments do not conflict with that of any other plug-ins that you have installed into your Zowe CLI implementation.```bash zowe plugins validate @broadcom/ops-for-zowe-cli ```
When the validation process is successful, the following message displays:
_____ Validation results for plugin '@broadcom/ops-for-zowe-cli' _____
This plugin was successfully validated. Enjoy the plugin. Installation Failure
If the validation process fails, a failure message displays. You can troubleshoot the installation by addressing the issues that the message describes. You can also review the information contained in the log file that is located in the Zowe CLI home directory.
Uninstall the OPS/MVS Plug-in From Zowe CLI
To uninstall the plug-in from Zowe CLI, issue the following command:
zowe plugins uninstall @broadcom/ops-for-zowe-cliCreate an OPS/MVS Profile
You can set up an OPS/MVS profile to avoid typing your connection details on every command. 1. Gather the following data:
- The host name of the LPAR on which OPS/MVS Web Services or the OPS/MVS REST API server is running
- The port number for OPS/MVS Web Services or the OPS/MVS REST API server
- A user name that has authority to access OPS/MVS Web Services or the OPS/MVS REST API server
The password to the account assigned to the user name
Do one of the following:
Edit the global configuration file located at
~/.zowe/zowe.config.jsonby issuing the following command.zowe config edit --gcUse
zowe config set profilescommands to set the OPS/MVS profile. In the examples below,opsis the profile name.zowe config set profiles.ops.properties.port 1234 --gc zowe config set profiles.ops.properties.user user --gc zowe config set profiles.ops.properties.password password --gc zowe config set profiles.ops.properties.reject-unauthorized true or false --gc zowe config set profiles.ops.properties.protocol http or https --gc zowe config set profiles.ops.properties.subsystem sys1 --gc zowe config set profiles.ops.properties.rest-api true or false --gc
The following example shows an OPS/MVS profile inside a global configuration file:
"profiles": {
"ops": {
"type": "ops",
"properties": {
"host": "example.net",
"port": 12345,
"protocol": "https",
"subsystem": "SYS1",
"rest-api": false,
"reject-unauthorized": false
},
"secure": []
}
}Create an OPS/MVS Profile for the Zowe API ML
Important: The Zowe API Mediation Layer (API ML) can only be used with the OPS/MVS REST API, which must be registered with the API ML server used in the profile.
To create an OPS/MVS plug-in profile for the Zowe API ML:
1. Gather the following data:
- The host name of the LPAR on which the API ML is installed
- The API ML server port number
- A user name that has authority to access the registered OPS/MVS REST API server
- The password to the account assigned to the user name
- The base path for your API ML instance. The first part of the base path is the service ID of the REST API server that is defined to the API ML server, for example:
<service_id>/api/v1
Follow the directions in step 2 of Create an OPS/MVS Profile, including the additional data you gathered in step 1 of this section.
The following example shows an OPS/MVS profile for the Zowe API ML inside a global configuration file:
"opsapiml": {
"type": "ops",
"properties": {
"host": "example.net",
"port": 12345,
"user": "user1",
"password": "password",
"protocol": "https",
"subsystem": "SYS1",
"rest-api": true,
"reject-unauthorized": false,
"base-path": "opsrestapi/api/v1"
},
"secure": []
}Using the OPS/MVS Plug-in for Zowe CLI
For details about the commands, actions, and options in this plug-in, refer to the Zowe CLI Help.
When Zowe CLI is installed, you can display Zowe CLI Help for the OPS/MVS plug-in by doing one of the following from a command line:
Enter
zowe opsto display a summary of available commands and options for the plug-in in the command prompt window.Enter
zowe ops --hwto display Zowe CLI web help for the plug-in in a browser window.
Return Codes
When you enter a command using the OPS/MVS Plug-in for Zowe CLI, you will receive one of the following return codes:
0 - Execution succeeded
1 - Execution failed
Available Commands
Note: an asterisk (*) beside the command name indicates that it is only available if you are using the plug-in with the OPS/MVS REST API. To use these commands, you must either have the parameter "rest-api": true, included in your Zowe team config ops profile, or include the parameter --rest-api true as part of the command line request.
create
create event*
- Use the
create eventcommand to create a generic AOF event for API rules processing.
- Use the
disable
disable rule
- Use the
disable rulecommand to disable the specified rule.
- Use the
enable
enable rule
- Use the
enable rulecommand to enable the specified rule.
- Use the
execute
execute command*
- Use the
execute commandcommand to execute the specified operator command.
- Use the
execute rexx*
- Use the
execute rexxcommand to execute the specified OPS/MVS REXX program.
- Use the
show
show logname*
- Use the
show lognamecommand to display the logs defined to a subsystem.
- Use the
show parms*
- Use the
show parmscommand to display all the SSM parameters defined to a subsystem.
- Use the
show records*
- Use the
show recordscommand to display a list of the OPSLOG records with attributes that are defined in the search query from the specified OPSLOG.
- Use the
show resource
- Use the
show resourcecommand to show the current and desired state of all resources associated with the specified SSM resource.
- Use the
show rule
- Use the
show rulecommand with to display data associated with the specified rule.
- Use the
show ruleset*
- Use the
show rulesetcommand to display the status of a specific automation rule set.
- Use the
show status*
- Use the
show statuscommand to display the status of the REST API server.
- Use the
show subsystem*
- Use the
show subsystemcommand to display the subsystems running on an OPS system.
- Use the
show table*
- Use the
show tablecommand to display data associated with RDF tables.
- Use the
start
start resource
- Use the
start resourcecommand to start the specified resource.
- Use the
stop
stop resource
- Use the
stop resourcecommand to stop the specified resource.
- Use the
7 months ago
8 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
3 years ago
3 years ago
4 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago