@broadcom/om-view-for-zowe-cli
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

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. The omview 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

Package Sidebar

Install

npm i @broadcom/om-view-for-zowe-cli

Weekly Downloads

3

Version

3.0.0

License

SEE LICENSE IN LICENSE

Unpacked Size

269 kB

Total Files

279

Last publish

Collaborators

  • zfernand0
  • broadcom-mbauto
  • markackert
  • jt1989
  • mikebauerca