Develop > Command-Line Interfaces > opr-script Command-Line Interface

opr-script Command-Line Interface

You can use the opr-script command-line interface (CLI) to enable and disable Groovy scripts of the following types:

  • Custom action scripts

  • Event processing interface (EPI) scripts

  • External instruction retrieval scripts

Tip To check whether a script is active, see the Active check box in the details of the corresponding script. When you disable a script using the opr-script CLI, the Active check box is cleared.

Location

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

Synopsis

opr-script -help | -version | <CONNECTION_INFO> <operation>

Options

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.
300‑399

HTTP Redirection (300-399)

An error message stating the HTTP error number and description.

For more information about HTTP error status values, see publicly available HTTP documentation.

400‑499

HTTP Client Error (400-499)

500‑599

HTTP Internal Server Error (500-599)

Restrictions

The user running the opr-script command-line interface must be an OMi user with permissions to create custom actions, EPI, or external instruction retrieval scripts.

Non-admin users also need the following file permissions to operate this command-line tool:

File Windows Permissions Linux Permissions
<OMi_HOME>/conf/TopazInfra.ini read r
<OMi_HOME>/log/opr-clis.log full control rw

<OMi_HOME>/log/opr-pgctl.log

Note: This file is not available on gateway server systems.
full control rw
<OMi_HOME>/conf/encryption.properties read r
<OMi_HOME>/conf/seed.properties read r

Examples

  • Disable a custom action script:

    opr-script -user myU -password myPwd -disable -type CUSTOM_ACTION -id cebc429e-ab51-ae70-b070-454a092cbdc6

  • Enable an EPI script:

    opr-script -user myU -password myPwd -enable -type EPI -id 603bb351-b346-ac2e-f7e2-454e4fc1d1ec