Monday, March 3, 2008

Simple Postemsg-like solution for ITM 6.x

<p>One
of the most convenient features of classic Tivoli event adapter is the
postemsg command. Using this you can send custom events to TEC from
your scripts/CLI. In ITM 6.1, there is no such equivalent command
available though one can design such a solution in just three steps.
This article discuss a way to setup postemsg like solution in ITM 6.x<br></p><p></p><h4>Overview</h4><br>The
idea is to use gbscmd sendmessage command to write a custom message to
ITM Universal Message Console and develop a situation to forward any
messages written to Universal Message Console. <br><h4>Step 1: Create a situation</h4><br>Now
develop a simple situation to forward Universal Message Log entries
with the following formula. Hint. Create a situation under "Tivoli
Enterprise Monitoring Server". <br><br><b><code>(Originnode == <htemsname> AND Category == GBSMSG)</htemsname></code></b><br><br>It
is important to include "Originnode" in your condition. Otherwise, the
situation will not fire. Distribute the situation to *HUB. Associate
and start the situation.<br><h4>Step 2: Write to Universal Message Console using Gbscmd</h4><br>You can send a message to Universal Message Console using the following command.<br><br><b><code>gbscmd sendmessage --auth <auth_file> --message "some test message" --category "GBSMSG" --severity 2</auth_file></code></b><br><br><h4>Step 3: Verify the results</h4><br>Ensure
that the message appears in Situation Event Console and if you have
Netcool/TEC Integration enabled, the message should also appear in the
respective consoles. <p></p>

Posted by Venkat Saranathan

No comments: