01.01.2013 Views

IBM Tivoli Netcool/OMNIbus Gateway for OMNIbus to TDW ...

IBM Tivoli Netcool/OMNIbus Gateway for OMNIbus to TDW ...

IBM Tivoli Netcool/OMNIbus Gateway for OMNIbus to TDW ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Tivoli</strong>® <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong><br />

Version 0.0.4207<br />

Reference Guide<br />

April 11, 2008<br />

���<br />

SC23-9606-00


<strong>Tivoli</strong>® <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong><br />

Version 0.0.4207<br />

Reference Guide<br />

April 11, 2008<br />

���<br />

SC23-9606-00


Note<br />

Be<strong>for</strong>e using this in<strong>for</strong>mation and the product it supports, read the in<strong>for</strong>mation in “Notices” on page 29.<br />

Edition notice<br />

This edition applies <strong>to</strong> version 0.0.4207 of <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong><br />

(SC23-9606-00) and <strong>to</strong> all subsequent releases and modifications until otherwise indicated in new editions.<br />

© Copyright International Business Machines Corporation 1996, 2008. All rights reserved.<br />

US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract<br />

with <strong>IBM</strong> Corp.


Contents<br />

Document control page . . . . . . . . v<br />

Chapter 1. <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong><br />

<strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> . . . . . 1<br />

Summary . . . . . . . . . . . . . . .1<br />

<strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong><br />

in<strong>for</strong>mation flow . . . . . . . . . . . . .1<br />

ODBC <strong>Gateway</strong> writer . . . . . . . . . . .2<br />

Chapter 2. Installing the gateway . . . . 5<br />

Installing the gateway on UNIX . . . . . . . .5<br />

Installing the gateway on Windows . . . . . . .5<br />

Chapter 3. Configuring the <strong>Gateway</strong> <strong>for</strong><br />

<strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> . . . . . . . . . . . 7<br />

Common gateway properties . . . . . . . . .7<br />

Hash table cache . . . . . . . . . . . .8<br />

Error handling . . . . . . . . . . . . .9<br />

Process Agent control . . . . . . . . . .9<br />

<strong>TDW</strong> and ODBC writer properties . . . . . . .9<br />

Buffer size . . . . . . . . . . . . . .12<br />

Chapter 4. <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong><br />

<strong>TDW</strong> mapping . . . . . . . . . . . . 15<br />

Mapping attributes . . . . . . . . . . . .16<br />

Example mapping . . . . . . . . . . . .16<br />

Chapter 5. Startup command file . . . 19<br />

SET PROPERTY . . . . . . . . . . . . .19<br />

GET PROPERTY . . . . . . . . . . . . .19<br />

SHOW PROPS . . . . . . . . . . . . .19<br />

GET CONFIG . . . . . . . . . . . . .20<br />

TRANSFER . . . . . . . . . . . . . .20<br />

FAILOVER SYNCH . . . . . . . . . . . .20<br />

Chapter 6. Table definition replication<br />

file . . . . . . . . . . . . . . . . 23<br />

Example table definition replication file . . . . .24<br />

Chapter 7. Running the gateway . . . . 27<br />

Running the gateway on UNIX . . . . . . . .27<br />

Running the gateway on Windows . . . . . .27<br />

Running the gateway on Windows service . . .27<br />

Notices . . . . . . . . . . . . . . 29<br />

Trademarks . . . . . . . . . . . . . .31<br />

© Copyright <strong>IBM</strong> Corp. 1996, 2008 iii


iv <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Document control page<br />

Use this in<strong>for</strong>mation <strong>to</strong> track changes between versions of this guide.<br />

The <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> documentation is provided in softcopy <strong>for</strong>mat<br />

only. To obtain the most recent version, visit the <strong>IBM</strong> ®<br />

<strong>Tivoli</strong> ®<br />

In<strong>for</strong>mation Center:<br />

http://publib.boulder.ibm.com/infocenter/tivihelp/v8r1/index.jsp<br />

Table 1. Document modification his<strong>to</strong>ry<br />

Document<br />

version<br />

Publication<br />

date<br />

Comments<br />

00 April 11, 2008 First <strong>IBM</strong> publication.<br />

© Copyright <strong>IBM</strong> Corp. 1996, 2008 v


vi <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Chapter 1. <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong><br />

<strong>to</strong> <strong>TDW</strong><br />

Summary<br />

The <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> is used <strong>to</strong> <strong>for</strong>ward events generated by the<br />

<strong>Netcool</strong>/<strong>OMNIbus</strong> ObjectServer <strong>to</strong> <strong>Tivoli</strong> Data Warehouse (<strong>TDW</strong>).<br />

The <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> consists of an ObjectServer <strong>Gateway</strong> reader<br />

that obtains events from <strong>Netcool</strong> ® /<strong>OMNIbus</strong>, an ObjectServer <strong>Gateway</strong> gateway<br />

mapper that maps data <strong>to</strong> the required tables within <strong>TDW</strong>, and an ODBC <strong>Gateway</strong><br />

writer that writes that data <strong>to</strong> <strong>TDW</strong>.<br />

The following table provides a summary of the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>.<br />

Table 2. Summary of the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong><br />

<strong>Gateway</strong> target <strong>Tivoli</strong> Data Warehouse version 2.1<br />

<strong>Gateway</strong> executable filename nco_g_tdw<br />

Patch number 0.0<br />

<strong>Gateway</strong> supported on Solaris, AIX ® , HP-UX, Linux ® , Windows ®<br />

Note: The <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> is not<br />

supported on HP-UX 11.11 running on dual processors.<br />

Configuration files $OMNIHOME/etc/NCO_GATE.props<br />

Requirements <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> V7.0, V7.1, or V7.2.<br />

common-libngtk-1_3 common-libngobjserv-1_6 (required<br />

on UNIX ®<br />

only)<br />

common-libodbc-drivers-0_0<br />

Licensing Electronic licensing is no longer implemented in <strong>IBM</strong><br />

<strong>Tivoli</strong> <strong>Netcool</strong> products. All <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong><br />

products now use the <strong>IBM</strong> software licensing process.<br />

Remote connectivity Yes<br />

Failover or failback functionality Not available<br />

<strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> in<strong>for</strong>mation flow<br />

The <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> is a uni-directional<br />

gateway that <strong>for</strong>wards events generated by <strong>Netcool</strong>/<strong>OMNIbus</strong> ObjectServer <strong>to</strong><br />

<strong>TDW</strong>.<br />

The gateway uses various <strong>Netcool</strong>/<strong>OMNIbus</strong> components <strong>to</strong> collect and trans<strong>for</strong>m<br />

event data and the generic ODBC <strong>Gateway</strong> writer <strong>to</strong> write data <strong>to</strong> <strong>TDW</strong>. The<br />

following diagram shows the flow of in<strong>for</strong>mation from <strong>Netcool</strong>/<strong>OMNIbus</strong> <br />

<strong>to</strong><br />

<strong>TDW</strong>.<br />

© Copyright <strong>IBM</strong> Corp. 1996, 2008 1


<strong>Netcool</strong>/<strong>OMNIbus</strong><br />

ObjectServer<br />

ODBC <strong>Gateway</strong> writer<br />

1 2 3<br />

ObjectServer<br />

<strong>Gateway</strong><br />

Reader<br />

ObjectServer<br />

<strong>Gateway</strong><br />

Mapper<br />

Table 3. In<strong>for</strong>mation flow callout descriptions<br />

Callout identifier Description<br />

ODBC<br />

<strong>Gateway</strong><br />

Writer<br />

<strong>TDW</strong><br />

V2.1<br />

Figure 1. <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> in<strong>for</strong>mation flow<br />

▌1▐ The <strong>Netcool</strong>/<strong>OMNIbus</strong> ObjectServer <strong>Gateway</strong> reader obtains event<br />

changes from the ObjectServer using an IDUC connection.<br />

▌2▐ The <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> mapper maps data <strong>to</strong> the<br />

required destination tables in <strong>TDW</strong>.<br />

▌3▐ The ODBC <strong>Gateway</strong> takes the mapped <strong>Netcool</strong>/<strong>OMNIbus</strong> event<br />

data from which it creates SQL statements <strong>to</strong> send <strong>to</strong> <strong>TDW</strong>. These<br />

SQL statements populate the <strong>TDW</strong> with the details of the<br />

<strong>Netcool</strong>/<strong>OMNIbus</strong> events.<br />

The <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> uses a generic ODBC <strong>Gateway</strong> writer <strong>to</strong><br />

popluate the <strong>TDW</strong> database.<br />

The following diagram shows how the generic ODBC <strong>Gateway</strong> acquires mapped<br />

events from <strong>Netcool</strong>/<strong>OMNIbus</strong> and sends them on <strong>to</strong> <strong>TDW</strong>.<br />

2 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


1 2<br />

ObjectServer<br />

<strong>Gateway</strong><br />

Mapper<br />

Full Batches<br />

Table 4. ODBC <strong>Gateway</strong> data processing callout descriptions<br />

Callout identifier Description<br />

3<br />

WriterTbl<br />

InsertHdl<br />

SQL Genera<strong>to</strong>r<br />

WriterTbl<br />

UpdateHdl<br />

Inserts Updates Deletes<br />

Flush Events<br />

Post Process<br />

5 4<br />

Figure 2. Data processing by the ODBC <strong>Gateway</strong><br />

WriterTbl<br />

DeleteHdl<br />

ODBC<br />

Execute<br />

<strong>TDW</strong><br />

Database<br />

▌1▐ The ODBC <strong>Gateway</strong> receives mapped inserts, updates, and deletes<br />

<strong>for</strong> each reader IDUC period.<br />

▌2▐ The writer builds batches of array-parameterized ODBC insert,<br />

update, and delete statements using the appropriate writer callback<br />

handler.<br />

▌3▐ If the number of batched statements exceeds the maximum batch<br />

size specified by the Gate.WRITER.BufferSize property, the ODBC<br />

<strong>Gateway</strong> flushes them <strong>to</strong> <strong>TDW</strong>.<br />

▌4▐ After each IDUC, a post processing handler flushes the SQL<br />

statements.<br />

▌5▐ ODBC connection errors and s<strong>to</strong>re-and-<strong>for</strong>ward processing are<br />

handled during the flush phase.<br />

Chapter 1. <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> 3


4 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Chapter 2. Installing the gateway<br />

The <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> can be installed on both UNIX and Windows<br />

plat<strong>for</strong>ms.<br />

This section contains the following <strong>to</strong>pics:<br />

v “Installing the gateway on UNIX”<br />

v “Installing the gateway on Windows”<br />

Installing the gateway on UNIX<br />

Per<strong>for</strong>m the following steps <strong>to</strong> install the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> on UNIX.<br />

1. Back up the existing configuration files in the $OMNIHOME/gates/tivoli_tdw<br />

direc<strong>to</strong>ry.<br />

These files will be overwritten by the new installation.<br />

2. Extract the installation file omnibus-3.6-arch-gateway-nco-g-tivoli-tdw-0_0.tar.Z<br />

<strong>to</strong> the $OMNIHOME/install direc<strong>to</strong>ry.<br />

3. Run the patch utility script in the $OMNIHOME/install direc<strong>to</strong>ry using the<br />

following command:<br />

$OMNIHOME/install/nco_patch -install<br />

4. Copy the example configuration file $OMNIHOME/gates/tivoli_tdw/<br />

NCO_GATE.props <strong>to</strong> the $OMNIHOME/etc direc<strong>to</strong>ry.<br />

5. Edit the configuration file <strong>to</strong> suit your environment: Specify the DNS name <strong>for</strong><br />

the ODBC connection, the user name, and password, and make any other<br />

changes appropriate <strong>to</strong> your system.<br />

6. Create the NCO_GATE server in the interfaces file using nco_xigen.<br />

For details about using nco_xigen, see the <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong><br />

Administration Guide, (SC23-6371).<br />

Note: The database creation scripts <strong>for</strong> <strong>Netcool</strong>/Reporter are provided in the<br />

gateway-nco_g_reporter-scripts patch. They are not included in this gateway. If you<br />

want the database creation scripts <strong>for</strong> <strong>Netcool</strong>/Reporter, you must also install the<br />

gateway-nco_g_reporter-scripts patch. After installing this patch, you can find the<br />

current versions of the example configuration files and database creation scripts in<br />

the $OMNIHOME/gates/odbc. If you have the gateway-nco_g_reporter-scripts<br />

installed, the current versions of the database creation scripts <strong>for</strong> <strong>Netcool</strong>/Reporter<br />

are in the $OMNIHOME/gates/reporter/odbc.<br />

Installing the gateway on Windows<br />

Per<strong>for</strong>m the following steps <strong>to</strong> install the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> on<br />

Windows.<br />

1. Back up the existing configuration files in the following direc<strong>to</strong>ries:<br />

%OMNIHOME%\gates\tivoli-tdw-0 and %OMNIHOME%\gates\reporter.<br />

These files will be overwritten by the new installation.<br />

2. Open the omnibus-3.6-wnt-gateway-nco-g-tivoli-tdw-0_0.tar.Z patch file using a<br />

file archive application.<br />

3. Extract the files in<strong>to</strong> the %OMNIHOME% direc<strong>to</strong>ry.<br />

© Copyright <strong>IBM</strong> Corp. 1996, 2008 5


4. Copy the example configuration file %OMNIHOME%\gates\tivoli_tdw\<br />

NCO_GATE.props <strong>to</strong> the %OMNIHOME%\etc direc<strong>to</strong>ry.<br />

5. Edit the configuration file <strong>to</strong> suit your environment: Specify the DNS name <strong>for</strong><br />

the ODBC connection, the user name, and password, and make any other<br />

changes appropriate <strong>to</strong> your system.<br />

6. Create the NCO_GATE server in the interfaces file using Server Edi<strong>to</strong>r.<br />

For details about using Server Edi<strong>to</strong>r, see the <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong><br />

Administration Guide, (SC23-6371).<br />

6 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Chapter 3. Configuring the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong><br />

The gateway is configured using a properties file. This is a text file that contains a<br />

set of properties and their corresponding values. These properties define the<br />

operational environment of the gateway, such as connection details and the<br />

location of the other configuration files.<br />

To run the gateway on UNIX, enter the following command on the command line:<br />

nco_g_tdw<br />

The default location <strong>for</strong> the properties file is:<br />

$OMNIHOME/etc/NCO_GATE.props<br />

The default properties file must be copied <strong>to</strong> the $OMNIHOME/etc folder.<br />

This section contains the following <strong>to</strong>pics:<br />

v “Common gateway properties”<br />

Common gateway properties<br />

v “<strong>TDW</strong> and ODBC writer properties” on page 9<br />

You can configure <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> by using properties defined in a<br />

properties file.<br />

For in<strong>for</strong>mation about <strong>Netcool</strong>/<strong>OMNIbus</strong> properties and interprocess<br />

communication (IPC) properties, see the <strong>IBM</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> Probe and <strong>Gateway</strong><br />

Guide (SC23-6387). The following table describes the common gateway properties.<br />

Table 5. Common gateway properties and command line options<br />

Property name Command line option Description<br />

Gate.<br />

CacheHashTblSize<br />

integer<br />

-chashtblsize integer Use this property <strong>to</strong> specify the size (in<br />

elements) that the gateway allocates <strong>for</strong><br />

the hash table cache.<br />

The default is 5023.<br />

Gate.MapFile string -mapfile string Use this property <strong>to</strong> specify the<br />

location of the map definition file.<br />

Gate.StartupCmdFile<br />

string<br />

Gate.Transfer.<br />

FailoverSyncRate<br />

integer<br />

The default is $OMNIHOME/gates/<br />

tivoli_tdw/tivoli_tdw.map .<br />

-startupcmdfile string Use this property <strong>to</strong> specify the<br />

location of the startup command file.<br />

The default is $OMNIHOME/<br />

tivoli_tdw/tivoli_tdw.startup.cmd.<br />

-fsyncrate integer Use this property <strong>to</strong> specify the rate (in<br />

seconds) of the failover<br />

synchronization.<br />

The default is 60.<br />

© Copyright <strong>IBM</strong> Corp. 1996, 2008 7


Table 5. Common gateway properties and command line options (continued)<br />

Property name Command line option Description<br />

Gate.NGtkDebug<br />

boolean<br />

-ngtkdebug boolean Use this property <strong>to</strong> specify whether<br />

the NGTK library should log debug<br />

messages.<br />

The default is TRUE.<br />

Note: You can specify which debug<br />

messages are included in the debug log<br />

file using the Gate.Mapper.Debug,<br />

Gate.Reader.Debug and<br />

Gate.Writer.Debug properties.<br />

Gate.PAAware integer -paaware integer Use this property <strong>to</strong> specify whether<br />

the gateway is Process Agent (PA)<br />

aware.<br />

Gate.PAAwareName<br />

string<br />

The default is 0 (not PA aware).<br />

Note: This property is maintained by<br />

the PA server and is included in the<br />

properties file <strong>for</strong> in<strong>for</strong>mation only.<br />

-paname string Use this property <strong>to</strong> specify the name<br />

of the Process Agent controlling the<br />

gateway.<br />

The default is ″ ″.<br />

Note: This property is maintained by<br />

the PA server and is included in the<br />

properties file <strong>for</strong> in<strong>for</strong>mation only.<br />

Hash table cache<br />

The gateway uses a hash table cache <strong>to</strong> s<strong>to</strong>re details of tables that require<br />

transferring <strong>to</strong> <strong>TDW</strong>.<br />

The main function of the cache is <strong>to</strong> facilitate journal and details table insert<br />

operations. When a journal or detail is <strong>for</strong>warded <strong>for</strong> insertion in<strong>to</strong> <strong>TDW</strong>, the<br />

gateway writer needs <strong>to</strong> know the corresponding status serial in the <strong>TDW</strong>. This<br />

in<strong>for</strong>mation is found in the cache. It is also used <strong>for</strong> any other tables specified<br />

using the table replication definition table.<br />

The cache aids per<strong>for</strong>mance optimization by providing the gateway with an<br />

in-memory summarized view of the contents of the <strong>TDW</strong> <strong>to</strong> which it is linked.<br />

This means that the gateway does not have <strong>to</strong> query <strong>TDW</strong> <strong>to</strong> check <strong>for</strong> the<br />

existence of an event, or the Serial value or Tally value of an event; it can check<br />

the cache of the <strong>TDW</strong> instead.<br />

You can control the size of the hash table cache by using the<br />

Gate.CacheHashTblSize property. By default, the size of the hash table cache is<br />

5023 elements (or rows). This can be increased if the status table has a large<br />

number of rows (<strong>for</strong> example, in excess of 20,000).<br />

Note: To maximize efficiency, you should specify a prime number <strong>for</strong> the<br />

Gate.CacheHashTblSize property.<br />

8 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Error handling<br />

You can troubleshoot problems with the gateway by consulting error messages. To<br />

help you do this, the gateway has configurable error handling.<br />

Error handling is provided by the <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> Toolkit (NGTK)<br />

library. To specify that the NGTK library logs debug messages, set the<br />

Gate.NGtkDebug property <strong>to</strong> TRUE.<br />

You can specify which debug messages are included in the debug files by using<br />

the Gate.Mapper.Debug, Gate.Reader.Debug, and Gate.Writer.Debug properties;<br />

these can be set <strong>to</strong> TRUE or FALSE as appropriate.<br />

Process Agent control<br />

You can control how the gateway runs by using Process Agent control.<br />

The gateway can be run under Process Agent (PA) control. The Gate.PAAware<br />

property indicates whether the gateway is PA aware. The Gate.PAAwareName<br />

property indicates which PA is running the gateway.<br />

These properties are maintained au<strong>to</strong>matically by the PA server and provide<br />

in<strong>for</strong>mation only. Do not change these properties manually.<br />

<strong>TDW</strong> and ODBC writer properties<br />

You specify how the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> writes data <strong>to</strong> <strong>TDW</strong> using the<br />

writer properties defined in the properties file.<br />

The following table describes the writer properties.<br />

Table 6. Writer properties and command line options<br />

Property name Command line option Description<br />

Gate.WRITER.<br />

Buffersize integer<br />

Gate.WRITER.<br />

DateFormat string<br />

Gate.WRITER. Debug<br />

boolean<br />

-writerbufsize integer Use this property <strong>to</strong> specify the<br />

number of entries that the gateway<br />

s<strong>to</strong>res in the buffer be<strong>for</strong>e flushing, if<br />

buffering is enabled. This property can<br />

be used <strong>to</strong> fine-tune the efficiency of<br />

the gateway.<br />

The default is 25.<br />

Note: The gateway flushes the buffer<br />

when the end of a batch of SQL<br />

statements has been reached regardless<br />

of the buffer size.<br />

-writerdate<strong>for</strong>mat string User this property <strong>to</strong> specify the <strong>for</strong>mat<br />

of the timestamp used by the target<br />

database.<br />

The default is ″ ″.<br />

-writerdebug boolean Use this property <strong>to</strong> specify whether<br />

the gateway includes gateway writer<br />

debug messages in the debug log.<br />

The default is TRUE.<br />

Chapter 3. Configuring the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> 9


Table 6. Writer properties and command line options (continued)<br />

Property name Command line option Description<br />

Gate.WRITER.<br />

Description string<br />

Gate.WRITER.<br />

TblReplicate DefFile<br />

string<br />

Gate.WRITER.<br />

ODBCDSN string<br />

Gate.WRITER.<br />

ODBCUser string<br />

Gate.WRITER.<br />

ODBCPassword string<br />

Gate.WRITER.<br />

ODBCIniFile string<br />

Gate.WRITER.<br />

StatusTable string<br />

Gate.READER.Details<br />

TableName string<br />

Gate.READER.Failback<br />

Enabled boolean<br />

-writerdescription string Use this property <strong>to</strong> specify the<br />

application description <strong>for</strong> the writer<br />

connection. This description is used in<br />

triggers and allows you <strong>to</strong> determine<br />

which component of the gateway<br />

attempted <strong>to</strong> per<strong>for</strong>m an action.<br />

-writertblreplicate<br />

deffile string<br />

The default is ″ ″.<br />

Use this property <strong>to</strong> specify the table<br />

replication definition file that the<br />

gateway uses <strong>to</strong> replicate any<br />

additional tables from<br />

<strong>Netcool</strong>/<strong>OMNIbus</strong> in <strong>TDW</strong>.<br />

The default is $OMNIHOME/gates/<br />

tivoli_tdw/tivoli_tdw.reader.tblrep.def.<br />

-writerodbcdsn string Use this property <strong>to</strong> specify the DSN<br />

name of the ODBC connection.<br />

The default is ″ ″.<br />

-writerusername string Use this property <strong>to</strong> specify the user<br />

name that is used <strong>to</strong> authenticate the<br />

ODBC database. This user name is<br />

used <strong>to</strong> establish both the writer’s<br />

IDUC connection and the subsidiary<br />

SQL command connection.<br />

The default is ″ ″.<br />

-writerpassword string Use this property <strong>to</strong> specify the<br />

password associated with the user that<br />

is specified by the<br />

Gate.WRITER.Username property.<br />

The default is ″ ″.<br />

-writerodbcini string Use this property <strong>to</strong> specify the<br />

location of the DataDirect ODBC.ini<br />

file.<br />

The default is ″ ″.<br />

-writerstatustable string Use this property <strong>to</strong> specify the name<br />

of the status table <strong>to</strong> which the ODBC<br />

<strong>Gateway</strong> writes within <strong>TDW</strong>.<br />

-readerdetailstblname<br />

string<br />

-readerfailbackenabled<br />

boolean<br />

10 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide<br />

The default is db.status.<br />

Use this property <strong>to</strong> specify the name<br />

of the details table that the gateway<br />

reads.<br />

The default is alerts.details.<br />

Use this property <strong>to</strong> specify failback <strong>for</strong><br />

this gateway.<br />

The default is TRUE.


Table 6. Writer properties and command line options (continued)<br />

Property name Command line option Description<br />

Gate.READER.Failback<br />

Timeout integer<br />

Gate.READER.IDUC<br />

FlushRate integer<br />

Gate.READER.Journal<br />

TableName string<br />

Gate.READER.<br />

LogOSSql boolean<br />

-readerfailbacktimeout<br />

integer<br />

-readeriducflushrate<br />

integer<br />

-readerjournaltblname<br />

string<br />

Use this property <strong>to</strong> specify the time<br />

(in seconds) that the gateway allows<br />

be<strong>for</strong>e entering failback mode.<br />

The default is 30.<br />

Use this property <strong>to</strong> specify the rate (in<br />

seconds) of the granularity of the<br />

reader.<br />

If you set this property <strong>to</strong> 0, the reader<br />

gets its updates at the same granular<br />

rate as that of the ObjectServer <strong>to</strong><br />

which it is connected.<br />

The default is 0.<br />

Attention: If you set this property <strong>to</strong><br />

a value greater than 0, the reader issues<br />

au<strong>to</strong>matic IDUC flush requests <strong>to</strong> the<br />

ObjectServer with this frequency. This<br />

enables the reader <strong>to</strong> run at a faster<br />

granularity than that of the<br />

ObjectServer, thus enabling the<br />

gateway <strong>to</strong> capture more detailed event<br />

changes in systems where the<br />

ObjectServer itself has high granularity<br />

settings.<br />

Use this property <strong>to</strong> specify the name<br />

of the journal table that the gateway<br />

reads.<br />

The default is alerts.journal.<br />

-readerlogossql boolean Use this property <strong>to</strong> specify whether<br />

the gateway logs all SQL commands<br />

sent <strong>to</strong> the ObjectServer in debug<br />

mode.<br />

The default is FALSE.<br />

Chapter 3. Configuring the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> 11


Table 6. Writer properties and command line options (continued)<br />

Property name Command line option Description<br />

Gate.READER.<br />

Password string<br />

Gate.READER.<br />

ReconnectTimeout<br />

integer<br />

Gate.READER.Server<br />

string<br />

Gate.READER.Status<br />

TableName string<br />

-readerpassword string Use this property <strong>to</strong> specify the<br />

password associated with the user<br />

specified by the<br />

Gate.READER.Username property.<br />

-readerreconntimeout<br />

integer<br />

The default is ″ ″.<br />

If the ObjectServer <strong>to</strong> which the<br />

gateway writes alerts is running on<br />

<strong>Netcool</strong>/<strong>OMNIbus</strong> v7, 7.1, or 7.2, this<br />

password must be encrypted by the<br />

nco_g_crypt utility.<br />

If the ObjectServer <strong>to</strong> which the<br />

gateway writes alerts is running on<br />

<strong>Netcool</strong>/<strong>OMNIbus</strong> v3.6 without PAM<br />

enabled, this password must be<br />

encrypted by the nco_crypt utility.<br />

If the ObjectServer <strong>to</strong> which the<br />

gateway writes alerts is running on<br />

<strong>Netcool</strong>/<strong>OMNIbus</strong> v3.6 with PAM<br />

enabled, no password encryption is<br />

required.<br />

For details about the encryption<br />

utilities, see the <strong>IBM</strong> <strong>Tivoli</strong><br />

<strong>Netcool</strong>/<strong>OMNIbus</strong> Administration Guide<br />

(SC23-6371).<br />

Use this property <strong>to</strong> specify the time<br />

(in seconds) between each reconnection<br />

poll attempt that the gateway makes if<br />

the connection <strong>to</strong> the ObjectServer is<br />

lost.<br />

The default is 30.<br />

-readerserver string Use this property <strong>to</strong> specify the name<br />

of the ObjectServer from which the<br />

gateway reads alerts.<br />

-readerstatustblname<br />

string<br />

The default is NCOMS.<br />

Use this property <strong>to</strong> specify the name<br />

of the status table that the gateway<br />

reads.<br />

The default is alerts.status.<br />

Buffer size<br />

The buffer size controls the number of entries that the gateway s<strong>to</strong>res in its buffer<br />

be<strong>for</strong>e flushing them <strong>to</strong> <strong>TDW</strong>.<br />

To set the buffer size, use the Gate.WRITER.Buffersize property. This property can<br />

be adjusted <strong>to</strong> fine-tune the efficiency of the gateway.<br />

The optimum value <strong>for</strong> the buffer size depends upon the average event size and<br />

the speed of the network. The default value has proved <strong>to</strong> be efficient <strong>for</strong> many<br />

12 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


installations. To determine the most efficient setting <strong>for</strong> your system, compare the<br />

timing figures <strong>for</strong> resynchronization operations per<strong>for</strong>med using different settings<br />

<strong>for</strong> this property.<br />

Chapter 3. Configuring the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> 13


14 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Chapter 4. <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> mapping<br />

The gateway can replicate any table in the <strong>Netcool</strong>/<strong>OMNIbus</strong> ObjectServer. To do<br />

this, the gateway maps data <strong>to</strong> the appropriate fields in the ObjectServer using a<br />

map definition file.<br />

If you want <strong>to</strong> replicate user related system tables (<strong>for</strong> example, SecurityUsers,<br />

SecurityGroups, SecurityRoles, SecurityRoleGrants, and SecurityGroupMembers),<br />

you must also include details of these mappings in this file. The path of the map<br />

definition file is determined by the Gate.Mapfile property in the properties file.<br />

The following map definition file conversion functions can be used in the map<br />

definition file:<br />

v TO_STRING ( )<br />

v TO_INTEGER ( )<br />

v TO_TIME ( )<br />

Syntax<br />

Mappings <strong>for</strong> use with the ObjectServer writer must adhere <strong>to</strong> the following<br />

syntax:<br />

CREATE MAPPING mappingname ( ’ dest_fieldname’ = ( ’@src_fieldname’ |<br />

simple_expression | attribute ) [ ON INSERT ONLY ] [ CONVERT TO type ]<br />

[ NOT NULL (’@src_fieldname’)] [ , ’dest_fieldname’ = ( ’@src_fieldname’ |<br />

simple_expression | attribute ) [ ON INSERT ONLY ] [ CONVERT TO type ]<br />

[ NOT NULL (’@src_fieldname’)] ] ... ) ;<br />

Where:<br />

v mappingname is the name of the mapping <strong>to</strong> be created.<br />

v dest_fieldname is the name of the field <strong>to</strong> be written in the destination<br />

ObjectServer.<br />

v src_fieldname is the name of a field in the ObjectServer alerts.status table.<br />

v simple_expression is an integer or a set of integers and opera<strong>to</strong>rs.<br />

v attribute is an attribute name.<br />

The optional ON INSERT ONLY controls the updating of the field during the life<br />

of the alert; when omitted, the field is updated when any change in the state of the<br />

alert occurs. When included, the field is created once <strong>for</strong> the alert, but is never<br />

updated.<br />

Tip: The ON INSERT ONLY option only applies when setting the value of<br />

variables.<br />

The optional CONVERT TO type enables the mapping <strong>to</strong> define a <strong>for</strong>ced<br />

conversion <strong>for</strong> situations where a source field may not match the type of the<br />

destination field. The type can be INTEGER, STRING, or DATE.<br />

The optional NOT NULL indicates that the mapping is only per<strong>for</strong>med if the<br />

source field is not null; that is, has a value set <strong>for</strong> it.<br />

© Copyright <strong>IBM</strong> Corp. 1996, 2008 15


Mapping attributes<br />

Example mapping<br />

You use attribute names <strong>to</strong> include additional data in mapping definitions. You can<br />

specify two types of attribute: cache value access attributes or dynamic attributes.<br />

Cache value access attributes<br />

The gateway uses cache value attributes <strong>to</strong> access values that are s<strong>to</strong>red in the<br />

cross-reference cache. The following table describes the cache value attributes that<br />

can be used in mapping definitions.<br />

Table 7. Cache value access attributes<br />

Attribute name Description<br />

STATUS.SERIAL Cached serial number <strong>for</strong> the status table row that is<br />

associated with the current journal or details table<br />

row.<br />

STATUS.SERVER_SERIAL Cached server serial number <strong>for</strong> the status table row<br />

that is associated with the current journal or details<br />

table row.<br />

STATUS.SERVER_NAME Cached server name <strong>for</strong> the status table row that is<br />

associated with the current journal or details table<br />

row.<br />

STATUS.IDENTIFIER Cached identifier <strong>for</strong> the status table row that is<br />

associated with the current journal or details table<br />

row.<br />

JOURNAL.SERIAL Cached serial number of the journal table row.<br />

DETAILS.IDENTIFIER Cached identifier of the details table row.<br />

Dynamic attributes<br />

Dynamic attributes enable the gateway <strong>to</strong> access dynamic values that are<br />

au<strong>to</strong>matically generated by the gateway. The following table describes the dynamic<br />

attributes that can be used in mapping definitions.<br />

Table 8. Dynamic attributes<br />

Attribute name Description<br />

ACTION_CODE This attribute displays a single character string that<br />

specifies the type of operation per<strong>for</strong>med. Valid<br />

values are:<br />

v I: Insert<br />

v U: Update<br />

v D : Delete<br />

ACTION_TIME This attribute displays the time in UTC that the<br />

action occurred.<br />

DELETEDAT This attribute displays the date on which the row<br />

was deleted, if applicable.<br />

Mappings define how the gateway replicates tables by assigning data <strong>to</strong><br />

appropriate fields in the ObjectServer.<br />

16 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


The following example shows the mappings <strong>for</strong> the ObjectServer alerts.status table<br />

in<strong>to</strong> which the gateway writes:<br />

CREATE MAPPING StatusMap<br />

(<br />

’identifier’ = ’@Identifier’,<br />

’server_identifier’ = ’@ServerName’ + " " + TO_STRING(’@ServerSerial’),<br />

’sub_source’ = ’@AlertKey’ ON INSERT ONLY,<br />

’sub_origin’ = ’@AlertGroup’ ON INSERT ONLY,<br />

’msg’ = ’@Summary’ ON INSERT ONLY,<br />

’origin’ = ’@Node’ ON INSERT ONLY,<br />

’node_alias’ = ’@NodeAlias’ ON INSERT ONLY<br />

NOTNULL ’@Node’,<br />

’manager’ = ’@Manager’ ON INSERT ONLY,<br />

’source’ = ’@Agent’ ON INSERT ONLY,<br />

’severity’ = ’@Severity’,<br />

’date’ = ’@LastOccurrence’ ON INSERT ONLY,<br />

’omnibus_last_modified_time’ = ’@InternalLast’ ON INSERT ONLY );<br />

Chapter 4. <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> mapping 17


18 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Chapter 5. Startup command file<br />

SET PROPERTY<br />

GET PROPERTY<br />

SHOW PROPS<br />

The startup command file contains a set of commands that the gateway per<strong>for</strong>ms<br />

au<strong>to</strong>matically each time it starts.<br />

After the gateway has started, you can use the nco_sql command <strong>to</strong> issue the<br />

commands manually. For details about nco_sql, see the <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong><br />

Administration Guide (SC23-6371).<br />

You can include the following commands in the startup command file:<br />

v “SET PROPERTY”<br />

v “GET PROPERTY”<br />

v “SHOW PROPS”<br />

v “GET CONFIG” on page 20<br />

v “TRANSFER” on page 20<br />

v “FAILOVER SYNCH” on page 20<br />

Use the SET PROPERTY command <strong>to</strong> set the value of a property in the properties<br />

file.<br />

Syntax<br />

SET PROPERTY ’string’ TO value ;<br />

Example<br />

SET PROPERTY ’Gate.Reader.Debug’ TO FALSE ;<br />

Use the GET PROPERTY command <strong>to</strong> return the value of a specified property<br />

from the gateway properties file.<br />

Syntax<br />

GET PROPERTY ’string’ ;<br />

Example<br />

GET PROPERTY ’Gate.Reader.Debug’ ;<br />

Use the SHOW PROPS command <strong>to</strong> display the current configuration of the<br />

gateway by listing all properties and their values.<br />

Syntax<br />

SHOW PROPS ;<br />

© Copyright <strong>IBM</strong> Corp. 1996, 2008 19


GET CONFIG<br />

TRANSFER<br />

Example<br />

SHOW PROPS ;<br />

go<br />

Use the GET CONFIG command <strong>to</strong> display the current configuration of the<br />

gateway by listing all properties and their values.<br />

GET CONFIG is identical <strong>to</strong> the SHOW PROPS command; it may be removed from<br />

later versions of the ObjectServer gateway.<br />

Syntax<br />

GET CONFIG ;<br />

Example<br />

GET CONFIG ;<br />

go<br />

Use the TRANSFER command <strong>to</strong> initiate a data transfer operation between tables<br />

in the two ObjectServers.<br />

You can use a filter condition <strong>to</strong> transfer a partial table. If the target table does not<br />

match the source table, a map can be specified as part of the transfer operation.<br />

This map must be defined in the map definition file of the gateway.<br />

Syntax<br />

FAILOVER SYNCH<br />

TRANSFER FROM sourcetable TO targettable<br />

[VIA FILTER filtertext] [WITH DELETE VIA delfiltertext]<br />

[USING TRANSFER_MAP mapname] ;<br />

Example<br />

In the following example, all records with the name nobody are deleted from the<br />

table resync.names and replaced with the corresponding records in the table<br />

master.names.<br />

TRANSFER FROM ’master.names’ TO ’resync.names’<br />

VIA FILTER ’Name != \’nobody\’’<br />

DELETE ;<br />

Use the FAILOVER SYNCH command <strong>to</strong> synchronize data between primary and<br />

backup ObjectServers. The command specifies which master tables are transferred<br />

during the data transfer operation.<br />

For in<strong>for</strong>mation about ObjectServer failover, see the <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong><br />

Administration Guide (SC23-6371).<br />

Syntax<br />

FAILOVER_SYNC [ ADD ’TABLENAME’ TO | REMOVE ’TABLENAME’<br />

FROM ] WRITERNAME ;<br />

20 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Example<br />

FAILOVER_SYNC ADD ’master.names’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’master.groups’TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’master.members’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’master.permissions’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’master.profiles’TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’<strong>to</strong>ols.actions’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’<strong>to</strong>ols.action_access’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’<strong>to</strong>ols.menus’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’<strong>to</strong>ols.menu_defs’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’<strong>to</strong>ols.menu_items’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’<strong>to</strong>ols.prompt_defs’TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’alerts.conversions’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’alerts.col_visuals’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’alerts.colors’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’alerts.objclass’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’alerts.objmenus’ TO ObjectServerA;<br />

FAILOVER_SYNC ADD ’alerts.objmenuitems’TO ObjectServerA;<br />

Chapter 5. Startup command file 21


22 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Chapter 6. Table definition replication file<br />

The table replication definition file defines the tables in the source ObjectServer<br />

that the gateway replicates in <strong>TDW</strong>.<br />

The table definition file is specified using the Gate.WRITER.TblReplicateDefFile<br />

property.<br />

Example<br />

REPLICATE ALL | (INSERTS, UPDATES, DELETES)<br />

FROM TABLE sourcetable<br />

USING MAP mapname<br />

[FILTER WITH filter_clause]<br />

[INTO targettable]<br />

[ORDER BY column_name [ASC|DESC], ... ]<br />

[WITH NORESYNC]<br />

[RESYNC DELETE FILTER delete_filter_clause]<br />

[SET UPDTOINS CHECK TO {ENABLED|DISABLED|FORCED}]<br />

[AFTER IDUC DO command] ;<br />

Where:<br />

v sourcetable is the table <strong>to</strong> be replicated in <strong>TDW</strong>.<br />

v mapname is the map definition that defines the table.<br />

v column_name is the column by which the rows returned <strong>to</strong> the gateway from the<br />

ObjectServer are ordered.<br />

v filter_clause defines the filter the gateway uses <strong>to</strong> select rows <strong>for</strong> replicating. By<br />

default, filtering is inclusive. That is, the filter sends only those events that<br />

match the filter definition. However, you can specify that the filter sends events<br />

that do not match the filter definition by preceding the equals sign (=) with an<br />

exclamation mark (!). For example, the following filter clause sends all events<br />

whose severity is not set <strong>to</strong> 5: FILTER with ’Severity !=5’.<br />

v propertyname is the property the gateway uses <strong>to</strong> filter the table data (only rows<br />

that satisfy the filter are replicated).<br />

v propertyvalue is argument <strong>to</strong> be used in the filter.<br />

v targettable is the name of the table in which <strong>to</strong> replicate the data.<br />

v delete_filter_clause defines the resynchronization delete filter that the gateway<br />

issues <strong>to</strong> <strong>TDW</strong>.<br />

The optional WITH NORESYNC option allows you <strong>to</strong> specify tables that should<br />

not be resynchronized.<br />

The optional ORDER BY option allows you <strong>to</strong> specify the order in which the rows<br />

are returned <strong>to</strong> the gateway from the ObjectServer. ASC specifies that the rows are<br />

sorted in ascending order; DESC specifies descending order. If you specify neither<br />

ASC nor DESC, the rows are sorted in ascending order.<br />

You can define multiple columns <strong>for</strong> sorting by specifying a comma-separated list;<br />

<strong>for</strong> example:<br />

ORDER BY ’Serial DESC, StateChange ASC’<br />

© Copyright <strong>IBM</strong> Corp. 1996, 2008 23


The optional RESYNC DELETE FILTER option is used when the fields in the target<br />

and source tables are not an exact match. This option allows you <strong>to</strong> define a<br />

resynchronization deletion filter that specifies which fields <strong>to</strong> remove be<strong>for</strong>e<br />

insertion in<strong>to</strong> the target table.<br />

The optional SET UPDTOINS CHECK TO option allows you <strong>to</strong> configure the<br />

update-<strong>to</strong>-insert functionality. ENABLED (the default setting) instructs the gateway<br />

<strong>to</strong> per<strong>for</strong>m normal update-<strong>to</strong>-insert conversions - when an update is received from<br />

the source ObjectServer <strong>for</strong> a given table, and the row that has been updated does<br />

not exist within <strong>TDW</strong>, the gateway converts the update <strong>to</strong> an insert, so that the<br />

row is repopulated within <strong>TDW</strong>. If the row does exist within <strong>TDW</strong>, the gateway<br />

updates the existing row with the update from the source ObjectServer; DISABLED<br />

instructs the gateway <strong>to</strong> always send an update <strong>to</strong> <strong>TDW</strong> <strong>for</strong> each update received<br />

from the source ObjectServer - any update sent <strong>to</strong> <strong>TDW</strong> <strong>for</strong> rows that do not exist<br />

are dropped as they will affect no rows within <strong>TDW</strong>; FORCED instructs the<br />

gateway <strong>to</strong> convert all updates from the source ObjectServer <strong>to</strong> an insert on <strong>TDW</strong> -<br />

if the row already exists within <strong>TDW</strong>, a de-duplication action is per<strong>for</strong>med by<br />

<strong>TDW</strong> - this effectively makes the gateway behave like a probe.<br />

The optional AFTER IDUC DO option allows you <strong>to</strong> specify a column and<br />

associated value that the gateway applies <strong>to</strong> all rows that have been inserted,<br />

updated, or deleted.<br />

Example table definition replication file<br />

The table replication definition file defines how the ObjectServer gateway replicates<br />

tables between the source and target ObjectServers. Use this example <strong>to</strong> familiarize<br />

yourself with how the file works.<br />

The following example shows a table replication definition file:<br />

REPLICATE INSERT, DELETE FROM TABLE ’alerts.status’<br />

USING MAP ’StatusMap’<br />

ORDER BY ’Serial ASC’<br />

FILTER WITH ’Severity=!5’<br />

SET UPDTOINS CHECK TO FORCED<br />

AFTER IDUC DO ’Location=\’PASSED BY GW\’’;<br />

REPLICATE ALL FROM TABLE ’alerts.journal’<br />

USING MAP ’JournalMap’;<br />

REPLICATE ALL FROM TABLE ’alerts.details’<br />

USING MAP ’DetailsMap’;<br />

##############################################################################<br />

# NOTE: If replication of the user related system tables is required, uncomment<br />

# the replication definitions below. The associated maps will also need <strong>to</strong> be<br />

# uncommented.<br />

##############################################################################<br />

# REPLICATE ALL FROM TABLE ’security.users’<br />

# USING MAP ’SecurityUsersMap’<br />

# INTO ’transfer.users’;<br />

#<br />

# REPLICATE ALL FROM TABLE ’security.groups’<br />

# USING MAP ’SecurityGroupsMap’<br />

# INTO ’transfer.groups’;<br />

#<br />

# REPLICATE ALL FROM TABLE ’security.roles’<br />

# USING MAP ’SecurityRolesMap’<br />

# INTO ’transfer.roles’;<br />

24 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


#<br />

# REPLICATE ALL FROM TABLE ’security.role_grants’<br />

# USING MAP ’SecurityRoleGrantsMap’<br />

# INTO ’transfer.role_grants’;<br />

#<br />

# REPLICATE ALL FROM TABLE ’security.group_members’<br />

# USING MAP ’SecurityGroupMembersMap’<br />

# INTO ’transfer.group_members’;<br />

Chapter 6. Table definition replication file 25


26 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Chapter 7. Running the gateway<br />

Running the gateway on UNIX<br />

This section describes how <strong>to</strong> run the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>.<br />

Per<strong>for</strong>m the following steps <strong>to</strong> run the Gatway <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> on UNIX.<br />

To run the gateway on UNIX, run the following command:<br />

$OMNIHOME/bin/nco_g_tdw<br />

or use the -config command line option as follows:<br />

$OMNIHOME/bin/nco_g_tdw -config /path/config_filename<br />

Where path is the location of the configuration file and config_filename is the<br />

name of the configuration file.<br />

Running the gateway on Windows<br />

Per<strong>for</strong>m the following steps <strong>to</strong> run the <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> on<br />

Windows.<br />

To run the gateway on Windows, run the following command:<br />

%\OMNIHOME%\bin\nco_g_tdw.exe<br />

or use the -config command line option as follows:<br />

%\OMNIHOME%\bin\nco_g_tdw.exe -config\path\config_filename<br />

Where path is the location of the configuration file and config_filename is the<br />

name of the configuration file.<br />

Running the gateway on Windows service<br />

To run the gateway as a Windows service, use the following steps:<br />

1. Run the following command <strong>to</strong> register the gateway as a service within the<br />

Service Control Manager:nco_g_tdw.exe -install<br />

2. If you are running the gateway on the same machine as the ObjectServer, use<br />

the following command <strong>to</strong> register its dependency upon the ObjectServer<br />

service: nco_g_tdw.exe -install -depend NCOObjectServer<br />

3. Select the following option from the Start menu: Control Panel →<br />

Administrative Tools → Services. The Services window is displayed.<br />

4. Highlight <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong> in the list of available services.<br />

5. Click on Start.<br />

Removing the gateway service<br />

To remove the gateway service, use the following steps:<br />

1. S<strong>to</strong>p the service using the Services window.<br />

2. Run the following command: nco_g_tdw.exe -remove.<br />

© Copyright <strong>IBM</strong> Corp. 1996, 2008 27


28 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Notices<br />

This in<strong>for</strong>mation was developed <strong>for</strong> products and services offered in the U.S.A.<br />

<strong>IBM</strong> may not offer the products, services, or features discussed in this document in<br />

other countries. Consult your local <strong>IBM</strong> representative <strong>for</strong> in<strong>for</strong>mation on the<br />

products and services currently available in your area. Any reference <strong>to</strong> an <strong>IBM</strong><br />

product, program, or service is not intended <strong>to</strong> state or imply that only that <strong>IBM</strong><br />

product, program, or service may be used. Any functionally equivalent product,<br />

program, or service that does not infringe any <strong>IBM</strong> intellectual property right may<br />

be used instead. However, it is the user’s responsibility <strong>to</strong> evaluate and verify the<br />

operation of any non-<strong>IBM</strong> product, program, or service.<br />

<strong>IBM</strong> may have patents or pending patent applications covering subject matter<br />

described in this document. The furnishing of this document does not grant you<br />

any license <strong>to</strong> these patents. You can send license inquiries, in writing, <strong>to</strong>:<br />

<strong>IBM</strong> Direc<strong>to</strong>r of Licensing<br />

<strong>IBM</strong> Corporation<br />

North Castle Drive<br />

Armonk, NY 10504-1785<br />

U.S.A.<br />

For license inquiries regarding double-byte (DBCS) in<strong>for</strong>mation, contact the <strong>IBM</strong><br />

Intellectual Property Department in your country or send inquiries, in writing, <strong>to</strong>:<br />

<strong>IBM</strong> World Trade Asia Corporation<br />

Licensing 2-31 Roppongi 3-chome, Mina<strong>to</strong>-ku<br />

Tokyo 106-0032, Japan<br />

The following paragraph does not apply <strong>to</strong> the United Kingdom or any other<br />

country where such provisions are inconsistent with local law:<br />

INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS<br />

PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER<br />

EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED<br />

WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS<br />

FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or<br />

implied warranties in certain transactions, there<strong>for</strong>e, this statement may not apply<br />

<strong>to</strong> you.<br />

This in<strong>for</strong>mation could include technical inaccuracies or typographical errors.<br />

Changes are periodically made <strong>to</strong> the in<strong>for</strong>mation herein; these changes will be<br />

incorporated in new editions of the publication. <strong>IBM</strong> may make improvements<br />

and/or changes in the product(s) and/or the program(s) described in this<br />

publication at any time without notice.<br />

Any references in this in<strong>for</strong>mation <strong>to</strong> non-<strong>IBM</strong> Web sites are provided <strong>for</strong><br />

convenience only and do not in any manner serve as an endorsement of those Web<br />

sites. The materials at those Web sites are not part of the materials <strong>for</strong> this <strong>IBM</strong><br />

product and use of those Web sites is at your own risk.<br />

<strong>IBM</strong> may use or distribute any of the in<strong>for</strong>mation you supply in any way it<br />

believes appropriate without incurring any obligation <strong>to</strong> you.<br />

© Copyright <strong>IBM</strong> Corp. 1996, 2008 29


Licensees of this program who wish <strong>to</strong> have in<strong>for</strong>mation about it <strong>for</strong> the purpose<br />

of enabling: (i) the exchange of in<strong>for</strong>mation between independently created<br />

programs and other programs (including this one) and (ii) the mutual use of the<br />

in<strong>for</strong>mation which has been exchanged, should contact:<br />

<strong>IBM</strong> Corporation<br />

Software Interoperability Coordina<strong>to</strong>r, Department 49XA<br />

3605 Highway 52 N<br />

Rochester, MN 55901<br />

U.S.A.<br />

Such in<strong>for</strong>mation may be available, subject <strong>to</strong> appropriate terms and conditions,<br />

including in some cases, payment of a fee.<br />

The licensed program described in this in<strong>for</strong>mation and all licensed material<br />

available <strong>for</strong> it are provided by <strong>IBM</strong> under terms of the <strong>IBM</strong> Cus<strong>to</strong>mer Agreement,<br />

<strong>IBM</strong> International Program License Agreement, or any equivalent agreement<br />

between us.<br />

Any per<strong>for</strong>mance data contained herein was determined in a controlled<br />

environment. There<strong>for</strong>e, the results obtained in other operating environments may<br />

vary significantly. Some measurements may have been made on development-level<br />

systems and there is no guarantee that these measurements will be the same on<br />

generally available systems. Furthermore, some measurements may have been<br />

estimated through extrapolation. Actual results may vary. Users of this document<br />

should verify the applicable data <strong>for</strong> their specific environment.<br />

In<strong>for</strong>mation concerning non-<strong>IBM</strong> products was obtained from the suppliers of<br />

those products, their published announcements or other publicly available sources.<br />

<strong>IBM</strong> has not tested those products and cannot confirm the accuracy of<br />

per<strong>for</strong>mance, compatibility or any other claims related <strong>to</strong> non-<strong>IBM</strong> products.<br />

Questions on the capabilities of non-<strong>IBM</strong> products should be addressed <strong>to</strong> the<br />

suppliers of those products.<br />

All statements regarding <strong>IBM</strong>’s future direction or intent are subject <strong>to</strong> change or<br />

withdrawal without notice, and represent goals and objectives only.<br />

All <strong>IBM</strong> prices shown are <strong>IBM</strong>’s suggested retail prices, are current and are subject<br />

<strong>to</strong> change without notice. Dealer prices may vary.<br />

This in<strong>for</strong>mation is <strong>for</strong> planning purposes only. The in<strong>for</strong>mation herein is subject <strong>to</strong><br />

change be<strong>for</strong>e the products described become available.<br />

This in<strong>for</strong>mation contains examples of data and reports used in daily business<br />

operations. To illustrate them as completely as possible, the examples include the<br />

names of individuals, companies, brands, and products. All of these names are<br />

fictitious and any similarity <strong>to</strong> the names and addresses used by an actual business<br />

enterprise is entirely coincidental.<br />

COPYRIGHT LICENSE:<br />

This in<strong>for</strong>mation contains sample application programs in source language, which<br />

illustrate programming techniques on various operating plat<strong>for</strong>ms. You may copy,<br />

modify, and distribute these sample programs in any <strong>for</strong>m without payment <strong>to</strong><br />

<strong>IBM</strong>, <strong>for</strong> the purposes of developing, using, marketing or distributing application<br />

programs con<strong>for</strong>ming <strong>to</strong> the application programming interface <strong>for</strong> the operating<br />

30 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


Trademarks<br />

plat<strong>for</strong>m <strong>for</strong> which the sample programs are written. These examples have not<br />

been thoroughly tested under all conditions. <strong>IBM</strong>, there<strong>for</strong>e, cannot guarantee or<br />

imply reliability, serviceability, or function of these programs.<br />

Each copy or any portion of these sample programs or any derivative work, must<br />

include a copyright notice as follows:<br />

© (your company name) (year). Portions of this code are derived from <strong>IBM</strong> Corp.<br />

Sample Programs. © Copyright <strong>IBM</strong> Corp. _enter the year or years_. All rights<br />

reserved.<br />

If you are viewing this in<strong>for</strong>mation softcopy, the pho<strong>to</strong>graphs and color<br />

illustrations may not appear.<br />

<strong>IBM</strong>, the <strong>IBM</strong> logo, ibm.com ® , AIX, <strong>Tivoli</strong>, and <strong>Netcool</strong> are trademarks of<br />

International Business Machines Corporation in the United States, other countries,<br />

or both.<br />

Adobe ® , Acrobat, Portable Document Format (PDF), PostScript ® , and all<br />

Adobe-based trademarks are either registered trademarks or trademarks of Adobe<br />

Systems Incorporated in the United States, other countries, or both.<br />

Intel ® , Intel Inside ®<br />

(logos), MMX, and Pentium ®<br />

are trademarks of Intel<br />

Corporation in the United States, other countries, or both.<br />

Microsoft ® , Windows, Windows NT ® , and the Windows logo are trademarks of<br />

Microsoft Corporation in the United States, other countries, or both.<br />

and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in<br />

the United States, other countries, or both.<br />

Java <br />

Linux is a trademark of Linus Torvalds in the United States, other countries, or<br />

both.<br />

UNIX is a registered trademark of The Open Group in the United States and other<br />

countries.<br />

Other company, product, or service names may be trademarks or service marks of<br />

others.<br />

Notices 31


32 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>Gateway</strong> <strong>for</strong> <strong>OMNIbus</strong> <strong>to</strong> <strong>TDW</strong>: Reference Guide


����<br />

Printed in USA<br />

SC23-9606-00

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!