Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- Command-Line Interfaces
- BBCTrustServer Command-Line Interface
- ConfigExchange Command-Line Interface
- ConfigExchangeSIS Command-Line Interface
- ConnectedServer Command-Line Interface
- ContentAutoUpload Command-Line Interface
- ContentManager Command–Line Interface
- ConfigWsTool Command-Line Interface
- opr-agt Command-Line Interface
- opr-archive-events Command-Line Tool
- Policy Management CLI workflows
- opr-assign Command-Line Interface
- opr-cert-mgmt Command-Line Interface
- opr-ci-list Command-Line Interface
- opr-close-events Command-Line Tool
- opr-config-tool Command-Line Interface
- opr-downtime Command-Line Interface
- opr-internal-tls-config Command-Line Interface
- opr-jobs Command-Line Interface
- opr-mp-installer Command-Line Interface
- opr-node Command-Line Interface
- opr-package-manager Command-Line Interface
- opr-script Command-Line Interface
- opr-sis-file-manager Command-Line Interface
- opr-template Command-Line Interface
- opr-tls-config Command-Line Interface
- opr-tool Command-Line Interface
- opr-user Command-Line Interface
ConfigExchange Command-Line Interface
You can use the ConfigExchange command-line interface (CLI) for the following tasks:
- Migrating policies from the OM to Monitoring Automation. These tasks make use of operations referred to in this section as
<omOperation>
. -
Development and management of instrumentation packages:
-
Creating a compatible file structure for instrumentation development.
-
Uploading and downloading instrumentation packages or elements thereof. An element of an instrumentation package can be the base package, a patch or a hotfix.
These tasks make use of operations referred to in this section as
<instrumOperation>
. -
Location
<OMi_HOME>/opr/bin/ConfigExchange
Synopsis
ConfigExchange [<CONNECTION_INFO>] {<toolInfo> | <omOperation> | <instrumOperation>}
Options
-rc_file <file> &| -username <login name> [ -password <password> | -smartcard | -winCrypto | -jks <keystore path> -jksPassword <keystore password> ] [[-port <port>] [-server <gatewayserver>] [-ssl] | [-u <URL>]]
Note If <CONNECTION_INFO>
is omitted, the command is executed on the server to which you are logged on.
Option | Description |
---|---|
{-rc_file | -rcf }<file>
|
Location of your credential store. Values for your username, password, java keystore location, and java keystore password can be defined here, enabling you to run commands without having to specify the values individually each time. Use the options -list_rc , -set_rc , and -delete_rc to work with the file. The default file is <OMi_HOME>/.opr-cli-rc . If this option is not specified, then commands automatically check the default file location for credentials. You must specify this option if your credential store file is in a non-default location. If this file does not exist or does not contain the correct settings, you must manually specify the credentials using the other command options. |
{-list_rc| -lrc} [-rc_file <file>]
|
Display the content of the file from which credentials are read. The file contains fields for java keystore, keystore password, username and password, and is encrypted by a hardcoded key. |
{-set_rc | -src} <key>=<value> [-rc_file <file>]
|
Configure one setting in the file from which credentials are read. Specify the setting and the new value by using a key=value pair. For example, -set_rc password=<password string> . |
{-delete_rc | -drc} <setting> [-rc_file <file> }
|
Delete setting from file from which credentials are read. Possible settings are username, password, jks, and jksPassword. |
{-username|-user} <login name>
|
Sets the login name of the user required to execute CLI operations on the target gateway server. |
{-password|-pw} <password>
|
Sets the password for the specified user. If using SSH on Cygwin, either enter the password in free text or use other communication methods, for example Java keystore, Windows keystore, or smart card authentication. Default value: empty string |
{-smartcard|-sc}
|
Use certificate stored on smart card or security token for authentication. When OMi is configured to use CAC authentication, the CLI tools under For more information, see Using command-line tools when client certificate enforcement is used. |
{-winCrypto|-wc}
|
If OMi is configured for TLS mutual authentication, this option specifies to use the Windows certificate store for authentication. The certificate store must hold exactly one client certificate, which OMi will use to authenticate the user. This option is only available on Windows systems. For details, see Configure Client Certificate or Smart Card Authentication. |
{-jks|-j} <keystore path>
|
If OMi is configured for TLS mutual authentication, this option can be used to specify the Java keystore to be used for authentication. The keystore must hold exactly one client certificate, which OMi will use to authenticate the user. Note It is not necessary that the client certificate contains the flag "Smart Card Logon (1.3.6.1.4.1.311.20.2.2)" in the "Enhanced Key Usage" field. For details, see Configure Client Certificate or Smart Card Authentication. |
{-jksPassword|-jp} <keystore password>
|
Password for accessing the Java keystore. |
{-port|-p} <port>
|
Uses port Default: |
-server <GatewayServer>
|
Sets the target gateway server, using Default: FQDN of the OMi gateway server |
-ssl |
When this option is specified, the HTTPS protocol is used to connect to the target gateway server. If omitted, the HTTP protocol is used. Cannot be used in conjunction with the |
{-url|-u} <url> |
Sets the target gateway server, using Default: |
{‑examples | ‑help | ‑version}
Option | Description |
---|---|
{‑examples|-ex} |
Displays a number of examples of how to use the tool. |
{‑help|‑h} |
Displays a summary of the command options. |
‑version
|
Displays version information for the tool. |
{‑check | ‑uploadOM} <arguments>
Option | Description |
---|---|
|
Checks the policy contained in the policy file or directory For more information on checking and migrating policies from HPOM to Monitoring Automation, see Import configuration data from Operations Manager. |
{‑uploadOM|‑uom}̮
|
Note Uploads the HPOM policies, policy groups, and instrumentation exported from HPOM for Windows or HPOM for UNIX or Linux to the Monitoring Automation database, using directory |
{‑createinstrumdir | ‑download | ‑list | ‑merge | ‑remove | ‑upload} <arguments>
Option | Description |
---|---|
|
Creates an empty directory layout for
an instrumentation package in
the file system in directory
When developing instrumentation, it is recommended to use this structure to ensure you apply the correct layout required by HPOM. |
|
Note Extracts the content of a specific configuration folder, a specific element of an instrumentation package or a policy from the database and downloads it to the file system in directory
Note To download an entire package, including all its patches and hotfixes, use the |
|
Note Lists all patches and hotfixes for instrumentation package |
|
Note Downloads the instrumentation
package with the label The base package and any patches and hotfixes are downloaded in the order they are applied to an agent:
Note To download a specific element of a package, use the |
|
Note Removes an instrumentation package or an element thereof from the database:
|
{‑upload|‑ul} {‑input|‑i} <inputDir> {‑instrumname|‑inn} <instrum> [‑label <label>] [{‑description|‑de} <descr>] [{‑patch|‑p} <patchNr>] [{‑hotfix|‑hf} <hotfixName> {‑forpatch|‑fp} {<patchNr>|0}][{‑force|‑f}]
|
Note Uploads instrumentation data from directory An upload error occurs if a configuration object with the name Caution Using When the instrumentation is uploaded to the database, a label and a description are attached to the package, which are used as the name and description of the package in the Operations Management user interface.
Packages can be uploaded as base packages, patches, or hotfixes.
|
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
Some operations require authorization. The specified user must be an OMi user with permission to create policy templates. If <CONNECTION_INFO>
is required, <CONNECTION_INFO>
must be specified and valid.
If <CONNECTION_INFO>
is omitted when requesting an operation requiring authentication, ConfigExchange does not execute the requested operation, and exits with the following error:
Username may not be null. Operation requires authentication. Please enter the login name and password.
The error can be fixed by inserting an <CONNECTION_INFO>
.
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 |
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
This section shows a number of real-life examples you can use as a starting point for developing your own ConfigExchange commands.
-
Upload Instrumentation, Policies and Policy Groups from HPOM
A policy was exported from HPOM to the directory
/usr/myOMPolicy
. Issue the following command to upload the policy:ConfigExchange ‑username myU ‑password myPwd ‑uploadOM ‑input /usr/myOMPolicy
-
Upload Instrumentation Packages, Patches, and Hotfixes
-
A new instrumentation package was prepared in the directory
/usr/myCustomInstrum
. Issue the following command to overwrite existing instrumentationmyInstrum
with the new package:ConfigExchange ‑username myU ‑password myPwd ‑upload ‑input /usr/myCustomInstrum ‑instrumname myInstrum ‑force
-
A new instrumentation package was prepared in the directory
/usr/myCustomInstrum
. Issue the following command to upload the new package as a patch for instrumentationmyInstrum
with patch number3
and label the patchmyFix
:ConfigExchange ‑username myU ‑password myPwd ‑upload ‑input /usr/mydir ‑instrumname myInstrum ‑patch 3 ‑label myFix
-
A new instrumentation package was prepared in the directory
/usr/myCustomInstrum
. Issue the following command to upload the new package as a hotfix with namehf_CPUfix
for patch number3
of instrumentationmyInstrum
, and attach the descriptionMyCP hotfix for patch 3; fix CPU issue
:ConfigExchange ‑username myU ‑password myPwd ‑upload ‑input /usr/myCustomInstrum ‑instrumname myInstrum ‑hotfix hf_CPUfix ‑forpatch 3 ‑force ‑description "hotfix for patch 3; fixes CPU issue"
-
A new instrumentation package was prepared in the directory
/usr/myCustomInstrum
. Issue the following command to upload the new package as a hotfix with namehf_CPUfix
for the base package of instrumentationmyInstrum
:ConfigExchange ‑username myU ‑password myPwd ‑upload ‑input /usr/myCustomInstrum ‑instrumname myInstrum ‑hotfix hf_CPUfix ‑forpatch 0
-
-
Download an Instrumentation Package from the Database to the Local File System
Issue the following command to download the entire package for instrumentation package
myInstrum
from the database, and place it in directorymyDownloads
:ConfigExchange ‑merge ‑output myDownloads ‑instrumname myInstrum
-
Download the Contents of a Configuration Folder from the Database to the Local File System
Issue the following command to download the configuration objects in configuration folder
myInstrum
from the database, and place them in directorymyDownloads
:ConfigExchange ‑download ‑output myDownloads ‑startId 7d6468fb‑486d‑b7cd‑8bff‑f6c26b34c305
-
Download Specific Elements of an Instrumentation Package from the Database to the Local File System
-
Issue the following command to download the base package for instrumentation package
myInstrum
from the database, and place it in directorymyDownloads
(patches and hotfixes are not downloaded):ConfigExchange ‑username myU ‑password myPwd ‑download ‑output myDownloads ‑instrumname myInstrum
-
Issue the following command to download patch number
1
for instrumentation packagemyInstrum
from the database, and place it in directorymyDownloads
(the base package and any hotfixes for the patch are not downloaded):ConfigExchange ‑username myU ‑password myPwd ‑download ‑output myDownloads ‑instrumname myInstrum ‑patch 1
-
Issue the following command to download hotfix
hf_CPUFix
for patch number1
for instrumentation packagemyInstrum
from the database, and place it in directorymyDownloads
(the base package and the patch the hotfix is for are not downloaded):ConfigExchange ‑username myU ‑password myPwd ‑download ‑output myDownloads ‑instrumname myInstrum ‑hotfix hf_CPUFix ‑forpatch 1
-
The same command used in the previous example can be shortened using command element abbreviations, in which case it looks as follows:
ConfigExchange ‑user myU ‑pw myPwd ‑dl ‑o myDownloads ‑inn myInstrum ‑hf hf_CPUFix ‑fp 1
-
-
Remove Instrumentation Packages or Elements Thereof from the Database
-
Issue the following command to remove instrumentation package
MyInstrum
, including all associated patches and hotfixes, from the database:ConfigExchange ‑user myU ‑pw myPwd ‑remove ‑instrumname myInstrum
-
Issue the following command to roll back hotfix
hf_CPUFix
for patch number1
from instrumentation packageMyInstrum
(the base package and the patch are not removed):ConfigExchange ‑user myU ‑pw myPwd ‑remove ‑instrumname myInstrum ‑hotfix hf_CPUFix ‑forpatch 1
-
Issue the following command to roll back patches with a patch number ≤1 and all their hotfixes (the base package and any patches with a patch number >1 are not removed):
ConfigExchange ‑user myU ‑pw myPwd ‑remove ‑instrumname myInstrum ‑patch 1
-
-
Create a Directory Structure to be Used as a Template for Preparing an Instrumentation Package from Scratch with the Intention to Upload It
Issue the following command to create a directory structure for instrumentation
MyInstrum
in the directory/usr/myCustomInstrum
:ConfigExchange ‑createinstrumdir ‑output /usr/myCustomInstrum
-
Investigate Which Patches and Hotfixes are Installed for a Certain Instrumentation Package
Issue the following command to list all patches and hotfixes for instrumentation
myInstrum
:ConfigExchange ‑username myU ‑password myPwd ‑list ‑instrumname myInstrum
Troubleshooting
Some of the errors reported by ConfigExchange can be classified as warnings and can be ignored. The policy upload process ignores these errors and continues. The following sections describe some of these errors.
-
Problem:
An instrumentation with dirName "<name>" already exists.
The tool re-attempts uploading an instrumentation after encountering import problems. In this case the error may happen because an instrumentation with the same name, ID, or version already exists in the database, having been created during the first attempt.
Solution: Can be ignored.
-
Problem:
Template "<name>" already exists with a different ID (<ID>) in the database.
The tool attempts to import a policy template that already exists in the database with the same name but a different ID.
Solution: Policy names must be unique in OMi, also across different policy template types. In OM, rename the policies using unique policy names and then re-import them to OMi.
-
Problem:
Template version "<name>" <version> (version ID <ID>) is already in the database.
You may be attempting to upload a policy with the same version number as a policy already uploaded to the database. For example, if an HPOM policy is uploaded to Monitoring Automation, and is then modified in both Monitoring Automation and HPOM, the same policy version numbers are created with different policy content. If you then attempt to re-import the HPOM-modified policy to Monitoring Automation, ConfigExchange generates an error.
Solution: Delete the policy version in Monitoring Automation and re-import the HPOM policy. A policy should have a dedicated master. Do not modify a policy in both Monitoring Automation and HPOM to avoid version conflicts.
-
Problem:
Object [templateVersion] is read-only.
ConfigExchange attempts to re-import the same policy version. However either the policy was modified without leading to a new version on the Operations Management server or instrumentation was missing during the first upload. For example, ConfigExchange imports a policy although some instrumentation categories are missing. When importing the same policy for a second time, ConfigExchange assumes that new categories were added to the policy.
Solution: Can be ignored.
-
Problem:
No template with id: "<ID>" found.
A policy group contains a policy that cannot be uploaded to Monitoring Automation, for example because the policy type is not supported in Monitoring Automation.
Solution: Can be ignored.
-
Problem:
No instrumentation with id: "<ID>" found.
This may occur when importing further versions of same policy name.
Solution: Can be ignored.
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to ovdoc-asm@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: