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

opr-template Command-Line Interface

The opr-template command-line interface enables you to edit policies outside of the OMi policy editor interface. With the tool, you can download a policy from OMi to a location in your file system, then edit the policy and upload it again. opr-template can also manage the creation of new versions of the policy when it has been edited outside of the policy editor interface, if desired. You can also use opr-template to delete or list templates and aspects.

Location

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

Synopsis

opr-template -help|-example|<CONNECTION_INFO>|<operation>

Options

Usage

Use opr-assign, opr-config-tool and opr-template together for an end-to-end CLI policy management workflow. For details, see Policy Management CLI workflows.

Restrictions

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

  • List information about the latest version of the aspect called "OpsConnector for Datadog Configuration Aspect":

    opr-template -list -type aspect -name "OpsConnector for Datadog Configuration Aspect"

  • List information about version 1.0 of the aspect called "OpsConnector for Datadog Configuration Aspect":

    opr-template -list -type aspect -name "OpsConnector for Datadog Congiuration Aspect" -object_version 1.0

  • List all versions of the policy template called "OpsConnector for Datadog Configuration"

    opr-template -list -type template -name "OpsConnector for Datadog Configuration" -object_version -all