Installing the exit DLL

aep-0001a.jpg

Create a new folder in the TNG installation directory.

aep-0001b.jpg

aep-0001c.jpg

Copy the cauevt_exit_file.dll to this directory.

aep-0001d.jpg

aep-0001e.jpg

The exit dll uses the windows registry for its configuration. Edit the provided registry file.

aep-0001f.jpg

Change the path of the ASCII-File generated by the DLL to the newly created directory.

aep-0001g.jpg

Load the settings into the windows registry.

aep-0001h.jpg

aep-0001i.jpg

Customize the Installation-Script for adding the DLL to Unicenter's event management.

aep-0001j.jpg

Check the INSTALL_DIR value.

aep-0001k.jpg

Now run the installation program.

aep-0012.jpg

Stop Unicenter..

aep-0013.jpg

Start Unicenter.

aep-0014.jpg

Open the TNG Console. You should see a similar message as below about CAUEVT_EXIT_DLL .  It indicates that the DLL is in use by Unicenter.

 

Adding the RemoveStorm daemon program

aep-0020.jpg

The CAUEVT_EXIT_FILE.DLL generates an ASCII-File which is used by one or more daemon programs. This section describes how to configure RemoveStormExit.Exe to attach to the ASCII-File.

 

aep-0021.jpg

Copy the RemoveStorm directory to the root directory of AEP.

aep-0022.jpg

aep-0023.jpg

Wtopipe is a tool to write efficiently messages into the TNG console.

Copy the program to the  root directory of AEP.

aep-0024.jpg

aep-0026.jpg

When Unicenter starts up the exit-DLL is loaded. At this time the Exit-Programs have to start, too. This is done with a message/action and the script ExitPrgsStart.cmd .  Copy the program to the root directory of AEP.

aep-0027.jpg

aep-0030b.jpg

Change the path in the startup-script to the current path to RemoveStormExit.

 

aep-0028.jpg

Configure the message actions for AEP.

aep-0029.jpg

Change the path  to ExitPrgsStart.cmd accordingly. 

aep-0030.jpg

Load the definitions.

aep-0031.jpg

Reload the decision base with opreload.

aep-0032.jpg

Cauevt_Exit_File understands some internal commands. There is a command to empty the ASCII-File Cauevt_Exit_File.txt . It is the message "Cauevt_Exit_File start purging file".

The exit programs are started on receipt of an internal message of cauevt_exit_file:  "The file ... was opened."

aep-0034.jpg

You should see the startup message of RemoveStormExit.exe.

aep-0035.jpg

You should find the program name as a process in windows.

Using RemoveStorm

aep-0036.jpg

Load the sample message/actions provided with this kit.

aep-0036b.jpg

Reload the decision base.

 

aep-0038.jpg

Send the first storm messages to the console. The message "I knew not whence they came, from sun or thunder-storm." is sent 3 times to the console. The following message/action matches:

The action is to DISCARD (to remove the message from the console of Unicenter) the message from Unicenter.   

The action contains to attribute values for RemoveStorm: source="RemoveStorm" defines that RemoveStorm should process this message. category="Verse 1" defines that all messages should be bound to the Key "Verse".  The number "1" defines that the time intervals should be 1 minute.

define msgrec
msgid="I knew not whence they came, from sun or thunder-storm."
type="MSG"
msgnode="*"
desc="Example1: Count repetitive messages from Verse_node"
cont='N'
msgact='Y'
wcsingle='?'
wcmany='*'
case="y"
regexp="n"
define msgact
name=(*,10)
action="DISCARD"
attrib="DEFAULT"
color="DEFAULT"
condop=" "
evaluate='Y'
quiet='N'
status="ACTIVE"
source="RemoveStorm"
category="Verse 1"

sim='N'

aep-0040.jpg

In the console you should not see the messages. Instead you should see the messages from RemoveStorm.

aep-0041.jpg

aep-0042.jpg

Finally RemoveStormExit itself unterstands a message to stop. Define a message/action that matches "RemoveStormExit stop now" and the daemon process will exit.

 


This index was generated by GenHTML.