Configuring additional fields to create incidents with custom information
By default, some general fields are used for creating incidents based on events in TrueSight Infrastructure Management. With version 11.3.02 of TrueSight Infrastructure Management, in addition to general fields, you can extend your system capabilities by configuring additional custom fields to be included in incidents. These custom fields can help you define additional information in the incidents that can be useful in resolving issues more quickly and efficiently.
Perform the following tasks to configure custom fields:
- Step 1: Perform the prerequisite tasks
- Step 2: Add the custom form fields and map them with appropriate web service fields
- Step 3: Verify that the new fields configuration is successful
- Step 4: Configure the custom field details on TrueSight Infrastructure Management
- Step 5: Verify if the custom fields are successfully added on TrueSight Infrastructure Management
Step 1: Perform the prerequisite tasks
Ensure that the following requirements are met:
- Ensure that TrueSight Infrastructure Management is upgraded to version 11.3.02 or later and integrated with Remedy ITSM.
- Ensure that the SDIG service is enabled on the Infrastructure Management server.
Step 2: Add the custom form fields and map them with appropriate web service fields
- Go to the Remedy AR System server and log on to Remedy Developer Studio.
- In the AR System Navigator (on the left), expand serverName> All Objects.
- Double-click Forms.
- Expand the Filtering Options panel on the right and search for the HPD:ServiceInterface form.
- Double-click on the resulting HPD:ServiceInterface form name to open it.
Create new fields with appropriate names. These field names will be displayed in the incidents later.
- Right-click on the form, select Create a New Field > In Current View, and select an appropriate element.
In the Properties section on the right, provide required details such as an appropriate name for the element selected.
- Right-click on the form and select Save.
If you see the following message, click OK.
You have specified an id for following fields which is outside the BMC reserved range. Do you wish to continue?
For more information, see Creating and managing fields.
- In the AR System Navigator (on the left), expand serverName> All Objects.
- Double-click Web Services.
- Expand the Filtering Options panel on the right, and search for the HPD_IncidentServiceInterface web service.
- Double-click on the resulting HPD_IncidentServiceInterface web service to open it.
- Expand WSDL Ports > Port > WSDL Operations > Create Operation Process_Event.
Define element fields and map them with the form fields created in step 6.
- Under the Input Mapping table, right-click the ROOT XML data type, and select New > Element > Field.
- At the end of the table, under the XML Data Type column, locate and click the New Field Element entry, and add an appropriate name to identify the web service field.
- In the row corresponding to the new field, under the Form/Field column, click the ellipsis button (...) to open the Field Selector dialog box.
Ensure that the HPD:ServiceInterface form is selected. Select the form field (created in the earlier step) to map it with the web service element field.
- Save the changes.
For more information, see Forms and field mappings for web services.
- For each custom field created, add a field on the HPD:Helpdesk form and create a workflow to map the attribute created on the HPD:ServiceInterface form (refer to step 6). For more information, contact BMC Support.
Step 3: Verify that the new fields configuration is successful
Open the URL, http://<ARServerHostName>:<ARMidtierServerPort>/arsys/WSDL/public/<ARServerHostName>/HPD_IncidentServiceInterface.
For example, http://aus-host:8080/arsys/WSDL/public/aus-host/HPD_IncidentServiceInterface.
Verify if the web service fields added are displayed. If not, flush the cache on the AR System server console in the following way:
- Open the URL, http://<ARServerHostName>:<ARMidtierServerPort>/arsys/shared/config/config.jsp.
For example, http://aus-host:8080/arsys/shared/config/config.jsp. - Click Flush Cache.
Step 4: Configure the custom field details on TrueSight Infrastructure Management
- Stop the SDIG service.
Generate the stub so that Infrastructure Management can consume the custom fields correctly:
- Ensure that JDK 1.8 or later is installed on the Infrastructure Management server and the path environment variable is already set.
- Navigate to <installationDirectory>\pw\integrations\EventIntegrator and open the command prompt.
- Run the following command:
generateStub <JDKinstallationLocation> <ARServerHostName>
In the following command, the following definitions apply:
- <JDKinstallationLocation> refers to the complete JDK location path. If the JDK location path contains a space, enclose it with double quotes.
- <ARServerHostName> refers to the fully qualified host name of the Remedy AR System server.
- Verify if the latest timestamp shows for the <installationDirectory>\pw\integrations\EventIntegrator\lib\stub\stub.jar file.
- Configure the custom field details in the DefaultMapping.map file:
- Open the DefaultMapping.map file located at <installationDirectory>\pw\integrations \ibrsd\conf.
Under the MapName=BEMUseCaseNEW function, add a mapping of the web service custom fields and the Infrastructure Management slot names in the format, WebServiceFieldName=SlotName.
The following example highlights the mapping of custom web service fields and slot names.Example of web service field mapping with slot names
MapName=BEMUseCaseNEWCopySource=FALSE #Copy contents of all the slots from source to destination before any translation#SourceClass=#DestinationClass=Description=Mapping for BEM Use Case New EventEnable=TRUE{CustomWebServiceField1=Slot1
CustomWebServiceField2=Slot2
Short_Description=slot.msgComponent_ID=slot.mc_smc_idService_ID=slot.mc_smc_effects- Save the file.
- Configure the custom field details in the IBRSD.conf file:
- Open the IBRSD.conf file located at <installationDirectory>\pw\integrations\ibrsd\conf.
- Locate the property, CustomStubFields and add the web service field names as a comma-separated list of values.
For example, CustomStubFields=WebServiceField1, WebServiceField2. - Save the file.
- Start the SDIG service.
Step 5: Verify if the custom fields are successfully added on TrueSight Infrastructure Management
You can verify if the custom fields are successfully added on TrueSight Infrastructure Management by checking if those fields are present in the Event Integrator debug logs.
To do this, you need to perform the following steps to enable the EventIntegratorDebug.log.
- Navigate to the following location:
- (Windows)TSIMinstallationDirectory\TrueSight\pw\integrations\EventIntegrator
- (Linux)TSIMinstallationDirectory/usr/pw/integrations/EventIntegrator
Edit the eventIntegrator_log4j.properties file, locate the following properties and replace "INFO" with "DEBUG".
Properties that need to be changed
log4j.logger.com.bmc.sas.ei=INFO,eventIntegrator
log4j.logger.com.bmc.sas.ngp=INFO,eventIntegrator
log4j.logger.org.apache=INFO,eventIntegrator
log4j.logger.com.bmc.bppm.service=INFO,eventIntegrator
Changed properties example
log4j.logger.com.bmc.sas.ei=DEBUG,eventIntegrator
log4j.logger.com.bmc.sas.ngp=DEBUG,eventIntegrator
log4j.logger.org.apache=DEBUG,eventIntegrator
log4j.logger.com.bmc.bppm.service=DEBUG,eventIntegrator
- Restart the SDIG service.
- Navigate to the following location:
- (Windows)TSIMinstallationDirectory\TrueSight\pw\integrations\EventIntegrator/logs
- (Linux)TSIMinstallationDirectory/usr/pw/integrations/EventIntegrator/logs
- Open the EventIntegrator.log and check if the custom fields created are present in the log.