Merging the rules – HP Insight Management for Tivoli User Manual

Page 12

Advertising
background image

Installation notes 12


Merging the rules

To merge the new rules files into the IBM Tivoli Netcool/OMNIbus Netcool Knowledge Library:

NOTE: The following examples assume that $NCHOME or $OMNIHOME are set to /opt/netcool

and that $NC_RULES_HOME is set to the Netcool home rules directory (by default,

/opt/netcool/etc/rules). If a different path is used, replace all instances of /opt/netcool

below with the correct path.

1.

Copy the new files to the $NC_RULES_HOME directory.

2.

Include the lookup table (for example, compaq.m2r.snmptrap.lookup). Add the following

line at the beginning of mttrapd.rules file:
include “$NC_RULES_HOME/compaq.m2r.snmptrap.lookup”

3.

Embed the new rules files (for example, compaq.m2r.include.rules) into the

mttrapd.rules file. Locate the generic trap section and add the following line in

mttrapd.rules file. Also comment out the generic Summary line:
if (match($generic-trap, “6”))

{

include “$NC_RULES_HOME/compaq.m2r.include.rules”
#@Summary =

“Enterprise:”+$enterprise+”GenericTrap:”+$generictrap

}

4.

Use the following command to force the Mttrapd probe to re-read the rules file:
kill -HUP pid
where pid is the PID of the Mttrapd probe.

5.

Enter the following command to perform a probe syntax check:

NOTE: This task requires the nco_p_syntax probe, which can be obtained from your IBM

representative.
nco_p_syntax –rulesfile mttrapd.rules

Advertising