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-archive-events Command-Line Tool
In OMi, events are automatically archived by a background process in a configurable interval. Event auto archiving can be configured using the infrastructure setting Event Auto Archiving Settings.
To access:
Administration > Setup and Maintenance > Infrastructure Settings
Alternatively, click Infrastructure Settings.
Select Applications and use the list to set the administration context to Operations Management. Scroll to Operations Management - Event Auto Archiving Settings.
To manually delete closed events from the database and add them to an archive file, you can use the database maintenance command-line tool opr-archive-events.
Note Importing closed events is not supported.
opr-archive-events
does not forward 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 closing of events using the opr-close-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-archive-events
command-line tool is available only on data processing servers at:
<OMi_HOME>/bin/opr-archive-events
Default:
Windows: C:\HPBSM\bin
Linux: /opt/HP/BSM/bin
Synopsis
opr-archive-events
opr-archive-events -u <date> -o <ouputPathAndFileName>[-a][-s][-force][-utc][-i <severities>] [-n <nodeId>] [-c <category>]
opr-archive-events -olderThan <relative time> -o <outputPathAndFileName> [-a][-s][-force][-utc][-i <severities>][-n <nodeId>][-c <category>]
opr-archive-events -u <date> -d [-s][-force][-utc][-i <severities>][-n <nodeID>][-c <category>]
opr-archive-events -id <eventID> [<event_id,...>]] -o <outputPathAndFileName> [-force]
opr-archive-events -h
Note You can combine the options that are given between square brackets. Otherwise, use the rest of the options separately.
Options
Option | Description |
---|---|
-a,--archiveOnly <archive file> |
Only archives events without deleting them from the database. |
-c,--category <category> |
Archives or deletes events belonging to the specified category. |
-d,--deleteOnly |
Deletes only the events from the database without archiving. |
-force |
Archives events without asking user for confirmation. |
-h,--help |
Displays a summary of the command options and exits. |
-i,--severities <severities> |
Archives or deletes only events having the specified severities (for example, major, critical). |
-id <id> |
Archives event(s) with the specified ID(s). To archive multiple events, use a comma to separate the IDs. Must be used in conjunction with the Cannot be used in conjunction with the |
-n,--nodeId <nodeId> |
Archives the events related to the specified node. |
-o,--output <archive_file> |
Path and name of XML file used to store archived events. |
-s,--sweepOrphans |
Deletes all orphaned objects not related to events. This option is ignored if '-a' is specified. |
-t,--olderThan <older_than> |
Archives 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 archived. The time argument can also accept a subset of days, hours, minutes, and seconds, for example, the parameter " |
-u,--until <date> |
Archives the events that where received before the specified 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-archive-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-archive-events must be granted access to the Events database.
Tip In the XML output file of the archiving tool, use the modifiedBy
attribute to identify the event property that was changed by a user, identified by their OMi username.
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: