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
Policy Management CLI workflows
You can use the CLIs opr-template
, opr-config-tool
, and opr-assign
for CLI-based end-to-end policy management:
-
opr-template
: to edit policiesDownload and upload policies, check the syntax (policy data and parameters), and list/delete policies.
-
opr-config-tool
: to update aspects and management templatesShow impacted aspects and management templates after having created a new policy version, and update aspects and management templates to use the latest policy version.
-
opr-assign
: to update assignmentsEnable or disable an (auto-)assignment rule, update an (auto-)assignment rule, and change parameter values.
To deploy a specific aspect to a CI, do the following:
-
Get the ID for a specific CI:
opr-ci-list -node_list example.company.net
Output:
Type: nt
ID: 4559693cfb527b06a5444f0d0f106750
Label: example -
Get the list of aspects and their versions:
opr-config-tool -list -type aspect
Output:
8261d0cf-3e13-94a7-bc36-59a10c7d9dd7 “MyMonitoringAspect” 1.5
-
Assign and deploy the aspect MyMonitoringAspect to the new CI:
opr-assign -create_assignment_by_aspect_version -ci_id 4559693cfb527b06a5444f0d0f106750 -id 8261d0cf-3e13-94a7-bc36-59a10c7d9dd7 -parameter_value Param1=Value1
Output:
AspectAssignment:8261d0cf-3e13-94a7-bc36-59a10c7d9dd7: 4559693cfb527b06a5444f0d0f106750
-
Change the policy parameter of the created assignment:
opr-assign -update_assignment -id AspectAssignment:8261d0cf-3e13-94a7-bc36-59a10c7d9dd7:4559693cfb527b06a5444f0d0f106750 –parameter_value Param1=NewValue
To change the name of an existing policy and reupload it, do the following:
-
Download a policy (MyEventPolicy) for modification:
opr-template -download -name MyEventPolicy –object_version 1.0 -output /tmp/mypolicy
Output:
92cd640e-289e-4043-ad23-df94baff03e6 "OprEvent" 1.0
-
Use sed to modify the content of the files:
sed ‘s/MyPolicyName/MyNewPolicyName/g’ /tmp/mypolicy/*
-
Upload the modified policy from /tmp/mypolicy:
opr-template –upload –input /tmp/mypolicy
To deploy an updated policy template to a specific CI, do the following:
-
Download a policy (MyEventPolicy) for modification:
opr-template -download -name MyEventPolicy –object_version 1.0 -output C:\temp
Output:
92cd640e-289e-4043-ad23-df94baff03e6 " MyEventPolicy" 1.0
-
Do the necessary changes in the policy body file, for example
C:\temp\92cd640e-289e-4043-ad23-df94baff03e6_data
-
Check that the syntax of the modified policy is still correct:
opr-template –check –input C:\temp
Output:
INFO: Syntax check for 'OprEvent' is OK.
Checked version 1.0 with id 92cd640e-289e-4043-ad23-df94baff03e6.INFO: syntax-check summary: total=1, ok=1, failed=0, ignoredStubs=0
-
Upload the modified policy:
opr-template -upload -input C:\temp
Output:
48a94f9e-35b7-4661-a9ea-1dad3497dcdf "OprEvent" 1.1
INFO: upload summary: total=1, ok=1, failed=0, skpped=0, ignoredStubs=0
-
Get the CI ID for a specific CI:
opr-ci-list -node_list example.company.net
Output:
Type: nt
ID: 4559693cfb527b06a5444f0d0f106750
Label: example -
Assign and deploy the imported policy to example.company.net:
opr-assign -create_assignment_by_template_version -ci_id 4559693cfb527b06a5444f0d0f106750 48a94f9e-35b7-4661-a9ea-1dad3497dcdf
Output:
TemplateAssignment:48a94f9e-35b7-4661-a9ea-1dad3497dcdf:4e4695241cba263baa8c8c3cff389882
To add a policy from a template group to an aspect and deploy the created aspect version to a specific CI, do the following:
-
Get a list of the OSMonitoring template group's policy templates:
opr-template –list –type tg –name OSMonitoring
Output:
“MyProcessMonitoring” 1.0 65b8bc83-b995-5d53-ca08-5490ec29c890
-
Add the MyProcessMonitoring policy template to the existing aspect MyMonitoringAspect:
opr-config-tool -create_containment -type t -name MyProcessMonitor -parent_type a -parent_name MyMonitoringAspect
Output:
36ad02d0-4a67-4738-a9bb-d450f72d9849 “MyMonitoringAspect” 1.1
-
Get the node's CI ID:
opr-ci-list -node_list example.company.net
Output:
Type: nt
ID: 4559693cfb527b06a5444f0d0f106750
Label: example -
Assign and deploy the new aspect version to the CI:
opr-assign –create_assignment_by_aspect_version -ci_id 4559693cfb527b06a5444f0d0f106750 36ad02d0-4a67-4738-a9bb-d450f72d9849 –parameter_value Param1=Value1
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: