SOI Alarm Enrichment for 2 variables

Document ID : KB000108974
Last Modified Date : 01/08/2018
Show Technical Document Details
Introduction:
Procedure to create & deploy an Event Enrichment Policy that takes Alert Message as an argument and extract 2 values from this Message and assign these 2 values to UserAttributes like UserAttribute9 & UserAttribute10
Question:
Dear Team, I need an assistance regarding the alarm enrichment issue which I am facing currently. Actually I am trying to pass 2 variable as arguments in a single policy so that I can set it to 2 custom user attributes. However it looks like for single variable it works fine. For the 2nd one it is not printing the value instead it is appended with attrribute1. Please refer this community link for reference. https://communities.ca.com/thread/241813206-soi-alarm-enrichment-for-2-variables
Environment:
Windows
SOI 4.0 & 4.2
Answer:
The output has to be a paired list, separated by comma, hence we need to use below syntax
     WScript.Echo "clientserver,",client,",errorcode,",error1

Note: The value of "client" will be passed to "clientserver" and "error1" variable value to "errorcode"

Here is the step by step instructions...

User-added image

User-added image

User-added image

User-added image

User-added image

Here is the VB Script code

User-added image

Note:
Update below line in "\SOI\jsw\conf\SAM-IntegrationServices.conf"

             wrapper.java.additional.10=-Dcachetimeout=60

Note: The sequence number “10” may be different, please check the last number and then increase by 1 
           Restart "CA SAM Integration Services" after above change

Now, the enrichment policy will extract required 2 values and assign them to UserAttribute9 & UserAttribute10

User-added image