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
opr-close-events Command-Line Tool
It is possible that a certain problem in the IT environment results in the generation of a very large number of similar events (event storm) which are received by OMi. Browsing through and filtering a large number of events can be time-consuming and can lead to time-out errors. After an event storm occurs, for example, you can use the opr-close-events command-line tool to close all active events that are related to a specific node, related CI, or a combination of both node and related CI.
Time-outs may be experienced as a result of delays in processing a large number of events in the web application, for example, when you select all events in the browser and attempt to close them. The user interface server may take a long time to start up or may experience a memory bottleneck.
You can use the opr-close-events
command-line tool to close a large number of events, including related events, as experienced during an event storm, even when the OMi user interface is not responding.
Note Event processing might stop for some time after the tool finishes execution.
opr-close-events
does not forward close-event updates to other servers, for example to other OMi or to OM servers. The events in other OMi or OM servers remain unaffected. (This also applies to the deleting and archiving of events using the opr-archive-events
command-line tool.)
The opposite is also true when using the omwmsgutil
(OM for Windows) tool and opcack
and opchistdown
(OM for UNIX or Linux) to close, delete, and archive events in OM. The events in OMi remain unaffected.
All these tool operate directly on their respective databases and the changes do not go through the workflow process, resulting in the loss of synchronization between OMi and OM.
If you use these tools to close, delete, and archive events from one system (for example, OMi), you must make the equivalent changes with the appropriate tools on the other system (for example, OM).
Alternatively, if event synchronization is required, use the OMi Event Synchronization Web Service. For details, see Forward events and synchronize event changes.
Location
The opr-close-events
command-line tool is available only on data processing servers at:
<OMi_HOME>/bin/opr-close-events
Default:
Windows: C:\HPBSM\bin
Linux: /opt/HP/BSM/bin
Synopsis
opr-close-events [-f <date>] [-u <date>] [-s <severity>] [-force] [-utc]
[-n <ci_id> [<ci_id>, ...]] [-c <ci_id> [<ci_id>, ...]]
opr-close-events -all [-force] [-utc]
opr-close-events -olderThan <relative time> [-force] [-n <ci_id>
[<ci_id>, ...]] [-c <ci_id> [<ci_id>, ...]]
opr-close-events -id <evt_id> [<evt_id>, ...]] [-force]
opr-close-events -h
opr-close-events -title <title> [-s <severity>] [-force] [-c <ci_id>, ...] [-f <date>] [-u <date>][-utc] [-n <ci_id>, ...] [-r]
Note You can combine the options that are given between square brackets. Otherwise, use the rest of the options separately.
Options
Option | Description |
---|---|
-all |
Closes all events. |
-c,--relatedCiId <relatedCiId> |
Specify one or more CMDB CI IDs, each representing a CI of any type. All events that are related to the specified CIs are closed and all event browsers are refreshed. You can find the CMDB ID from the General properties of the related CI. For example, the CMDB ID for the related CI The -c option can be used in combination with the -n option to select all events that match both the specified node and the specified related CI. To close events that are related to both a node and a particular CI, combine the -c and -n options and specify the CMDB ID for the related CI and the CMDB ID for the node. Your command should take the following form:
|
-f,--from <date> |
Closes events (including related events) received after the specified time. This option can be combined with severity and until time. The time must be specified in one of the following formats:
|
-force |
Closes events without asking user for confirmation. |
-h,--help |
Displays a summary of the command options and exits. |
-i,--id <id> |
Closes events with the specified event ID(s). Example: |
-n,--node <node> |
Specify one or more CMDB CI IDs, each representing a CI of type Node. All events that are related to the specified Nodes are closed and all event browsers are refreshed. You can find the CMDB ID from the General properties of the related CI. For example, the CMDB ID for the node The -n option can be used in combination with the -c option to select all events that match both the specified node and the specified related CI. To close events that are related to both a node and a particular CI, combine the -c and -n options and specify the CMDB ID for the related CI and the CMDB ID for the node. Your command should take the following form:
|
-r,--resetHIs |
Resets health indicators after closing of events. |
-s,--severity <severity> |
Closes events of the specified severity. This option can be combined with from time and until time. The severity can be one of the following: |
-t,--olderThan <older_than> |
Closes events which are older than the specified time. Example: In the example all events which have as time received a value older than the current time (time at executing the CLI) minus 3 days and 12 hours and 5 minutes and 12 seconds are closed. The time argument can also accept a subset of days, hours, minutes, and seconds, for example, the parameter " |
-title <title> |
Closes events with the specified event title. This option can be combined with severity, from time, until time, olderThan, relatedChild, node, force, resetHIs and utc. Example: In the example all events whose titles equal "test" are closed. Example: In this example all events whose titles contain "test" are closed. Note This option is case-sensitive. |
-u,--until <date> |
Closes events received before the specified time. This option can be combined with severity and from time. The time must be specified in one of the following formats:
|
-utc |
Thread date/time parameter as UTC time. |
Restrictions
The user running the opr-close-events command-line tool must be a local user (Windows) or the user under which the OMi processes are running (Linux). If the SQL Server instance uses Windows Authentication Mode, the user running opr-close-events must be granted access to the Events database.
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: