Develop > Command-Line Interfaces > opr-mp-installer Command-Line Interface

opr-mp-installer Command-Line Interface

You can use the opr-mp-installer command-line interface (CLI) to install out-of-the-box management packs while OMi is enabled. The OMi configuration wizard also installs management packs but OMi should be disabled.

Location

<OMi_HOME>/bin/opr-mp-installer.[bat|sh]

Synopsis

opr-mp-installer ‑help | ‑version | ‑list | ‑list_enabled | ‑install <mgmt_pack_name> [‑language <language> | ‑i <input_path>]

Options

Option Description
‑help|‑? Displays a summary of the command options.
‑i <input_path>

Optional. Specifies the location of the management pack .zip file in the file system.

Default: <OMi_HOME>/opr/mgmtpacks

‑install <mgmt_pack_name>

Uploads the specified management pack to a running OMi. The OMi processes do not need to be stopped. Use the ‑list option to get <mgmt_pack_name>.

‑language <language>

Optional. Uploads the management pack in the specified language (for example, en_US, de, ko, fr, ru, es, zh_CN, or ja). Use the ‑list option to get <language>.

Default: system locale; otherwise en_US

‑list_enabled|‑le Displays a detailed list of all installed out-of-the-box management packs.
‑list|‑l Displays a detailed list of all available out-of-the-box management packs.
‑version Displays version information for the command.

Exit Status

Exit Status

Description

Output

0

Successful completion of the requested operation.

No output.
1

Failure of the requested operation.

An error message stating why the operation failed, followed by the tool's help text.

Restrictions

To run opr-mp-installer, the same permissions as for the user installing OMi are required:

  • Windows: administrative privileges

  • Linux: root user

Examples

This section contains a number of examples you can use as a starting point for developing your own opr-mp-installer commands.

Note In distributed deployments, run opr-mp-installer on the data processing servers first and subsequently on all gateway servers.

  • List all available out-of-the-box management packs:

    opr-mp-installer.bat ‑list

    Example output:

    Name      : MSSQLMP
    Label : OMi Management Pack for Microsoft SQL Server (1.0)
    Languages : en_US de ko fr ru es zh_CN ja

    Name : SAPSybaseASEMP
    Label : OMi Management Pack for SAP Sybase ASE (1.0)
    Languages : en_US
  • Install the HPE OMiManagement Pack for SAP Sybase ASE:

    opr-mp-installer.bat ‑install SAPSybaseASEMP

  • Install the HPE OMi Management Pack for SAP Sybase ASE for French only:

    opr-mp-installer.bat ‑install SAPSybaseASEMP ‑language fr

  • Install the HPE OMi Management Pack for SAP Sybase ASE from M:\OMi\opr\mgmtpacks:

    opr-mp-installer.bat ‑install SAPSybaseASEMP ‑i M:\OMi\opr\mgmtpacks

  • List all installed out-of-the-box management packs:

    opr-mp-installer.bat ‑list_enabled

    Example output:

    Name      : ExchangeMP
    Label : OMi Management Pack for Microsoft Exchange Server (1.0)
    Name : InfraMP
    Label : OMi Management Pack for Infrastructure (1.1)
    Name : ADMP
    Label : OMi Management Pack for Microsoft Active Directory (1.0) Name : SAPSybaseASEMP
    Label : OMi Management Pack for SAP Sybase ASE (1.0)