@broadcom/om-view-for-zowe-cli
v3.0.0
Published
OM View™ Plug-in for Zowe™ CLI.
Downloads
70
Readme
OM View™ Plug-in for Zowe™ CLI
The OM View™ Plug-in for Zowe™ CLI lets you interact with OM View for z through a Zowe™ CLI plug-in.
- Use cases
- Software requirements
- Install the Plug-in
- Configure the Plug-in
- Migrate from Zowe™ v2 LTS
- Getting Started
- Uninstall the Plug-in
Use cases
The plug-in lets you perform the following operations on OM View data:
- Query repositories (OM View databases), reports, and export rules.
- Query report logical views and index values.
- Search for report data using cross-report indexes.
- Download report data and convert text reports to PDF.
- Use predefined export rules to export text reports to spreadsheets.
- Query and change user settings.
Software requirements
Before you install and use the plug-in:
- Install Zowe™ CLI.
- Ensure that an OM Web Viewer for z instance is installed and running in your mainframe environment.
- The OM Web Viewer instance must have PTF LU12658 applied.
Install the Plug-in
To install the @latest
version of the plug-in, issue the following command:
$ zowe plugins install @broadcom/om-view-for-zowe-cli
Note: 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.
Configure the Plugin
You can set omview
profile options in your configuration, so you do not have to type your
connection details for every command. The profile options include connection and authentication
information for the OM Web Viewer REST API instance of your choice.
Example
Use the following command to initialize your global Zowe™ CLI configuration: zowe config init --global-config
This command results in a prompt for basic information that is shared between multiple Zowe™ CLI plugins and populates your global configuration.
You can subsequently use one of the following methods to customize the values in the global configuration:
- Use the
zowe config edit --global-config
command to open the whole configuration file in your default text editor. - Use the
zowe config set --global-config profiles.omview.properties.<property> <value>
command to set individual properties. Theomview
profile type uses the following properties:protocol
host
port
base-path
user
password
Example
Use the following command to update the port
value in your omview
global configuration profile
to 8080:
zowe config set --global-config profiles.omview.properties.port 8080
You can create multiple profiles and switch between them as necessary. You can also have global, user, and shared configurations. For full details on all of these options refer to the general Zowe™ CLI documentation.
Migrate from Zowe™ v2 LTS
The plug-in package name has changed starting with the Zowe™ CLI v3 LTS version.
Specifically, the name has changed from @broadcom/caview-for-zowe-cli
to @broadcom/om-view-for-zowe-cli
.
In order to migrate, you must first uninstall the old package using the following command:
$ zowe plugins uninstall @broadcom/caview-for-zowe-cli
After you uninstall the old package, you can install the new package using the following command:
$ zowe plugins install @broadcom/om-view-for-zowe-cli
Note that the plug-in command group and profile names have also changed from caview
to omview
.
While the old caview
variants are still supported, we encourage you to update your configuration
files and scripts, replacing caview
with omview
in all cases.
If you are relying on any CAVIEW_PLUGIN
prefixed environment variable you will need to rename them
to use the new OMVIEW_PLUGIN
prefix.
Getting Started
To get help for the available command groups, issue the following command:
$ zowe omview --help
For example, you might start by listing the available repositories:
$ zowe omview list repositories
To obtain context-sensitive help, append the --help
argument to your command.
For example, to get help with the list reports
command, issue the following command:
$ zowe omview list reports --help
On success commands return a zero process exit code. On error commands return a non-zero process exit code.
Update the Plug-in
To update the plug-in, issue the following command:
$ zowe plugins update @broadcom/om-view-for-zowe-cli
Uninstall the Plug-in
To uninstall the plug-in, issue the following command:
$ zowe plugins uninstall @broadcom/om-view-for-zowe-cli