Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Inbound SOAP Request UAC.xml (UNIX)

<pre> &lt;
<?xml version="1.0" encoding="UTF-8"?
&gt; &lt;sb
>
<sb:UAC xmlns:sb="http://com.stonebranch/UAC/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://com.stonebranch/UAC/ UAC.xsd"
&gt;
>
  
&lt;sb:SOAPConnection&gt;
<sb:SOAPConnection>
        
&lt;sb:URI&gt;
<sb:URI>/axis2/services/
UACInbound&lt;
UACInbound</sb:
URI&gt;
URI>
        
&lt;sb:Listeners&gt;
<sb:Listeners>
            
&lt;sb:SOAPListener&gt;
<sb:SOAPListener>
                
&lt;sb:Operation&gt;process&lt;
<sb:Operation>process</sb:
Operation&gt;
Operation>
                
&lt;sb:Actions&gt;
<sb:Actions>
                    
&lt;sb:SOAPFileWriter&gt;
<sb:SOAPFileWriter>
                        
&lt;sb:Directory&gt;
<sb:Directory>/export/home/control/indesca/soap_listener/
&lt;
</sb:
Directory&gt;
Directory>
                        
&lt;sb:FilenamePattern&gt;process
<sb:FilenamePattern>process_%Seq%.
xml&lt;
xml</sb:
FilenamePattern&gt;
FilenamePattern>
                        
&lt;sb:StartSequenceNumber&gt;1&lt;
<sb:StartSequenceNumber>1</sb:
StartSequenceNumber&gt;
StartSequenceNumber>
                        
&lt;sb:WriteEnvelope&gt;false&lt;
<sb:WriteEnvelope>false</sb:
WriteEnvelope&gt;
WriteEnvelope>
                    
&lt;
</sb:
SOAPFileWriter&gt;
SOAPFileWriter>
                
&lt;
</sb:
Actions&gt;
Actions>
            
&lt;
</sb:
SOAPListener&gt;
SOAPListener>
        
&lt;
</sb:
Listeners&gt;
Listeners>
    
&lt;
</sb:
SOAPConnection&gt; &lt;
SOAPConnection>
</sb:
UAC&gt; </pre>
UAC>
Panel
Html bobswift

Anchor
1042070
1042070
If required, additional SOAP connections can be defined to the UAC.xml.

...

Inbound SOAP Request UAC.xml (Windows)

<pre> &lt;
<?xml version="1.0" encoding="UTF-8"?
&gt; &lt;sb
>
<sb:UAC xmlns:sb="http://com.stonebranch/UAC/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://com.stonebranch/UAC/ UAC.xsd"
&gt;
>
  
&lt;sb:SOAPConnection&gt;
<sb:SOAPConnection>
        
&lt;sb:URI&gt;
<sb:URI>/axis2/services/
UACInbound&lt;
UACInbound</sb:
URI&gt;
URI>
        
&lt;sb:Listeners&gt;
<sb:Listeners>
            
&lt;sb:SOAPListener&gt;
<sb:SOAPListener>
                
&lt;sb:Operation&gt;process&lt;
<sb:Operation>process</sb:
Operation&gt;
Operation>
                
&lt;sb:Actions&gt;
<sb:Actions>
                    
&lt;sb:SOAPFileWriter&gt;
<sb:SOAPFileWriter>
                        
&lt;sb:Directory&gt;c
<sb:Directory>c:\tmp\
&lt;
</sb:
Directory&gt;
Directory>
                        
&lt;sb:FilenamePattern&gt;process
<sb:FilenamePattern>process_%Seq%.
xml&lt;
xml</sb:
FilenamePattern&gt;
FilenamePattern>
                        
&lt;sb:StartSequenceNumber&gt;1&lt;
<sb:StartSequenceNumber>1</sb:
StartSequenceNumber&gt;
StartSequenceNumber>
                        
&lt;sb:WriteEnvelope&gt;false&lt;
<sb:WriteEnvelope>false</sb:
WriteEnvelope&gt;
WriteEnvelope>
                    
&lt;
</sb:
SOAPFileWriter&gt;
SOAPFileWriter>
                
&lt;
</sb:
Actions&gt;
Actions>
            
&lt;
</sb:
SOAPListener&gt;
SOAPListener>
        
&lt;
</sb:
Listeners&gt;
Listeners>
    
&lt;
</sb:
SOAPConnection&gt; &lt;
SOAPConnection>
</sb:
UAC&gt; </pre>
UAC>
Panel
Html bobswift


Anchor
1042070
1042070
If required, additional SOAP connections can be defined to the UAC.xml.

...

The following shows an example of the inbound message payload written to the process_%Seq%.xml file.

<pre> &lt;?xml
<?xml version='1.0' encoding='utf\-8'?
&gt;&lt;soapenv
><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
&gt; &lt;soapenv:Body&gt; &lt;NS1
>
<soapenv:Body>
<NS1:process xmlns:NS1="http://inbound.uac.stonebranch.com"
&gt; &lt;NS1:identitySourceApplicationId&gt;RBS&lt;/NS1:identitySourceApplicationId&gt;&lt;NS1
>
<NS1:identitySourceApplicationId>RBS</NS1:identitySourceApplicationId><NS1:identitySourceUserId /
&gt; &lt;NS1
>
<NS1:identitySourcePassword /
&gt;&lt;NS1
><NS1:identitySourceToken /
&gt; &lt;NS1:activityRequestId&gt;AUT4210021109265970293000&lt;
>
<NS1:activityRequestId>AUT4210021109265970293000</NS1:
activityRequestId&gt; &lt;NS1:activityStatus&gt;PROCESS
activityRequestId>
<NS1:activityStatus>PROCESS CLOSE ACCOUNTING YYYY 
MM&lt;
MM</NS1:
activityStatus&gt; &lt;NS1:activityState&gt;ACCOUNTING
activityStatus>
<NS1:activityState>ACCOUNTING MONTH CLOSING 
INPROGRESS&lt;
INPROGRESS</NS1:
activityState&gt; &lt;NS1:activityStateReason&gt;INFO&lt;
activityState>
<NS1:activityStateReason>INFO</NS1:
activityStateReason&gt; &lt;NS1:activityAction&gt;ODPT0001&lt;
activityStateReason>
<NS1:activityAction>ODPT0001</NS1:
activityAction&gt; &lt;NS1:activityStartDate&gt;2010
activityAction>
<NS1:activityStartDate>2010-02-
24&lt;
24</NS1:
activityStartDate&gt; &lt;NS1:activityStartTime&gt;08
activityStartDate>
<NS1:activityStartTime>08:35:42.
397382&lt;
397382</NS1:
activityStartTime&gt; &lt;
activityStartTime>
</NS1:
process&gt; &lt;
process>
</soapenv:
Body&gt; &lt;
Body>
</soapenv:
Envelope&gt; </pre>
Envelope>
Panel
Html bobswift


Anchor
1042088
1042088
The following fields in the process_%Seq%.xml file are used to create the z/OS console message:

...

The following figure illustrates the event definition that Universal Event Monitor uses to detect the file created by Universal Event Monitor for SOA.

<pre>
BEGIN_EVENT
  EVENT_ID          "ABC SOA EVENT"                                                
  EVENT_TYPE        FILE                                                           
  COMP_NAME         UEMS                                                           
  STATE             ENABLE                                                         
  TRACKING_INT      10                                                             
  TRIGGERED_ID      "ABC SOA HANDLER"                                                                                              
  FILESPEC          "/export/home/ control/indesca/soap_listener/*.*"       
  MIN_FILE_SIZE     0                                                              
  RENAME_FILE       YES                                                            
  RENAME_FILESPEC   "/export/home/ control/indesca/soap_listener/$(origname).$(origext)"                                                
END_EVENT
</pre>
Panel
Html bobswift


Anchor
1136015
1136015
Event Definition Options

Anchor
1136016
1136016
The Event Definition options used in this example are:

...

Option

...

Description

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 108pt;

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 324pt;

...

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

EVENT_ID

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Identifier that uniquely identifies an event definition record.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

EVENT_TYPE

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Type of system event represented by the event definition record.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

COMP_NAME

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Event-driven UEM Server responsible for monitoring the event.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

STATE

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Event definitions that should be processed or ignored by UEM.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

TRACKING_INT

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Event definitions that should be processed or ignored by UEM.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

TRIGGERED_ID

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

ID of an event handler record that UEM will execute when an event occurrence is triggered.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

FILESPEC

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Name of a file to monitor.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

MIN_FILE_SIZE

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Size a file must be in order to be considered complete by UEM.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

RENAME_FILE

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Specifies whether or not UEM should rename a monitored file when an event occurrence is triggered.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

RENAME_FILESPEC

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Specifies how a file should be renamed when an event occurrence is triggered.

Loading the Event Definition

...

Panel

Html bobswift

<pre>
/opt/universal/bin/uemload -add -deffile event_definition.txt
</pre>

...

cellspacing0
styletext-align: left; width: 100%;
classTable_with_Header

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 108pt;

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 324pt;

...

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

-add

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Writes one or more new event definition and/or event handler records to the appropriate database.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

-deffile

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Name of a file that contains event definition and/or event handler parameters.

Changing the Event Definition

Alternatively, changes to the event definition can be effected using the following command:

Panel

Html bobswift

<pre>
/opt/universal/bin/uemload -update -deffile event_definition.txt
</pre>

...

cellspacing0
styletext-align: left; width: 100%;
classTable_with_Header

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 108pt;

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 324pt;

...

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

-update

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Changes one or more existing event definition and/or event handler records.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

-deffile

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Name of a file that contains event definition and/or event handler parameters.

Inbound SOAP Request - Universal Event Monitor Handler Definition

...

Panel

Html bobswift

<pre>
BEGIN_HANDLER
  HANDLER_ID      "ABC SOA HANDLER"                                                     
  ACTION_TYPE     CMD                                                            
  MAXRC           0                                                              
  USERID          "control"                                                          
  PWD             "UACL"                                                   
  BEGIN_SCRIPT                                                           
    STMT "#!/usr/bin/ksh"                                                 
   STMT "exec > /export/home/control/indesca/abc.log 2>&1"                                      
   STMT "set -xv"                                                                                                              
    STMT "/opt/universal/bin/ucmd -script /export/home/control/indesca/abc.rexx \"   
    STMT "< $UEMRENAMEDFILE \"
    STMT "-HOST mvstcp5 -USERID CTLMNT -PWD UACL "
    STMT ">> /export/home/control/indesca/abc.log \"
    STMT "2>&1"
    STMT "if [ $? -gt 0 ]"
    STMT " then"
    STMT "  mv $UEMRENAMEDFILE $UEMORIGFILE"
    STMT " else"
    STMT "  rm $UEMRENAMEDFILE"
    STMT "fi"
    STMT "exit $rc"                                                            
  END_SCRIPT 
END_HANDLER   
</pre>

...

  • uem_handler control,allow,noauth

...

  1. Connect to the z/OS mainframe.
  2. Execute a REXX script to parse the required information from the process_%Seq%.xml file.
  3. Execute the Universal Write-to-Operator utility to write the required console message.

...

Outbound SOAP Request - abc.rexx

...

Panel

Html bobswift

<pre>
/* REXX */                            
TRACE R                       
  ABC.XML = LINEIN()               

parse value ABC.XML with "&lt;NS1:activityAction&gt;" ABC.ACTN "&lt;/NS1:activityAction&gt;"                   
  
parse value ABC.XML with "&lt;NS1:identitySourceApplicationId&gt;" ABC.APID "&lt;/NS1:identitySourceApplicationId&gt;"                        

parse value ABC.XML with "&lt;NS1:activityRequestId&gt;" ABC.RQID "&lt;/NS1:activityRequestId&gt;"            

ABC.UWTO = "EIEOSRAT "ABC.ACTN ABC.APID ABC.RQID       

'/usr/lpp/universal/bin/uwto -msg "'ABC.UWTO'"'   
ABC.RC = RC

EXIT ABC.RC
</pre>

...

  • ucmd_access ALL,*,CTLMNT,allow,noauth

...

Outbound SOAP Request - Event and Handler to purge abc.log

...

Panel

Html bobswift

<pre>
BEGIN_EVENT
  EVENT_ID        "ABC LOG FILE CLEANUP"                                                
  EVENT_TYPE      FILE                                                           
  COMP_NAME       UEMS                                                           
  STATE           ENABLE                                                         
  TRACKING_INT    10       
  TRIGGERED_ID    "ABC LOG FILE CLEANUP"                                                      
  FILESPEC        "/export/home/control/indesca/abc.log"       
  MIN_FILE_SIZE   10M                                                              
END_EVENT                    

BEGIN_HANDLER
  HANDLER_ID      "ABC LOG FILE CLEANUP"                                                     
  HANDLER_TYPE     CMD                                                            
  MAXRC           0                                                              
  USERID          "control"                                                          
  PWD             "UACL"                                                   
  CMD             "rm /export/home/control/indesca/abc.log"
END_HANDLER  
</pre>

...

cellspacing0
styletext-align: left; width: 100%;
classTable_with_Header

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 108pt;

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 324pt;

...

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

EVENT_ID

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Identifier that uniquely identifies an event definition record.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

EVENT_TYPE

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Type of system event represented by the event definition record.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

COMP_NAME

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Event-driven UEM Server responsible for monitoring the event.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

STATE

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Event definitions that should be processed or ignored by UEM.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

TRACKING_INT

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Event definitions that should be processed or ignored by UEM.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

TRIGGERED_ID

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

ID of an event handler record that UEM will execute when an event occurrence is triggered.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

FILESPEC

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Name of a file to monitor.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

MIN_FILE_SIZE

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Size a file must be in order to be considered complete by UEM.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

HANDLER_ID

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Identifier that uniquely identifies an event handler record.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

HANDLER_TYPE

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Type of process executed for the event handler.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

MAXRC

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Highest value with which a handler can exit to still be considered as having executed successfully.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

USERID

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

ID of a user account in whose security context the handler process will be executed.

Table Row (tr)
Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

PWD

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

Password for the user account specified by userid.

...

Table Cell (td)
styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

CMD

...

EVENT_ID

Identifier that uniquely identifies an event definition record.

EVENT_TYPE

Type of system event represented by the event definition record.

COMP_NAME

Event-driven UEM Server responsible for monitoring the event.

STATE

Event definitions that should be processed or ignored by UEM.

TRACKING_INT

Event definitions that should be processed or ignored by UEM.

TRIGGERED_ID

ID of an event handler record that UEM will execute when an event occurrence is triggered.

FILESPEC

Name of a file to monitor.

MIN_FILE_SIZE

Size a file must be in order to be considered complete by UEM.

RENAME_FILE

Specifies whether or not UEM should rename a monitored file when an event occurrence is triggered.

RENAME_FILESPEC

Specifies how a file should be renamed when an event occurrence is triggered.

Loading the Event Definition

Anchor
1042115
1042115
The event definition is loaded to Universal Event Monitor using the following command issued on the Linux server running Universal Command Agent for SOA.

Panel
/opt/universal/bin/uemload -add -deffile event_definition.txt


Anchor
1136015
1136015
Command Line Options

Anchor
1136016
1136016
The Event Definition options used in this example are:

Option

Description

-add

Writes one or more new event definition and/or event handler records to the appropriate database.

-deffile

Name of a file that contains event definition and/or event handler parameters.

Changing the Event Definition

Alternatively, changes to the event definition can be effected using the following command:

Panel
/opt/universal/bin/uemload -update -deffile event_definition.txt


Anchor
1136015
1136015
Command Line Options

Anchor
1136016
1136016
The Event Definition options used in this example are:

Option

Description

-update

Changes one or more existing event definition and/or event handler records.

-deffile

Name of a file that contains event definition and/or event handler parameters.

Inbound SOAP Request - Universal Event Monitor Handler Definition

Anchor
1042120
1042120
The event definition 'moves' each Process_%Seq$.xml file to a staging directory and invokes a SOA HANDLER.

Anchor
1042121
1042121
The following Universal Event Monitor handler definition processes each Process_%Seq%.xml file.

Panel
BEGIN_HANDLER
  HANDLER_ID      "ABC SOA HANDLER"                                                     
  ACTION_TYPE     CMD                                                            
  MAXRC           0                                                              
  USERID          "control"                                                          
  PWD             "UACL"                                                   
  BEGIN_SCRIPT                                                           
    STMT "#!/usr/bin/ksh"                                                 
   STMT "exec > /export/home/control/indesca/abc.log 2>&1"                                      
   STMT "set -xv"                                                                                                              
    STMT "/opt/universal/bin/ucmd -script /export/home/control/indesca/abc.rexx \"   
    STMT "< $UEMRENAMEDFILE \"
    STMT "-HOST mvstcp5 -USERID CTLMNT -PWD UACL "
    STMT ">> /export/home/control/indesca/abc.log \"
    STMT "2>&1"
    STMT "if [ $? -gt 0 ]"
    STMT " then"
    STMT "  mv $UEMRENAMEDFILE $UEMORIGFILE"
    STMT " else"
    STMT "  rm $UEMRENAMEDFILE"
    STMT "fi"
    STMT "exit $rc"                                                            
  END_SCRIPT 
END_HANDLER   


Anchor
1042151
1042151
The Event Handler executes under the authority of the USERID control. To allow this userid to authenticate without a password, the following UACL definitions were made to /etc/universal/uacl.conf:

  • uem_handler control,allow,noauth

Anchor
1042153
1042153
Changes to the configuration files require the Universal Broker to be refreshed (see Configuration Refresh).

Anchor
1042157
1042157
The Event Handler invokes Universal Command to:

  1. Connect to the z/OS mainframe.
  2. Execute a REXX script to parse the required information from the process_%Seq%.xml file.
  3. Execute the Universal Write-to-Operator utility to write the required console message.

Anchor
1042161
1042161
The Event Handler appends logging information to the following file: /export/home/control/indesca/abc.log.

Anchor
1042163
1042163
If the Event Handler does not complete successfully, the process_%Seq%.xml file is moved back its original location so that processing can be retried. Otherwise, this file is deleted.

Outbound SOAP Request - abc.rexx

Anchor
1042164
1042164
The REXX script executed by the Event Handler is stored on the Linux server running Universal Command Agent for SOA.

Panel
/* REXX */                            
TRACE R                       
  ABC.XML = LINEIN()               

parse value ABC.XML with "<NS1:activityAction>" ABC.ACTN "</NS1:activityAction>"                   
  
parse value ABC.XML with "<NS1:identitySourceApplicationId>" ABC.APID "</NS1:identitySourceApplicationId>"                        

parse value ABC.XML with "<NS1:activityRequestId>" ABC.RQID "</NS1:activityRequestId>"            

ABC.UWTO = "EIEOSRAT "ABC.ACTN ABC.APID ABC.RQID       

'/usr/lpp/universal/bin/uwto -msg "'ABC.UWTO'"'   
ABC.RC = RC

EXIT ABC.RC


Anchor
1042186
1042186
The REXX script is executed under the z/OS USS environment under the authority of the USERID CTLMNT. To allow this userid to authenticate without a password, the following UACL definitions were made to TEST.SYS5.UNV.UNVCONF(ACLCFG00):

  • ucmd_access ALL,*,CTLMNT,allow,noauth

Anchor
1042188
1042188
Changes to the configuration files require the Universal Broker to be refreshed (see Configuration Refresh).

Anchor
1042192
1042192
The REXX script executes the Universal Write-to-Operator utility in order to write the required message to the z/OS console.

Anchor
1042193
1042193
The abc.log file is appended to each time a process_%Seq%.xml is processed. This file is useful as an audit trail and for problem diagnosis.

Outbound SOAP Request - Event and Handler to purge abc.log

Anchor
1042194
1042194
In order to ensure that this file does not grow to an unreasonable size, additional Universal Event Monitor Event and Handler have been implemented to purge this file when it reaches 10mb in size.

Panel
BEGIN_EVENT
  EVENT_ID        "ABC LOG FILE CLEANUP"                                                
  EVENT_TYPE      FILE                                                           
  COMP_NAME       UEMS                                                           
  STATE           ENABLE                                                         
  TRACKING_INT    10       
  TRIGGERED_ID    "ABC LOG FILE CLEANUP"                                                      
  FILESPEC        "/export/home/control/indesca/abc.log"       
  MIN_FILE_SIZE   10M                                                              
END_EVENT                    

BEGIN_HANDLER
  HANDLER_ID      "ABC LOG FILE CLEANUP"                                                     
  HANDLER_TYPE     CMD                                                            
  MAXRC           0                                                              
  USERID          "control"                                                          
  PWD             "UACL"                                                   
  CMD             "rm /export/home/control/indesca/abc.log"
END_HANDLER  


Anchor
1136015
1136015
Event Options

Anchor
1136016
1136016
The Event options used in this example are:

Option

Description

EVENT_ID

Identifier that uniquely identifies an event definition record.

EVENT_TYPE

Type of system event represented by the event definition record.

COMP_NAME

Event-driven UEM Server responsible for monitoring the event.

STATE

Event definitions that should be processed or ignored by UEM.

TRACKING_INT

Event definitions that should be processed or ignored by UEM.

TRIGGERED_ID

ID of an event handler record that UEM will execute when an event occurrence is triggered.

FILESPEC

Name of a file to monitor.

MIN_FILE_SIZE

Size a file must be in order to be considered complete by UEM.

HANDLER_ID

Identifier that uniquely identifies an event handler record.

HANDLER_TYPE

Type of process executed for the event handler.

MAXRC

Highest value with which a handler can exit to still be considered as having executed successfully.

USERID

ID of a user account in whose security context the handler process will be executed.

PWD

Password for the user account specified by userid.

CMD

Command to execute on behalf of the event handler.

Anchor
1042218
1042218
Components

...