01.01.2013 Views

IBM Tivoli Netcool/OMNIbus SNMP Writer Gateway: Reference Guide

IBM Tivoli Netcool/OMNIbus SNMP Writer Gateway: Reference Guide

IBM Tivoli Netcool/OMNIbus SNMP Writer Gateway: Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Syntax<br />

You can configure the mapping functions of the gateway by using the mapper<br />

attributes.<br />

Mappings for use with the <strong>SNMP</strong> <strong>Writer</strong> <strong>Gateway</strong> must use the following syntax:<br />

CREATE MAPPING mappingname<br />

(<br />

varbindint = ’@fieldname’<br />

[,varbindint = ’@fieldname’ [ ON INSERT ONLY ] ]...<br />

);<br />

where:<br />

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

v varbindint is the integer value for the varbind field that will be written to in the<br />

<strong>SNMP</strong> trap.<br />

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

Example mapping<br />

The following default mapping is supplied in the snmp.map file:<br />

CREATE MAPPING StatusMap<br />

(<br />

’0’ = ’@Summary’,<br />

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

’2’ = ’@Location’,<br />

’3’ = ’@Node’,<br />

’4’ = ’@AlertGroup’,<br />

’Node’ = ’@Node’<br />

);<br />

Defining a lookup table<br />

You can define a lookup table within the map file and use it to transform values<br />

found in particular fields to a different set of values before constructing <strong>SNMP</strong><br />

traps.<br />

The following is an example lookup table definition:<br />

CREATE LOOKUP ExampleTable (<br />

{ ’source1’, ’target1’}<br />

{ ’source2’, ’target2’}<br />

etc )<br />

This example is used in the map as follows:<br />

’3’ = Lookup(’@myfield’, ’ExampleTable’)<br />

Note: Changes or additions to the lookup table will only take effect after the<br />

gateway is stopped and restarted.<br />

Startup command file<br />

The startup command file contains a set of commands that the gateway performs<br />

automatically each time it starts. These commands allow the gateway to transfer<br />

any subsidiary table data to a set of target tables.<br />

The default startup command file is $OMNIHOME/gates/snmp/snmp.startup.cmd.<br />

<strong>IBM</strong> <strong>Tivoli</strong> <strong>Netcool</strong>/<strong>OMNIbus</strong> <strong>SNMP</strong> <strong>Writer</strong> <strong>Gateway</strong> 17

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

Saved successfully!

Ooh no, something went wrong!