Replicating data using the table replication definition file
The gateway replicates data between ObjectServer tables and the gateway target. The table replication definition file is used to define which tables and event types are monitored in Tivoli Netcool/OMNIbus and forwarded to the target that the gateway is configured to send data to.
Gate.RDRWTR.TblReplicateDefFile
The default table replication definition file is in the following directory: $OMNIHOME/gates/tivoli_eif/tivoli_eif.rdrwtr.tblrep.def
The default table replication definition file contains example commands. You should make a backup copy of the default file for future reference.
REPLICATE command
to replicate data from the primary tables (alerts.status, alerts.journal, alerts.details)
and dynamic secondary tables (if required). You can
add one or more optional clauses to the REPLICATE command
to further process the data during replication. The available commands
are listed in the following syntax example. Use the optional clauses
in the order in which they are listed in the syntax. For example,
when using both the
FILTER WITH and AFTER
IDUC DO clauses, the FILTER WITH clause
must precede the AFTER IDUC DO clause.
REPLICATE ALL | (INSERTS, UPDATES, DELETES)
FROM TABLE sourcetable
USING MAP mapname
[FILTER WITH filter]
[INTO targettable]
[ORDER BY order, ... ]
[AFTER IDUC DO afteriduc] ;
Command |
Description |
|---|---|
|
Filters the database rows selected for replication,
where filter defines the filter that the gateway
uses in the Filtering is positive by default, which means that only those events that match the filter definition are replicated. You can use a negative filter by putting an exclamation mark (!) before the equals sign (=) in the filter clause. For example, the following filter clause replicates all events whose severity is not 5:
|
|
Order results by the |
|
Updates replicated rows, where afteriduc specifies
which field to update with what value. This uses the |
Optimizing the eif_gw_resync trigger
When
many or most alerts within an ObjectServer are
of no interest to the gateway and you use a filter in the tivoli_eif.rdrwtr.tblrep.def file
to exclude the corresponding events, then you should modify the eif_gw_resync trigger
within the tivoli_eifgw_setup.sql file to use
the same gateway filter. This modification optimizes the eif_gw_resync trigger
by reducing the number of ObjectServer alerts
that are touched during resynchronization operations.
To modify
the eif_gw_resync trigger within the tivoli_eifgw_setup.sql file,
add a where clause that has the same effect as the
filter that you are specifying for the gateway to the update
alerts.status clause. For example, if you are using the filter EIF_flag=1,
then extend the following sql statement:
update alerts.status set Severity = Severity;to this:
update alerts.status set Severity = Severity where EIF_FLAG=1;