Hitachi

JP1 Version 12 JP1/Base User's Guide


2.3.2 Event database

An event database consists of files that accumulate JP1 events occurring on hosts running JP1/Base.

An event database consists of the following files:

The files above are generated automatically when an event service starts. Two data files, two index files, and two transfer information files are generated. When the first file reaches the size specified by the db-size parameter in the event server settings file (conf), the second file is swapped in. When the second file reaches the maximum size, the contents of the first file are cleared and new JP1 events are accumulated in the first file.

Organization of this subsection

(1) Swapping of event databases

The following figure shows how the event databases are swapped over.

Figure 2‒10: Swapping of event databases

[Figure]

The event database is swapped over when the data in the current database reaches the size specified in the event server settings file, or when the time limit for keeping JP1 events specified in the event server settings file has expired. You can also use a command to manually swap the databases.

You can check the contents of the event database from the Event Console window of JP1/IM - View, or by using a command to output the database contents to a CSV file. For information on JP1/IM - View, see the manual JP1/Integrated Management 2 - Manager Administration Guide. For details on how to output the contents of the event database to a CSV file, see 10.3 Outputting the event database to a CSV file.

(2) When event databases are checked for possible corruption

Note that the event database might become corrupted if you edit it directly, or if you use an OS command or backup software to back up or restore the event database while the event service is active.

JP1/Base checks whether the event database is corrupted at the following times:

#

A message reporting that the database is corrupted is output only once for both the active and standby event databases. If an active event database is corrupted, this message appears only once when you attempt to acquire or retrieve a JP1 event from that database. The same is also true for a standby event database corruption.

To check messages in JP1/IM - View, convert the messages to JP1 events and send them to the manager host. For details on event conversion, see 11. Setting Up the Event Converters.

(3) Checking duplicate JP1 event registrations

The event service enables you to check whether any duplicate JP1 events exist in the event database when registering a JP1 event. Unless duplicate registration is checked, a duplicate JP1 event might be registered when the following situation occurs:

(4) Duplication prevention table

The duplication prevention table enables you to check whether any duplicate JP1 event exists. The transfer records of JP1 events for each sending host are written in the duplication prevention table. When the event server receives a JP1 event, the transfer record of the JP1 event will be added to the duplication prevention table or updated the appropriate record. The transfer records of JP1 events contain information required for searching the event database when checking for duplicate JP1 event registrations, such as the maximum value for the source event database serial number.

If the save-rep flag has been specified in the options parameter in the event server settings file (conf), the duplication prevention table is kept in a file. If the save-rep flag has not been specified, the duplication prevention table is kept in memory. The behavior of the JP1 event server that receives JP1 events depends on whether the JP1 event is kept in a file or in memory. We recommend that the duplication prevention table be kept in a file.

The differences in the behavior of the JP1 event server are as follows:

When kept in a file

The duplication prevention table is kept in a non-volatile state. Therefore, the data in the duplication prevention table is not erased even if the event server is restarted. When the event server receives a JP1 event from a host that has never been recorded in the duplication prevention table, the JP1 event is considered unknown and recorded in the duplication prevention table. The time necessary for recording a forwarded JP1 event is always the same, regardless of whether the JP1 event has already been forwarded or not.

If the event database is lost from the target host due to, for example, server replacement or disk failure, and the event database serial number is reset to 0 on the source host, during operation you can clear from the duplication prevention table the maximum value for the source event database serial number on the source host by issuing a JP1 event for clearing the duplication prevention table (user event) on the source host or the target host.

  • JP1 event for clearing the duplication prevention table (user event)

    Event ID: 7FFF8001

    Message: DPT CLEAR EVENT

    OBJECT_NAME: Source event server name (required only if the JP1 event is issued on the target host)

When kept in memory

The duplication prevention table is kept in a volatile state. Therefore, the data in the duplication prevention table is erased when the event server is restarted. When the event server receives a JP1 event from a host that has never been recorded in the duplication prevention table, the JP1 event is searched for in the event database, and then recorded in the duplication prevention table. The time necessary for recording a forwarded JP1 event depends on the fact that the JP1 event has already been forwarded or not.

Also, if the event server receives a JP1 event forwarded from a new agent, the JP1 event is searched for among all of the JP1 events registered in the event database. This means that delays might occur when operating on JP1 events. The delay becomes greater in proportion to the size of the event database.