Modifying the Gateway for Message Bus mapping
You must modify the Gateway for Message Bus mapping to include the new custom field or fields.
Before you begin
The mapping that you configure in this task must match the order of fields configured in your custom data source type, as specified in Creating a custom data source type.
- Location of a Gateway for Message Bus mapping file that is compliant with the current version of the Netcool®/OMNIbus Insight® Pack.
- Name and location of the Gateway for Message Bus properties file.
Copy a Gateway for Message Bus mapping
file that is compliant with the current version of the Netcool/OMNIbus
For example, for Netcool/OMNIbus Insight Pack 220.127.116.11 and later, you can copy the file $OMNIHOME/gates/xml/scala/xml1302.map. In the following example, the file is copied to a file called
cp $OMNIHOME/gates/xml/scala/xml1302.map $OMNIHOME/gates/xml/scala/xmlCustom1302.map
Add a command after the last entry in the
CREATE MAPPING StatusMapsection of the file.For example, if the last entry is a line specifying the ServerSerial field, then add a comma at the end of that line, like this:
'ServerSerial' = '@ServerSerial', );
For the purposes of this task, we assume that you are adding a new custom field that stores a
trouble ticket number, and this field is called
TicketNumber. Add this custom field after the last entry in the
CREATE MAPPING StatusMapsection of the Gateway for Message Bus mapping file, before the terminating parenthesis.
'ServerSerial' = '@ServerSerial', 'TicketNumber' = '@TicketNumber' );
Save the Gateway for Message Bus mapping
Locate the Gateway for Message Bus
By default this file is called
G_SCALA.propertiesand it is located in the following directory:
Edit the Gateway for Message Bus
G_SCALA.propertiesusing a text editor of your choice; for example, vi.
Gate.MapFileparameter to refer to the new mapping file.For example:
Save and close the Gateway for Message Bus
- Restart the Gateway for Message Bus.