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.

You must collect the following information prior to performing this task:
  • 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.

Procedure

  1. Copy a Gateway for Message Bus mapping file that is compliant with the current version of the Netcool/OMNIbus Insight Pack.
    For example, for Netcool/OMNIbus Insight Pack 1.3.0.2 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 xmlCustom1302.map:
    cp  $OMNIHOME/gates/xml/scala/xml1302.map  $OMNIHOME/gates/xml/scala/xmlCustom1302.map
  2. Add a command after the last entry in the CREATE MAPPING StatusMap section 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',
      );
  3. 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 StatusMap section of the Gateway for Message Bus mapping file, before the terminating parenthesis.
           'ServerSerial'     =    '@ServerSerial',
           'TicketNumber'     =    '@TicketNumber'
      );
  4. Save the Gateway for Message Bus mapping file, xmlCustom1302.map.
  5. Locate the Gateway for Message Bus properties file.
    By default this file is called G_SCALA.properties and it is located in the following directory:
    $OMNIHOME/gates/xml/scala/G_SCALA.props
    Where $OMNIHOME is /opt/IBM/tivoli/netcool/omnibus/.
  6. Edit the Gateway for Message Bus properties file G_SCALA.properties using a text editor of your choice; for example, vi.
    vi G_SCALA.properties
  7. Change the Gate.MapFile parameter to refer to the new mapping file.
    For example:
    Gate.MapFile        :'$OMNIHOME/gates/xml/scala/xmlClone1302.map'
  8. Save and close the Gateway for Message Bus properties file G_SCALA.properties.
  9. Restart the Gateway for Message Bus.