HPSM 9 40 Universal CMDB Integration Guide
HPSM 9 40 Universal CMDB Integration Guide
Legal Notices
Warranty
The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be
construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.
Copyright Notice
© 1994 - 2014 Hewlett-Packard Development Company, L.P.
Trademark Notices
Adobe® is a trademark of Adobe Systems Incorporated.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
For a complete list of open source and third party acknowledgements, visit the HP Software Support Online web site and search for the product manual called HP Service
Manager Open Source and Third Party License Agreements.
Documentation Updates
The title page of this document contains the following identifying information:
To check for recent updates or to verify that you are using the most recent edition of a document, go to: https://softwaresupport.hp.com
This site requires that you register for an HP Passport and sign in. To register for an HP Passport ID, go to: http://h20229.www2.hp.com/passport-registration.html
Or click the New users - please register link on the HP Passport login page.
You will also receive updated or new editions if you subscribe to the appropriate product support service. Contact your HP sales representative for details.
Support
Visit the HP Software Support Online website at: https://softwaresupport.hp.com
This website provides contact information and details about the products, services, and support that HP Software offers.
HP Software online support provides customer self-solve capabilities. It provides a fast and efficient way to access interactive technical support tools needed to manage your
business. As a valued support customer, you can benefit by using the support website to:
Most of the support areas require that you register as an HP Passport user and sign in. Many also require a support contract. To register for an HP Passport ID, go to:
http://h20229.www2.hp.com/passport-registration.html
http://h20230.www2.hp.com/new_access_levels.jsp
HP Software Solutions Now accesses the HPSW Solution and Integration Portal website. This site enables you to explore HP Product Solutions to meet your business needs,
includes a full list of Integrations between HP Products, as well as a listing of ITIL Processes. The URL for this website is http://h20230.www2.hp.com/sc/solutions/index.jsp
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 2 of 273
Universal CMDB Integration Guide
Contents
Chapter 1: Introduction 10
Who Should Read this Guide 10
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 3 of 273
Universal CMDB Integration Guide
Multi-Tenancy Requirements 69
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 4 of 273
Universal CMDB Integration Guide
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 5 of 273
Universal CMDB Integration Guide
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 6 of 273
Universal CMDB Integration Guide
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 7 of 273
Universal CMDB Integration Guide
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 8 of 273
Universal CMDB Integration Guide
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 9 of 273
Chapter 1: Introduction
This chapter provides an overview of the HP Universal CMDB (UCMDB) - HP Service Manager (SM)
integration (also referred to as the Universal CMDB (UCMDB) integration or UCMDB-SM integration
throughout this document).
Note: This document replaces the following documents that have been published before this
release:
l HP Universal CMDB Integration Guide (for Service Manager 9.30, dated July 2011)
l UCMDB-SM Integration Standards and Best Practices Guide (dated 31 May 2010)
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 10 of 273
Universal CMDB Integration Guide
Chapter 1: Introduction
You can use this integration to automate the creation of Service Manager change or incident records to
update or rollback CIs that have unexpected attribute values. Service Manager allows you to
programmatically define what actions you want to take whenever a CI’s actual state does not match the
expected state as defined in the CI record.
The integration offers several different ways for users to view CI actual state information:
l By default, the integration automatically updates the managed fields of Service Manager CI records
as part of the regular UCMDB synchronization schedule. You can choose the option to configure the
integration to automatically create change or incident records instead.
l A Service Manager user can view the current actual state of a CI by looking at the Actual State
section in the CI record. When you open the Actual State section, Service Manager makes a web
services request to UCMDB and displays all CI attributes the request returns. Service Manager only
makes the web service call when you open this section.
l A Service Manager user can use the View in UCMDB option to log in to the UCMDB system and view
the current CI attributes from UCMDB. The Service Manager user must have a valid UCMDB user
name and password to log in to the UCMDB system.
There are four main business use cases supported by the UCMDB-SM integration. They are as follows:
l Unplanned Change: A change or incident that occurred in SM and does not conform to the formal SM
change process.
All of the use cases provide important functionalities that enable the user to perform ITIL (IT
Infrastructure Library) processes. The ITIL processes refer to a set of best practices that define and
outline how organizations should manage their IT.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 11 of 273
Universal CMDB Integration Guide
Chapter 1: Introduction
l Incident Management: the Service Desk operator (SD Agent) selects the “Service” and the “Affected
CI” for the specific Incident record.
l Problem Management: the SD agent selects the “Service” and the “Primary CI” for the specific
Problem record.
l Change Management: the SD agent selects the “Service” and the “Affected CI(s)” for the specific
Change record.
In each of the previously mentioned ITIL processes, SM utilizes CI information for Service, Affected CIs
and Primary CIs that all originate in UCMDB.
A “Planned Change” is initiated by the SM user through the formal “Change Management” process
module in SM. This is followed by the actual change implementation.
The actual changes are discovered by a discovery tool such as HP DDMA, and then updated in UCMDB
and the relevant modifications are pushed to SM. Once the user has validated the change, the user
closes the relevant planned change in SM.
An “Unplanned Change” is a change that is recognized by a Discovery tool such as DDMA. The change is
first updated and visible in UCMDB and then the data is pushed to SM. SM recognizes the change and as
a result an “Incident” or “Change” record is generated.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 12 of 273
Universal CMDB Integration Guide
Chapter 1: Introduction
These Changes are seen also in the SM “Pending Changes” section in the Configuration Item form, once
approved they are moved to the SM “Historic Changes” section.
SM ticket data is accessed from within UCMDB using UCMDB federation capabilities. SM ticket data
includes Incident, Problem and Change records as well as a key set of their attributes.
UCMDB enables users to create reports/views that combine the federated ticket data from SM with CI
information from UCMDB.
The “Actual State” of the CI is displayed in SM in order to enable the user to validate the current state of
the CI that resides in UCMDB or in another data repository.
SM users retrieve the Actual State of CIs from UCMDB or additional data sources by viewing the CI's
Actual State section in the SM Configuration Item form.
Tip: You can configure Lightweight Single Sign-On (LW-SSO) for the integration, so that Service
Manager web client users can bypass the UCMDB login screen after clicking the View in UCMDB
button. For more information, see "How to Enable Lightweight Single Sign-On (LW-SSO)
Configuration" on page 96.
If the UCMDB Browser URL is specified in the SM System Information Record, this button is replaced by
the View in UCMDB Browser button. When you click the View in UCMDB Browser button, a UCMDB
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 13 of 273
Universal CMDB Integration Guide
Chapter 1: Introduction
Browser login screen displays; After you enter a UCMDB Browser username and password, the CI is
displayed in the UCMDB Browser UI.
Core Features
This section explains the rudimentary concepts behind the Federation, Push, and Population features as
they pertain to the integration.
l "Push" below
l "Federation" below
Push
UCMDB can automatically discover most types of CIs available in Service Manager. This integration
enables you to push these types of CIs from UCMDB to Service Manager.
The following figure shows how data is pushed from UCMDB to Service Manager (SM). The data is
physically pushed (copied) from UCMDB to SM. Once the data is physically located in SM, the data is
utilized by the SM user that consumes this information in various SM processes.
Federation
With the federation feature, UCMDB pulls various ticket information (for example, Incident, Problem,
and Change ticket information) from SM. This enables users to see Ticket information in UCMDB as
Ticket CIs that are connected to the relevant Nodes.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 14 of 273
Universal CMDB Integration Guide
Chapter 1: Introduction
When data is federated (reflected or mirrored) from SM to UCMDB, the data is not physically present in
UCMDB, instead it is passed over to UCMDB through Web Services.
Population
You can also use this integration to populate those types of CIs that UCMDB cannot automatically
discover or CIs that have been created in Service Manager before you have a UCMDB system deployed.
For more information, see "When do I Need the Population Feature" on page 100.
Population is the reverse of Push. The following figure shows how data is populated from SM to UCMDB.
One SM CI record with multiple attributes is transferred to UCMDB as multiple CI records.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 15 of 273
Universal CMDB Integration Guide
Chapter 1: Introduction
CI Information Usage
When referring to the concept of CI information it is important to make the distinction between a
UCMDB CI and a Service Manager (SM) CI. The UCMDB model represents a topology that contains a
number of CI types and relationships.
The UCMDB topology can be represented in Service Manager as a single entity. Multiple CIs from UCMDB
and their attributes are merged into a single record in SM and the relevant UCMDB attributes are
mapped to their appropriate counterparts in the SM record.
The above figure shows the correlation between the UCMDB topological model and its representation of
the Computer Instance together with its parallel representation in SM. The SM computer CI contains all
of the UCMDB information that is passed through the integration.
In the push flow, in the UCMDB topological view several CIs such as Node, IP, Interface, Location, File
System, CPU, Disk Device and their Relationships are converted into a single SM computer record with
the IP, MAC Address and Location, File System, CPU and Disk Device attributes.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 16 of 273
Universal CMDB Integration Guide
Chapter 1: Introduction
The Service Manager Adapter includes configuration files, which are used to map UCMDB entities to
their counterparts in Service Manager during data push, as well as map Service Manager CIs to UCMDB
entities during population.
The configuration files utilize UCMDB queries that define a superset of data relevant for the integration.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 17 of 273
Universal CMDB Integration Guide
Chapter 1: Introduction
Service Manager runs according to a set of rules that define what actions you want the system to take
whenever a CI’s actual state does not match the expected state as defined in the CI record. You define
these rules from the Discovery Event Manager (DEM) in Service Manager where you can do the
following:
l Automatically update a CI record to match the attribute values listed in the actual state. (This is the
default behavior.)
l Automatically create a change record to review the differences between the actual state and the
managed state.
l Automatically create an incident record to review the differences between the actual state and the
managed state.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 18 of 273
Chapter 2: Integration Setup
Before implementing the integration in your production environment, you can set up the integration in a
test environment using the out-of-the-box integration configurations. This chapter describes the basic
integration setup tasks without any tailoring or multi-tenancy configurations. It covers the following
topics:
Tip: Before you proceed to implementing the integration in your production environment, you can
refer to the following chapters for further information:
l "Multi-Tenancy (Multi-Company) Setup" on page 61, which describes how you set up the
integration in multi-tenancy mode.
l "Standards and Best Practices" on page 83, which describes best practices for implementing
the integration and also provides Frequently-Asked-Questions information.
l "Tailoring the Integration" on page 115, which describes how you can tailor the integration to
better suit your business needs.
l "Troubleshooting" on page 225, which provides information on troubleshooting data push and
population issues.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 19 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
Integration Requirements
The supported product versions of this integration are listed in the following table.
9.30 + UCMDB Integration Content Pack 9.30.0 1 10.01 CP12 2, 10.10 CP13
You must set up the following required components to establish an integration between UCMDB and
Service Manager.
l Network connection between the HP Universal CMDB and HP Service Manager systems.
For instructions on installing and configuring your systems, see the UCMDB and Service Manager
documentation.
1The UCMDB Integration Content Pack 9.30.0 is available from the HP Live Network at:
https://hpln.hp.com. For instructions on installing the content package, see the Service Manager 9.30
Applications Patch Manager Guide for Content Patches shipped with the content pack release.
2CI data replication (push) from UCMDB to Service Manager is supported for certain versions of UCMDB
earlier than 9.x with less content and limited error handling; however CI data population is supported
only for UCMDB 9.05 or later. For this reason, this document does not cover information about
integrating Service Manager with earlier versions of UCMDB. For such information, see the HP Universal
CMDB to HP Service Manager Integration Guide for Service Manager version 9.20, which is available from
http://h20230.www2.hp.com/selfsolve/manuals.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 20 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
integration after you upgrade to Service Manager applications 9.32 or later for the first time. This
section describes these upgrade tasks.
Note: If you have already applied the UCMDB Integration Enhancement Content Pack 9.30.0 for
Service Manager 9.30, the integration has been upgraded and you need to do nothing. If you do not
want to upgrade your existing integration, you need to do nothing and your integration can
continue to work as before.
l "Align the SM CI relationship data model with the UCMDB data model." on page 24
The SM-UCMDB integration enhancement uses the joinnode table for data mappings of the
following CI types: mainframe, networkcomponents, storage, and computer. The new data
mappings require certain changes be made to these CI types in Service Manager Service Manager
9.40; Universal CMDB 10.01 or later, as described in the following tables.
Note: For backward compatibility, the definitions of all out-of-box CI types in Service Manager
Service Manager 9.40; Universal CMDB 10.01 or later are identical to those in Service Manager
9.30.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 21 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
n Logical Partition
n CPC
n LoadBalancer
n Bandwidth Manager
n CSU/DSU
n Ethernet
n FDDI
n KVM Switch
n Token Ring
n Voice Gateway
n Voice Switch
n VPN Gateway
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 22 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
n SAN Gateway
n SAN Router
n SAN Switch
n Storage Array
n Virtualized System
To use the integration enhancement, you must modify the following device type definitions in
Service Manager: computer, networkcomponents, mainframe, and storage:
a. Log in to Service Manager Service Manager 9.40; Universal CMDB 10.01 or later as a system
administrator.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 23 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
b. Navigate to Configuration Management > Resources > Device Types, and then click Search.
c. Select one of the CI types (computer, networkcomponents, mainframe, and storage), and
update its definition as described in the above tables.
d. Repeat the steps above for the rest of the four CI types.
This task in optional. It is required only if you want to use the joinnode-based data mappings. If you
want to use the original tables instead of joinnode (see the above tables), this task is not needed;
instead, you need to modify the data mappings of the Service Manager 9.xx adapter in UCMDB.
a. Log in to Service Manager Service Manager 9.40; Universal CMDB 10.01 or later as a system
administrator.
b. In Database Manager, in the Table field type cidatacopy, and then click Search. The Copy CI
Type Data form opens.
d. Select each record from the list, update or add source/target fields as needed, and click the
Copy Data button. One of the following messages occurs:
i. A message like “<XXX> records were successfully copied, and <YYY> records were
ignored within xxx ms”, where XXX and YYY represent the numbers of records copied and
ignored.
ii. An error message: “Configuration validation failed, and no records were copied. Please
check your Source Fields/Target Fields settings and run Copy Data again.”
e. If the error message occurs, correct your Source Fields/Target Fields settings, and click Copy
Data again until all of your records have been successfully processed.
3. Align the SM CI relationship data model with the UCMDB data model.
To use the integration enhancement, you need to manually update several records in Service
Manager to align the SM CI relationship data model (relationship types and subtypes) with that of
UCMDB, in order for easy data mapping between the two products.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 24 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
c. Click Execute. Running this script will automatically rename each record in the table below to
<record_name>.bak.932, and replace them with new records with the original record names.
Format CM.relationship
CM.relationship.qbe
CM.relationship.type
CM.relationship.type.qbe
dataModEventRel.relationship.detail
dataModEventRel.relationship.qbe
am.downstream.relationships.vj
am.upstream.relationships.vj
Extaccess Relationship
CM.relationship.type
dataModEvent.relationship
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 25 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
If you tailored any of these records in the above table, open the <record_name>.bak.932 record to
identify the differences, and merge your customizations in the new record.
The data length of CI relationship name in Service Manager is 40 characters, which is not sufficient
for the integration. If a CI relationship name exceeds this data length, either the relationship name
is truncated after push or the relationship cannot be pushed to Service Manager due to a duplicate
key error. You need to manually increase the data length in Service Manager:
b. Increase the data length of the relationship.name field from 40 to an appropriate value
(recommended value: 300).
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 26 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
4. Run the UCMDB data push jobs to transfer CIs to Service Manager.
See "Populating UCMDB with Service Manager CI Data" on page 35.
2. Type contacts in the Service Manager command line, and press ENTER.
4. Type operator in the Service Manager command line, and press ENTER.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 27 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
5. In the Login Name field, type the username of an existing system administrator account, and click
Search.
The system administrator account is displayed.
c. In the Contact ID field, click the Fill button and select the contact record you have just created.
d. Click Add.
f. Click OK.
The integration user account is created. Later you will need to add this user account
(username/password) in UCMDB, and then specify this user account in the Credentials ID field when
creating an integration point in UCMDB. See "How to Create an Integration Point in UCMDB" on page 30.
Caution: If you do not specify the correct connection information, an error, instead of UCMDB CI
information, will display in the Actual State section.
Note: The integration with UCMDB Browser is supported only for Service Manager 9.31 or later.
2. Click System Administration > Base System Configuration > Miscellaneous > System Information
Record.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 28 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
5. In the UCMDB webservice URL field, type the URL to the HP Universal CMDB web service API. The URL
has the following format:
http://<UCMDB server name>:<port>/axis2/services/ucmdbSMService
Replace <UCMDB server name> with the host name of your UCMDB server, and replace <port> with
the communications port your UCMDB server uses.
6. In UserId and Password, type the user credentials required to manage CIs on the UCMDB system.
For example, the out-of-the-box administrator credentials are admin/admin.
7. Optionally, if you want to enable an integration to the UCMDB Browser, in the UCMDB Browser URL
field, type your UCMDB Browser URL in the following format:
http://<UCMDB browser server name>:<port>/ucmdb-browser
The UCMDB Browser has two themes. By default, it uses the dark color theme; if you want to use
the light color theme, use this format for the UCMDB Browser URL:
Note: If you specify the UCMDB Browser URL here, the View in UCMDB Browser button will
replace the View in UCMDB button in CI records synchronized from UCMDB; only when you
leave this field empty, the View in UCMDB button will appear.
8. Click Save. Service Manager displays the message: Information record updated.
10. Log back into the Service Manager system with an administrator account.
The Actual State section and the View in UCMDB Browser or View in UCMDB button will be available in
CI records pushed from UCMDB.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 29 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
Caution: For data population, this integration supports the use of only one probe for your Service
Manager system. In other words, you should not run population jobs on different probes by setting
up multiple integration points with different probes for your Service Manager system. Only one
probe is allowed for one Service Manager system.
2. Add the integration user account that you created in Service Manager.
a. Click Administration > Users and Roles.
c. For User Name and Password, type the user name and password you created in Service
Manager. See "How to Create an Integration User Account" on page 27.
3. Navigate to Data Flow Management > Integration Studio. UCMDB displays a list of existing
integration points.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 30 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
5. Complete the integration and adapter property fields as described in the following table.
Integration and adapter properties (UCMDB 10.01 or later)
Is
Field name required? Description
Integration Yes Type the name (unique key) of the integration point. For example,
Name Population_CI_From_S.
Hostname/IP Yes Type the hostname or IP address of the Service Manager server.
Port Yes Type the communications port of the Service Manager server. For
example, 13080.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 31 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
URL Override No This field value (if any) supersedes the Hostname/IP and Port
settings described above.
The following are two example values of this field (each URL should
use this format: http(s)://<hostname>:<port>/sc62server/ws):
n https://localhost:13443/sc62server/ws
n http://localhost:13080/sc62server/ws;
https://localhost:13443/sc62server/ws;
http://smfpe04:13080/sc62server/ws
Credentials Yes Click Generic Protocol, click the Add button to add the integration
ID user account you created, and then select it. This account must exist
in both Service Manager and UCMDB. See "How to Create an
Integration User Account" on page 27.
Data Flow Yes Select the name of the Data Flow Probe used to run population jobs.
Probe You should have already added the data flow probe for the
integration after installing UCMDB. See "Integration Requirements"
on page 20.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 32 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
7. Click OK.
The integration point is created and its details are displayed.
ii. Problem
b. For each CI type you selected (Incident, Problem, or Request for Change), in CI Type Retrieval
Mode select Retrieve CIs of selected CI Type.
9. Click the Population and Data Push tabs, to view the default integration job details.
Note: UCMDB creates several default population and data push jobs when creating an
integration point. If needed, you can create a new job for the integration point. For
information about creating integration jobs, see "How to Define Data Push Jobs in UCMDB" on
page 39 and "How to Define Population Jobs in UCMDB" on page 35.
How to Update the Time Zone and Date Format for the
Integration Adapter
The integration uses an integration user account to connect UCMDB to Service Manager. You specified
this user account in the Credentials ID setting when creating an integration point. See "How to Create an
Integration Point in UCMDB" on page 30. You must make sure that this integration user account uses
the same time zone and date format in both Service Manager and UCMDB. To do so, you define the
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 33 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
same time zone and date format in the integration adapter configuration file and in the integration
user’s operator record in Service Manager.
To update the time zone and date format for the integration adapter:
1. Check or change the time zone and date format of the integration user in Service Manager.
a. Log in to Service Manager as a system administrator.
b. Navigate to System Administration > Ongoing Maintenance > Operators. The Operators form
opens.
c. For Login Name, type the integration user name (for example, ucmdb) you set in the
integration point (the Credentials ID field).
f. View or change the operator’s Time Zone and Data Format field values.
2. Set the time zone and date format for the adapter in UCMDB.
a. Log in to UCMDB as an administrator.
b. Navigate to Data Flow Management > Adapter Management > ServiceManagerAdapter9-x >
Configuration Files > serviceDeskConfiguration.xml.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 34 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
c. At the bottom of the file, locate the elements “<date_pattern>” and “<time_zone>”, and
update the values according to the integration user’s time zone/date format setting in Service
Manager.
The date pattern and time zone are in java format pattern used by
java.text.SimpleDateFormat. Out-of-the-box, the date format and time zone values in
serviceDeskConfiguration.xml are: MM/dd/yy HH:mm:ss, and US/Mountain.
2. Navigate to Data Flow Management > Integration Studio. UCMDB displays a list of existing
integration points.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 35 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
Note: UCMDB creates several default population and data push jobs when creating an
integration point. The following table lists the default population jobs and their queries. If
needed, you can create, update or remove queries for each job. For information about
tailoring population queries, see "Create a Query to Populate the CI Type" on page 195.
SM Configuration Out-of-the-box, the following queries are available for this job, which
Item Population job populates CI records from Service Manager to UCMDB:
SM Relations Out-of-the-box, the following queries are defined for this job, which
Population job populates CI Relationship records from Service Manager to UCMDB:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 36 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
c. Click the Add Query button to add existing queries to the job (see the above table).
d. Select the Allow Integration Job to delete removed data check box for the query.
5. Run the job manually to see if the integration job works properly.
a. To populate all relevant data for the job, click the button.
b. To populate only CI data changes since the job last ran, click the button.
6. Wait for the job to complete, and click the Refresh button multiple times as needed until the job is
completed.
Note: When the job is completed, the job status becomes one of the following: Succeeded,
Passed with failures, or Failed.
7. Click the Statistics tab to view the results, and if the job failed, click the Query Status tab and Job
Errors tab for more information. For details, see "Troubleshooting Population Issues" on page 252.
8. Click OK.
If the job is completed successfully, you can view the transferred CI data in UCMDB and schedule the job
so that it can run automatically.
The Service Manager CI Identifierfield is populated to the Name field on the Configuration Item
Properties pane in UCMDB.
Note: To see the entire attribute mappings of a CI type, you can open the CI type’s population XSLT
file (for example, business_service_population.xslt) and the root population xslt file (cmdb_root_
attributes_population.xslt), where the UCMDB attribute field names and the mapped Service
Manager web service field caption names are defined. For more information, see "Tailoring the
Integration" on page 115
.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 37 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
2. Navigate to Data Flow Management > Integration Studio. UCMDB displays a list of integration
points.
4. Click the Population tab, and select a population job from the list.
7. Select the scheduling options you want to use. For example, select Repeat every: Day and Ends:
Never.
9. Click OK.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 38 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
2. Navigate to Data Flow Management > Integration Studio. UCMDB displays a list of existing
integration points.
3. Select the Integration Point you created for Service Manager. For example, SM Integration.
Note: UCMDB creates a default data push job when creating an integration point. The
following table lists the default data push job and its queries. If needed, you can create,
update or remove queries for the push job. To access these out-of-the-box queries for push,
go to Modeling > Modeling Studio > Resources, select Queries for Resource Type, and then
navigate to Root > Integration > SM Sync > 9.xx. For information about tailoring data push
queries, see "How to Create a Query to Synchronize the CI Type" on page 161.
Integration Queries
job
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 39 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
SM Push Out-of-the-box, the following queries are available for this job, which pushes CI/CI
job Relationship records from UCMDB to Service Manager:
Out-of-the-box, the following queries are available for this job, which pushes CI
Relationship records from UCMDB to Service Manager:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 40 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
b. In Name, type a unique name for the job. For example, CI_Push_Job1.
c. Click the Add Query button to add existing queries to the job.
d. Select the Allow Integration Job to delete removed data option for each query.
6. Run the job manually to see if the integration job works properly.
Caution: If you have a huge amount of CI data in your UCMDB system, and this is your first
time to push CI /CI Relationship data to Service Manager, it is recommended to select the “Add
the record” option instead of “Open a change” or “Open an incident” for “Action if matching
record does not exist” in each Discovery Event Manager Rules definition. Otherwise
unnecessary performance problems might occur. For details, see "Add Discovery Event
Manager Rules" on page 137.
a. To push all relevant data for the job, click the button.
b. To push only changes in the data since the job last ran, click the button.
Tip: You can stop a running push job by pressing the Stops the selected job button .
7. Wait for the job to complete, and click the Refresh button multiple times as needed until the job is
completed.
Note: When the job is completed, the job status becomes one of the following depending on
the results: Succeeded, Passed with failures, or Failed.
8. Click the Statistics tab to view the results; if any errors occur click the Query Status tab and Job
Errors tab for more information. For details, see "Troubleshooting Data Push Issues" on page 225.
9. Click OK.
If the job is completed successfully, you can view the UCMDB CI data in Service Manager, and schedule
the job so that it can run automatically.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 41 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
CI records pushed from UCMDB contains a View in UCMDB or View in UCMDB Browser button, which
enables you to access UCMDB or UCMDB Browser to view the CI information.
Note:
l If you specified the UCMDB Browser URL in the System Information Record in SM, the View in
UCMDB Browser button displays; otherwise the View in UCMDB button is displayed.
l The UCMDB Browser is a lightweight UI designed for simple access to UCMDB configuration
information. This is a tool for searching, locating and consuming configuration related data. It is
an optional add-on to UCMDB. For more information, refer to the UCMDB Browser
documentation.
Note: You can enable Lightweight Single Sign-On (LW-SSO) for the integration so that Service
Manager web client users can bypass the UCMDB login screen. For details, see "How to Enable
Lightweight Single Sign-On (LW-SSO) Configuration" on page 96.
5. If the View in UCMDB Browser button is available, view the CI record in the UCMDB Browser.
a. Click the View in UCMDB Browser button. The UCMDB Browser login screen opens.
b. Type a UCMDB Browser username and password to log in. The CI record opens in the UCMDB
Browser. You can view its properties and other information.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 42 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
Note: The web services request uses the UCMDB webservice URL and account (for example,
admin/admin) defined in the System Information Record in Service Manager. See "How to Add
the UCMDB Connection Information" on page 28.
UCMDB allows you to schedule updates directly from a data push job. This task includes the following
steps:
2. Navigate to Data Flow Management > Integration Studio. UCMDB displays a list of integration
points.
3. Select the integration point you created for the UCMDB-SM integration. For example, SM
Integration.
Tip: UCMDB allows you to define two different schedules for two types of data push: Changes
Sync, and All Data Sync. For recommendations on push scheduling, see "Push Scheduling
Recommendations" on page 86.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 43 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
8. Click All Data Sync tab, and select the scheduling options you want to use.
10. Repeat step 6 to step 9 for the rest of data push jobs of the integration point.
Note: You can tailor the integration to federate more SM ticket attributes to UCMDB. For details,
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 44 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
see "How to Add an Attribute of a Supported CI Type for Federation" on page 217.
Federation queries
Federation uses queries to determine what data to retrieve from Service Manager. To retrieve specific
ticket data from Service Manager, you need to create a query first. Out-of-the-box, sample federation
queries are available from UCMDB: Modeling > Modeling Studio > Resources > View > Service Desk.
l "Example 2: Federate SM Incident Tickets that Affect a UCMDB Business Service CI" on page 50
l "Example 3: Federate SM Incident, Change and Problem Ticket Data of UCMDB CIs" on page 55
5. On the CI Types tab, go to ItProcessRecord > Incident, and drag it to the query pane on the right
side.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 45 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
6. Specify Service Manager as the data source for the Incident query node.
a. Select the Incident query node, click the Data Sources tab on the lower right pane, and then
click Edit.
b. Select the Select integration points option, and then select your integration point name (for
example, sm_integration). Click OK.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 46 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
7. Click the Save button , and then type a query name and select a location to save the query (for
example, select the Root > Integration > SM Query folder).
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 47 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
8. Select the Incident query node, and then click the Calculate Query Result Count button .
UCMDB returns the query result count. For example, the following figure shows that there are 131
Incident records in total in Service Manager.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 48 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
9. Right-click the Incident query node, and select Show Element Instances. UCMDB displays a list of
all Incident records that exist in Service Manager.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 49 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
10. Select an Incident ticket from the list, and click the Properties button to view its details.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 50 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
5. On the CI Type tab, go to ConfigurationItem > BusinessElement > Service > BusinessService, and
drag it to the query pane on the right side.
8. Select the Incident query node, and drag the arrow from this node to the BusinessService node to
create a regular relationship between the nodes.
a. Select Regular Relationship, and click OK.
b. Select Membership, and optionally enter a relationship name (for example, Membership_1).
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 51 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
Click OK.
9. Specify UCMDB as the data source for the BusinessService query node.
a. Select the BusinessService query node.
b. On the lower right pane, click the Data Sources tab and then click Edit.
c. Make sure that the Local data source (UCMDB only) option is selected.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 52 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
d. Click OK.
10. Similarly, specify your integration point as the data source for the Incident query node (for
example, sm_integration).
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 53 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
11. Click the Calculate Query Result Count button . The number of SM Incidents and the number
of their affected UCMDB Business Service CIs are displayed.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 54 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
13. Select each SM Incident record from either the CI Selector pane or the query pane, and click the
14. Select each UCMDB CI record from either the CI Selector pane or the query pane, and on the
Related CIs tab click Show Related CIs.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 55 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
5. On the CI Type tab, go to ConfigurationItem > BusinessElement > Service > BusinessService, and
drag it to the query pane on the right side.
6. Go to ItProcessRecord, and drag Incident, Problem, and RequestForChange to the query pane.
7. Click the Create Relationship button to create regular relationships between the
BusinessService node and the other nodes as shown in the following figure.
9. For the Incident, Problem, and RequestForChange nodes, specify your integration point as the data
source.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 56 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
d. This will change the filter criteria and therefore the query result.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 57 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
13. Select each SM Incident record from either the CI Selector pane or the query pane, and click the
14. Select each UCMDB CI record from either the CI Selector pane or the query pane, and on the
Related CIs tab click Show Related CIs to view its related CIs in both SM and UCMDB.
3. On the Search CIs tab, search for a UCMDB CI that has associated ticket(s) in Service Manager. For
example, enter bs1327232399 in the CI Name field, click Search, and double-click the CI to open
it.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 58 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
5. Click the Select target Integration Points for related CIs button .
6. Select the Select integration points option, and then select both UCMDB and your integration
point. Click OK.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 59 of 273
Universal CMDB Integration Guide
Chapter 2: Integration Setup
7. Click Show Related CIs. The CI’s related SM tickets and UCMDB CIs are displayed.
8. Select each SM ticket record from the query pane, and click the Properties button to view its
details.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 60 of 273
Chapter 3: Multi-Tenancy (Multi-Company) Setup
The UCMDB-SM Integration supports a multi-tenancy configuration in which both the Service Manager
and UCMDB systems track Configuration Items (CIs) and Configuration Item Relationships (CIRs) by
company ID. In a multi-tenancy configuration, you can tailor the integration so that each tenant only
sees and works with the CIs and CIRs that match their company ID. Multi-tenancy is intended for
managed service providers (MSPs) who wish to offer Configuration Management as a service to multiple
tenants.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 61 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
Explanation
Every tenant configured in UCMDB works with the relevant tenant in SM. If UCMDB did not configure
tenants, the tenant configuration must be activated in order to transfer the configuration from SM to
UCMDB automatically. This function is performed once only by the system administrator.
In the event that UCMDB tenant configuration already exists and the SM configuration does not exist,
SM tenant must be manually configured according to the UCMDB configuration.
SM tracks the company ID of each CI and relationship in a multi-tenant configuration. CI records inherit
the company ID of the UCMDB feeder that discovered them. Relationship records inherit the company ID
of the parent CI in the relationship.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 62 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
If more than one tenant (company) shares the same CI, each tenant has their own unique CI record
describing the CI. In effect, the UCMDB system creates multiple CI records to track one managed asset.
Each tenant’s CI record is unique to that tenant and lists the company's unique company ID.
Service Manager tracks the company ID of each CI and relationship in a multi-tenant configuration. CI
records inherit the company ID of the UCMDB feeder that discovered them. Relationship records inherit
the company ID of the parent CI in the relationship.
In a best practices implementation, Service Manager uses Mandanten to ensure that operators only see
CI and relationship records where the CI’s company ID matches the operator’s company ID. If you restrict
the view with Mandanten, then Service Manager also restricts the view to all other related records such
as change requests and incidents.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 63 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 64 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
UCMDB Customer ID
When you enable the multi-tenancy integration, Service Manager displays a new field in each company
record called UCMDB Customer ID. In order to synchronize a company record with UCMDB, you must first
provide a value for this field. After you provide a UCMDB Customer ID value this field becomes read-only.
You cannot change a company's UCMDB Customer ID after you set it.
This field only accepts numeric data up to ten characters long. Service Manager requires the field value
to be a unique positive whole number. You cannot enter duplicate values or use decimals, negative
numbers, or zero.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 65 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
Your UCMDB system automatically uses the UCMDB customer ID of 1 when running in single tenant
mode. You can reuse this default value in your multi-tenant implementation by assigning a Service
Manager company to have this UCMDB customer ID value. Out-of-the-box, no Service Manager company
has the UCMDB customer ID of 1.
The user name and password you provide in the Company Information record takes precedence over
the user name and password you provide in the System Information record. This allows managed
service providers to control access to the UCMDB system on a tenant-by-tenant basis. If you do not
provide a company-specific UCMDB user name and password, Service Manager uses the credentials you
provided in the System Information record.
Company Code
The multi-tenancy integration requires that each company record has a unique Company Code
(company field) value. Since Company Code is a required field, your existing company records should
already have Company Code values. However you should ensure that each company record has a unique
Company Code value.
Caution: You should not change the Company Code value after you have enabled the multi-tenancy
integration because this will cause your Service Manager data to become out of synch.
CI Reconciliation Rules
When multi-tenancy is enabled, Service Manager only reconciles the CIs whose company ID matches the
company ID in the data push job. For example, when pushing CIs from company 2, the reconciliation rules
only apply to the Service Manager CI records that have the company code corresponding to company
number 2.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 66 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
Schedule Records
Service Manager uses the problem schedule processor to manage the synchronization of company IDs
to your UCMDB system. You can manually enable the problem schedule processor from the System
Status form.
When the synchronization criteria are met as described in Table "Conditions where Service Manager
synchronizes company ID with UCMDB" on page 64, Service Manager creates a “Synch Company with
UCMDB - <UCMDB Company ID>” schedule record (for example, “Synch Company with UCMDB -
1234567890”). If you inactivate a company, Service Manager creates a “Inactivate Company with UCMDB
- <UCMDB Company ID>” schedule record (for example, “Inactivate Company with UCMDB -
1234567890”). The problem schedule processor processes the new schedule record on the next
background process iteration.
If your Service Manager system cannot connect to your UCMDB system for some reason, it will
reschedule the company synchronization at the next scheduled interval (the out-box interval is 5
minutes). The problem schedule processor updates the schedule record with the status rescheduled. If
the Service Manager system receives any other error message while connecting to the UCMDB system,
it updates the schedule record with the status “application failed due to error - check msglog for
possible messages.”
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 67 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
Tenant rules vary according to SM tenant configuration requirements, for each record information type
pushed from UCMDB to SM different tenants can configure different DEM tenant rules.
Each tenant can have its own set of unique requirements and therefore may implement different
processes through the integration.
One tenant may require the addition of CIs directly to SM while another tenant may require opening
changes for each CI.
The following table shows a sample set of DEM rules that illustrate how to accomplish this.
When creating DEM rules make sure to create separate DEM rules for each tenant.
UCMDB with When implementing a UCMDB-SM deployment that has existing multi-tenancy rules in
multi- UCMDB and does not have multi-tenancy rules configured in SM, the user creates
tenancy multi-tenancy rules in SM manually and according to the rules in UCMDB.
rules
SM without
multi-
tenancy
rules
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 68 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
SM with When implementing a UCMDB-SM deployment that has existing multi-tenancy rules in
multi- configured SM and does not have multi-tenancy rules configured in UCMDB, the user
tenancy creates multi-tenancy rules in UCMDB manually as well as according to the rules
rules previously configured in SM.
UCMDB
without
multi-
tenancy
rules
UCMDB When implementing a UCMDB-SM deployment that does not have multi-tenancy rules
without configured in UCMDB or in SM, the user configures the rules in SM.
multi-
During the configuration process using the SM multi-tenancy wizard the user can
tenancy
create corresponding tenancy configuration in UCMDB. By creating corresponding
rules
tenancy configurations in SM the user also creates a corresponding tenant in UCMDB.
SM without
multi-
tenancy
rules
Multi-Tenancy Requirements
Your system must meet the following requirements in order for the integration to support multi-
tenancy.
For additional information about the multi-tenancy integration, you can visit the HP Software Support
Online web site or refer to the Service Manager help.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 69 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
1. Install a separate data flow probe for each tenant the integration will support.
See "How to Install Separate Data Flow Probes for Each Tenant" below.
To install additional data flow probes and start them from your operating system command prompt:
2. Insert the HP Universal CMDB Setup Windows DVD into the system disc drive.
4. Follow the on-screen instructions to complete the wizard, but use the following values for each
data flow probe you wish to install.
a. Type a unique path for each installation folder.
b. Use the same UCMDB application server address for each data flow probe.
e. Create a unique customer Data Flow Probe domain for each probe (Clear the Use Default CMDB
Domain option).
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 70 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
f. Use the same probe gateway and probe manager settings for each probe (for example, use
combined or separate processes).
See the HP Universal CMDB Deployment Guide for complete installation instructions.
5. Repeat step 3 and step 4 for each data flow probe you wish to install.
6. Open the probe’s DiscoveryProbe.properties file in a text editor. By default, this file is located
in the following folder:
<UCMDB installation folder>\<data flow probe installation folder>\conf
Note: The <data flow probe installation folder> must be unique for each tenant.
customerId Type the customer ID for the tenant this data flow probe
supports
appilog.collectors.ProbeUseSpecific Type a unique port for each probe or type 0 to have the
system automatically select it
RMIPortFrom
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 71 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
1. Open the OS command prompt and navigate to the probe’s bin folder. For example,
C:\hp\UCMDB\DataFlowProbe1\bin.
3. Repeat step 1 to step 2 for each data flow probe you want to start.
1. Log in to UCMDB as an administrator using the company ID of the tenant whose data flow probe
you want to configure.
3. Expand the data flow probe domain containing the probe you want to start. For example,
Customer2.
4. Expand the Probe node and select the data flow probe you want to start. For example,
Probe2Customer2.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 72 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
6. Type an IP range you want the Data Flow Probe to scan. Optionally, add any IP ranges you want to
exclude.
8. Repeat step 1 to step 7 for each data flow probe you want to configure.
2. Navigate to Data Flow Management > Adapter Management > ServiceManagerAdapter9-x >
Configuration Files.
4. For each query defined in this file, update the basicQueryCondition setting by adding the following:
and company= "{customerId}"
For example:
Note: When you create or edit and then save a configuration file in Adapter Management,
UCMDB automatically restarts the adapter with the new configuration file.
Multi-tenancy support is an optional feature of the integration intended for Managed Service Providers
(MSPs) who want to offer Configuration Management as a service to their tenants. In a multi-tenancy
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 73 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
configuration, each CI and CIR record has a corresponding company ID. Out-of-the-box, Service Manager
allows all operators to view CI data regardless of the company ID. If you wish to restrict access to CI data
by company ID, you must enable Mandanten and use the company ID field as a restricting query. See the
Service Manager help for more information about multi-company mode and Mandanten.
You must complete the following tasks from your Service Manager system to enable multi-tenancy
support for the integration.
6. Verify that Service Manager synchronized company records with UCMDB (optional).
See "How to View Whether Company Information is in UCMDB" on page 79.
8. Inactivate company records you do not want to be part of the integration (as needed).
See "How to Inactivate a Synchronized Company" on page 80.
9. Reactivate inactive company records you want to be part of the integration (as needed).
See "How to Reactivate an Inactive Company" on page 81
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 74 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
Caution: In order to enable multi-tenancy support, you must use HP Universal CMDB version 8.02 or
greater. Earlier versions of HP Universal CMDB will produce an error message if you attempt to run
them in multi-tenancy mode.
2. Navigate to System Administration > Base System Configuration > Miscellaneous > System
Information Record.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 75 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
7. In the UCMDB web service URL field, type the URL to the synchronize CIs web service API. The URL
has the following format:
http://<UCMDB server name>:<port>/axis2/services/ucmdbSMService
Replace <UCMDB server name> with the host name of your UCMDB server, and replace <port>
with the communications port your UCMDB server uses.
8. In UserId and Password, type the user credentials required to manage CIs on the UCMDB system.
For example, the out-of-the-box administrator credentials are admin/admin.
9. In the Multi-tenant web service URL field, type the URL to the synchronize company IDs web service
API. The URL has the following format:
http://<UCMDB server name>:<port>/axis2/services/UcmdbManagementService
Replace <UCMDB server name> with the host name of your UCMDB server, and replace <port>
with the communications port your UCMDB server uses.
10. Type the user name and password required to synchronize company IDs on the UCMDB system. For
example, the out-of-the-box system administrator credentials for UCMDB 9.x are
sysadmin/sysadmin.
11. Click Save. Service Manager displays the message: Information record updated.
12. Log out of the Service Manager system, and log in again with an administrator account.
13. Click System Status > Display Options > All Tasks.
14. Type k in the Command field next to the problem schedule process and click Execute Commands.
Wait a few minutes for the problem schedule process to close.
16. Double-click the problem schedule process. The system now supports multi-tenancy for UCMDB.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 76 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
Note: Any credentials you provide in the company record take precedence over credentials you
provide in the System Information Record. The UCMDB UserId and UCMDB Password fields are
available only when you have enabled the multi-tenancy integration.
3. Type the search criteria you want to use to find company records. For example, leave the search
form blank to search all company records.
4. Click Search.
5. Type the user name you want this company to use to connect to UCMDB in the UCMDB UserId field.
6. Type the password for the UCMDB user name in the UCMDB Password field.
7. Click Save.
8. Repeat step 3 through step 7 for each company you want to provide credentials for.
3. Type the search criteria you want to use to find company records. For example, leave the search
form blank to search all company records.
4. Click Search.
5. Type a numeric value in the UCMDB Customer ID field for this company.
6. Click Save.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 77 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
7. Service Manager prompts to confirm that you want to synchronize the record with UCMDB. Click
Yes if you want to synchronize the company now, or click No if you want synchronize the company
later.
9. Repeat step 5 through step 8 for each company in the record list.
If you update any field in a company record that has not yet been synchronized to UCMDB, Service
Manager prompts whether you want to synchronize the company to UCMDB.
Note: Service Manager will not prompt you to synchronize the company record if you have disabled
the option to show the company in multi-company lists, or if there is a pending schedule record
associated with the company. See "How to Inactivate a Synchronized Company" on page 80 for
more information.
3. Type the search criteria you want to use to find company records. For example, leave the search
form blank to search all company records.
4. Click Search.
7. Click Save. Service Manager prompts to confirm that you want to synchronize the record with
UCMDB.
Note: Service Manager saves the company record regardless of your synchronization choice.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 78 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
Note: The UCMDB Customer ID field is visible only when you enable the multi-tenant UCMDB
integration.
3. Type the search criteria you want to use to find company records. For example, leave the search
form blank to search all company records.
4. Click Search.
Note: For more information about synchronization failures, see "Schedule Records" on
page 67.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 79 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
3. Type the search criteria you want to use to find company records. For example, leave the search
form blank to search all company records.
4. Click Search.
6. Click the Re-synch button next to the Synched with UCMDB? check box.
Note:
The Re-synch button is available only from company records that have already been
synchronized with UCMDB and have the Synched with UCMDB check box checked.
If your UCMDB system already has a company with this ID value, it will ignore the
resynchronization request. Service Manager will also ignore a resynchronization request if
there is an existing schedule record to resynchronize the company with UCMDB. In this case, it
displays the message “A schedule record has already been added to re-synch
this company with UCMDB”.
3. Type the search criteria you want to use to find company records. For example, leave the search
form blank to search all company records.
4. Click Search.
7. Click Save.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 80 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
8. If this company was previously synchronized with UCMDB, Service Manager prompts you to confirm
the inactivation.
3. Type the search criteria you want to use to find company records. For example, leave the search
form blank to search all company records.
4. Click Search.
7. Click Save. Service Manager prompts you to reactivate the company with UCMDB.
8. Click Yes. Service Manager creates a schedule record to reactivate the company.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 81 of 273
Universal CMDB Integration Guide
Chapter 3: Multi-Tenancy (Multi-Company) Setup
Tip: It is a best practice to create a separate DEM rule for each tenant.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 82 of 273
Chapter 4: Standards and Best Practices
This chapter includes:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 83 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
To prevent duplicate CI names from occurring in Service Manager when pushing UCMDB CIs, the
following mappings are provided out-of-the-box:
CRG mapping
l If a Cluster exists for a CRG, the CRG is mapped to this CI logical name: <Cluster display label>_<CRG
display label>;
l If the CRG does not have a Cluster, but has several IP addresses, the CRG is mapped to the following
(where the IP addresses are sorted alphabetically):
<IpAddress1>_..._<IpAddressN>.<authoritativeDnsName>_<CRG display label> (when
IpAddress.authoritativeDnsName exists)
l If neither a Cluster nor an IP address exists for the CRG, it is mapped directly to <CRG display label>.
Running Software CIs are prefixed with their root container node display label when mapped to a
Service Manager CI: <Node display label>_<Running Software display label>.
Switch or Router type CI records in UCMDB are prefixed with their MAC adresses when mapped to a
Service Manager CI: <MACAddress1>_..._<MACAddressN>_<Switch or Router display label>, where the
MAC addresses are sorted alphabetically.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 84 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
l For CIs/CI Relationships that UCMDB can automatically discover, use UCMDB as the data source. Do
not make changes to them in Service Manager, instead always let UCMDB discover their changes and
push the changes to SM.
l For CIs/CI Relationships that UCMDB cannot automatically discover, use SM as the data source. Do
not make changes to them in UCMDB, instead always make changes to them in SM and populate the
changes to UCMDB.
l For CIs/CI Relationships that are already created in SM and UCMDB can automatically discover, run a
one-time population to synchronize them to UCMDB, and then use UCMDB as their data source.
Caution: Problems like the following may occur if you do not follow these best practices:
Problem 1:
[Population Adapter] After CIs/CI Relationships are pushed from UCMDB, if you directly make
changes in SM to these records without ever populating them back to UCMDB first, the changes
cannot be populated to UCMDB.
Workaround:
Changing these UCMDB records in SM is not recommended; however if you need to do so you can do
the following to solve this issue: After the records are pushed to SM, populate them back to UCMDB
first before making any changes to them in SM. This way the changes can then be populated to
UCMDB.
Problem 2:
[Population Adapter] After a Composition relationship between a Node CI (node 1) and Running
Software CI is pushed to SM, if you change the upstream CI of the relationship from node 1 to node
2 and then run a change population to populate this change, the Running Software CI will be
removed in UCMDB.
Workaround:
It is recommended that you remove the running software in UCMDB and create a new one instead
of directly replacing the container of the running software in SM. If you cannot avoid doing so, do
the following:
After you change the upstream CI of the relationship from node 1 to node 2, do not directly run the
change population. Follow these steps to avoid this issue:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 85 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
2. Run a Running Software CI change population. This will create node 2 (if it does not already
exist in UCMDB) and a new Composition relationship between node 2 and this Running
Software CI.
3. Run a change population to synchronize the relationship change to UCMDB. The relationship
between node 1 and the Running Software CI will be removed, and the new relationship
created in step 2 will remain.
If you have run the change population after changing the upstream CI of the relationship from node
1 to node 2, and as a result the Running Software CI has been removed in UCMDB, follow these
steps to solve this issue:
2. Run a Running Software CI change population. This will create the Running Software CI, node 2
(if it does not already exist in UCMDB) and a new Composition relationship between node 2 and
this Running Software CI.
All push jobs can potentially produce a strain on the UCMDB and SM systems therefore; HP recommends
that you adhere to the following guidelines:
It is important for you to understand the function of the Scheduler “time frame” concept. Running push
jobs creates an increase in system activity and may affect application responsiveness. In order to
enable users to effectively interact with applications HP recommends the following guidelines:
In order to reduce system strain, schedule the UCMDB to SM push to run at non-peak usage hours,
preferably when system usage is at a minimum.
Scheduler frequency
It is important to be aware of the business requirements when configuring the schedule frequency. The
scheduler frequency depends on infrastructure environment changes that must be synchronized
between UCMDB and SM.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 86 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
Define the scheduling frequency based on the business requirements for consuming up-to-date CI
information. Most implementations require a daily update. When scheduling small IT systems that are
prone to frequent changes, the scheduling frequency may need to be increased.
UCMDB Push Jobs do not support dependencies between each other. Each “Push Job” is considered a
separate task and users cannot define job dependencies. For example, that one job is dependent on
another or upon completion before the next job is run.
It is important that both CI queries and their dependent Relationship queries exist in the same Job in
order to avoid relationships not being pushed to Service Manager. UCMDB always pushes the CI queries
before their dependent Relationship queries.
The out-of-the-box job for CI push uses queries that end with the “Push” suffix, for example, “SM
Computer Push”.
Queries that create relationships between the CIs uses an extra “Relations” suffix, for example,
“SM Node Relations Push”.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 87 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
HP recommends creating one or more SM processes dedicated to Web Services requests. The user must
configure the relevant external web service clients to connect directly to the dedicated Service Manager
processes.
2. Open the sm.cfg file, and create a dedicated SM process to listen for Web Services requests using
the -debugnode parameter.
The following entries create a dedicated process listening on ports 13085 and 13445.
Explanation
The code excerpt illustrates the various settings for each of the SM process listeners (web
services) that enable SM clients to connect to the SM service.
Lines 02 and 03 define the SM ports to which non-dedicated SM clients are redirected by the SM
load balancer.
Line 04 defines the debugnode port that is utilized by the dedicated SM clients.
The debugnode parameter tells the SM load balancer not to forward any client connection requests
to this Service Manager process. Only clients that directly connect to the process can access this
port.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 88 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
2. Configure any external web service clients to connect directly to the SM processes running in
debugnode. When performing an integration using UCMDB, the UCMDBService Manager Adapter for
SM should be configured to connect to the debugnode port.
For example, for normal connections set the endpoint URL to:
These clients may include UCMDB (for push purposes), Connect-It and additional applications.
You can create more than one SM processes dedicated to Web Services requests, and configure the
field URL Override of integration point with the dedicated SM processes. This field value (if any)
overrides the Hostname/IP and Port settings.
The following is an example value of this field, which connects two SM processes:
You must first assess whether all of the data can be pushed in a single iteration. This is ascertained by
the amount of data that is included in the push queries and the amount of time you have to push this
data.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 89 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
Note: The performance data presented in this document is based on tests that were performed at
HP and is provided for reference only. The integration performance may significantly differ in your
environment depending on your hardware configuration.
22,500 number.of.concurent.sending.threads=1
min.objects.for.concurent.sending=50
number.of.chunks.per.thread=3
To view or edit the sm.properties file in UCMDB, navigate to Data Flow Management > Adapter
Management > ServiceManagerAdapter9-x > Configuration Files > sm.properties.
The push time (in hours) in any given environment is calculated as follows:
If the push of a single planned query has the potential of breaching the permitted time frame the data
must be divided into several queries. Each query must be pushed individually.
This query division is performed by creating several queries, each with different node conditions that
enable data filtering. Once all queries are pushed for the first time, the Initial Load process is complete.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 90 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
When applying node conditions to the various SM Sync Queries, you must make sure that all of the
information is included in the queries, so that all relevant data is copied to SM.
Implementing Multi-Threading
In order to improve performance, the Service Manager Adapter utilizes multiple threads for the push of
CI and Relationship data to SM. The following section explains these settings and how to configure them
for maximum performance.
The multi-threading configuration is defined in the sm.properties file on the UCMDB server. To view or
edit the file in UCMDB, navigate to Data Flow Management > Adapter Management >
ServiceManagerAdapter9-x > Configuration Files > sm.properties.
Explanation
The code excerpt illustrates the relevant multi threading settings on the UCMDB server.
l Line 01 defines the number of parallel threads UCMDB will open to SM for CI push. Setting this
parameter to 1 disables multi-threading, while a values of 2 or higher enables multi-threading.
l Line 02 defines the minimum number of SM objects needed to use multiple threads as opposed to a
single thread.
l Line 03 defines the number of chunks per thread. This number multiplied by the number of threads
gives you the total number of CI data chunks.
The data passed from UCMDB to SM is divided into equal chunks, and these chunks are placed in a
queue.
Each available thread pulls the next chunk from the queue until all threads are available. Once this
process has completed, the push is complete.
The mechanism is designed to minimize idle time of each thread. As each thread processes its chunk in
parallel, some threads may finish before others and it is inefficient for them to wait for each other.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 91 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
It is ineffective to over-increase the number of threads as this causes the SM server to overload. In
enterprise environments where the SM server processing the push data is very robust the number
of threads can be increased to 10 and in some cases even 20; however, you must take into account
that increasing the number of threads raises CPU usage on the SM server during push, which may
reduce application performance.
60,000 number.of.concurent.sending.threads=6
min.objects.for.concurent.sending=50
number.of.chunks.per.thread=3
The push time (in hours) in any given environment is calculated as follows:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 92 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
For more information about defining multiple SM processes for the integration, see "How to Create an
Integration Point in UCMDB" on page 30.
The push time (in hours) in any given environment is calculated as follows:
Each CI and relationship record pushed from UCMDB to SM is analyzed against the existing SM records
and open Change requests. SM rules define the appropriate action to be taken for each type of CI data
update sent to SM.
2. Navigate to Tailoring > Web Services > Discovered Event Manager Rules.
4. Click on the individual CI Discovered Event Manager Rule to view its details.
Tip: When performing “Initial Loads”, HP recommends setting the SM Discovered Event Manager
Rules to add newly reported CIs as described below. This minimizes the “noise” of an Initial Load,
that could potentially create tens of thousands of Changes/Incidents.
For each of the Discovered Event Manager Rules, perform the following steps:
2. Go to the “Action if matching record does not exist” section, select the Add the record option.
3. In the “Action if record does not exist but unexpected data discovered” section, select the Log
Results and Update Record option.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 93 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
4. In the “Action if record is to be deleted” section, select the Delete Record option.
These loads send only updates regarding modifications discovered in the IT infrastructure from
UCMDB to SM.
2. Navigate to Tailoring > Web Services > Discovered Event Manager Rules.
4. For each of the Discovered Event Manager Rules, perform the following steps:
a. Select the relevant Discovered Event Manager Rule.
b. In the “Action if matching record does not exist” section, select the appropriate action required
for each newly detected CI. If uncertain, select the Add the record option.
c. In the “Action if record does exist but unexpected data discovered” section, select the
appropriate action for each CI that was modified, resulting in an unexpected or incorrect
result. The recommended best practice is to select the Open a Change option.
d. In the “Action if record is to be deleted” section, select the appropriate action required for
each CI that was removed/deleted. The recommended best practice is to select the Delete
Record option for CI Relationship, and select the Update record to the selected status option
for CI.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 94 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
A typical fault you may encounter is the duplicated logical name issue because of the different unique
key fields used in Universal CMDB and Service Manager: CI logical.name in Service Manager is unique,
and it usually maps to CI display label in Universal CMDB (which is not unique). HP recommends that you
follow the following guidelines (listed from highest to lowest priority) to resolve this issue:
l Make sure that each display label field value in UCMDB is unique;
l If uncertain of the above, in the adapter mapping configuration (XSLT file) avoid direct mapping
between Universal CMDB display label and SM logical name.
Note: Out-of-the-box, the SM logical name of Running Software is mapped with a prefix of DNS
name:
<xsl:for-each select="@display_label">
<CIIdentifier><xsl:value-of select="$fullDNSName"/>_
<xsl:value-of select="."/>
</CIIdentifier>
</xsl:for-each>
l If you cannot do any of the above, you can use the UCMDB Fault Detection and Recovery mechanism
together with the “Duplication Rule” setting of DEM rules (see the following).
2. Navigate to Tailoring > Web Services > Discovered Event Manager Rules > Duplication Rule tab.
3. For each of the Discovered Event Manager Rules, perform the following steps:
a. Go to the “Action if logical name is duplicated” section, and select the Return Error option.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 95 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
Note: After you run a push job, CIs with a duplicated logical name are reported as failed CIs
with a duplicated name exception. You can review the failed CIs in the Universal CMDB studio,
fix the errors by either changing the data in Universal CMDB or in the adapter mapping
configuration file (XSLT), and then re-push the failed CIs.
Note: LW-SSO is not supported for the Service Manager Windows client.
1. For each Service Manager user account that needs LW-SSO, create a user account in UCMDB with
the same username. The passwords in the two systems can be different.
2. Enable LW-SSO in the Service Manager Web tier. For details, see the Configure LW-SSO in the
Service Manager Web tier topic in the Service Manager help.
3. Enable LW-SSO in UCMDB. For details, see the HP Universal CMDB Deployment Guide.
l "Can I Analyze the Reason for a CI Deletion in SM" on the next page
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 96 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
l "How do I Keep the Outage Dependency Setting of a CI Relationship in SM" on page 101
l "How do I Use the Load Fields Button to Add Multiple Managed Fields" on page 109
l "What is the Purpose of the <container> Element in a Population XSLT File" on page 109
l "What will Happen if a Population Job Fails or Succeeds with Warnings" on page 111
n When a new CI is reported, the “Discovered Event Manager Rules” are set to “Open an Incident”
and the Incident has been closed.
n When a new CI is reported, the “Discovered Event Manager Rules” are set to “Open a Change” and
the Change has been verified.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 97 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
SM opens a change request on the deleted CI and includes the following information:
Workaround
An SM change request does not contain a description of the reason for deletion, however it is possible
to extract specific information about CI deletions from the UCMDB “History Database”. UCMDB data
provides information about the user or the discovery pattern that initiated the CI deletion.
l The second endpoint of the relationship has Changed, so instead of CI X being linked to CI Y through
a relationship, now CI X is related to CI Z.
The first type of Relationship change is supported by the UCMDB-SM integration, therefore, such
“Relationship Changes” can either invoke CI relationship updates, or perform the creation of Incidents
or Changes, which are then reviewed and monitored.
The second is also supported, but it is not covered out-of-the-box; you can configure the Universal
CMDB query to expose such attributes of the relationship, and configure the Service Manager WSDL to
expose the mapped field, and then configure the adapter mapping configuration in the XSLT. However
such “Relationship Attribute Changes” cannot perform the creation of Incidents or Changes, and only
supports invoking CI relationship updates directly.
l The relationship appears in a “Push Query” located in the “SM Sync” folder in the UCMDB Query
Manager.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 98 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
l The relationship is mapped to an appropriate target in SM in the UCMDB configuration files (XML and
XSLT files).
The out-of-the-box relationships that are pushed from UCMDB to SM are relationships between two CIs
such as:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 99 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
The “Virtual-Compound” relationship type is a relationship that links two CI type entities that have a
logical relationship. See the following figure:
Explanation
l You have done modeling in SM, especially when you are in the planning and design phases, and you
want your models to be reflected in UCMDB;
l You want to implement the UCMDB-SM integration, however you have already invested in your SM
CMDB and do not want to lose that investment;
l You want to continue to maintain some parts of the SM CMDB while maturing your UCMDB/Discovery
implementation.
Physical deletions of CIs are allowed in SM, but SM cannot get such “deletion changes” and the
population feature will not synchronize such changes to UCMDB.
Physical deletions of CIs can be considered as exceptions, which only occur after you create CIs by
mistake. Normally, you delete a CI by setting its status to something like “Disposed/Retired”. In case
such CIs have been populated to UCMDB, it is your responsibility to remove them manually from UCMDB.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 100 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
2. Navigate to Tailoring > Web Services > Discovered Event Manager Rules.
4. On the Rules tab, select Add the record, and set dependency as true.
This will set the Outage Dependency of each CI Relationship to true, and set the number of
dependent downstream CIs to 1 (because UCMDB only supports one-to-one relationships).
If you want to set outage dependency only for some relationships, for example, if you want to configure
outage dependency for relationships that starts from Business Service, you can configure the adapter
configuration file (XSLT) and WSDL definition; you can also configure outage dependency per
relationship type (UCMDB query).
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 101 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
2. In the XSLT file, set the exposed outage fields. For example, if you want to set the outage
dependency to true and threshold to 1 for Business Service relationships, you simply need to
change the mapping of query and XSLT in the smSyncConfFile.xml file:
</tql>
<xsl:template match="/relation">
<model>
<keys/>
<instance>
<ParentCI><xsl:value-of select="@parentID"/></ParentCI>
<ChildCIs>
<ChildCIs><xsl:value-of select="@childID"/></ChildCIs>
</ChildCIs>
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 102 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
<RelationshipType>Logical</RelationshipType>
<RelationshipSubtype><xsl:value-of
select="@friendlyType"/></RelationshipSubtype>
<OutageDependency>true</OutageDependency>
<OutageThreadhold>1</OutageThreadhold>
</instance>
</model>
</xsl:template>
</xsl:stylesheet>
5. Enter a name for the file. The file name should use this format: <AdapterID>/<filename>. For
example: ServiceManagerAdapter9-x/test_relation_population.xslt.
6. In the Package field, select the adapter name. For example, ServiceManagerAdapter9-x.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 103 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
9. Copy the content of an existing XSL transformation file to the new file. For example, for population
you can copy the content of an out-of-the-box population XSL transformation file.
When removing XSL elements from an XSLT file, keep in mind that the remaining XML should be a
valid XML file, which will be used to translate the UCMDB Query Definition. See the following for an
example.
<xsl:template match="/Retrievecirelationship1to1ListResponse">
<topology>
<xsl:for-each select="instance">
<xsl:choose>
<ci class="infrastructure_service">
<ci class="node">
<attribute name="sm_id"
type="String"><xsl:value-of select="downstreamci.id"/>
</attribute>
</ci>
</link>
</ci>
</xsl:when>
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 104 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
<ci class="business_application">
<ci class="node">
<attribute name="sm_id"
type="String"><xsl:value-of select="downstreamci.id"/>
</attribute>
</ci>
</link>
</ci>
</xsl:when>
<xsl:otherwise>
<ci class="business_service">
<ci class="node">
<attribute name="sm_id"
type="String"><xsl:value-of select="downstreamci.id"/>
</attribute>
</ci>
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 105 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
</link>
</ci>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</topology>
</xsl:template>
</xsl:stylesheet>
The file becomes an invalid XML file if you change it to the following:
<xsl:template match="/Retrievecirelationship1to1ListResponse">
<topology>
<xsl:for-each select="instance">
<xsl:choose>
<ci class="infrastructure_service">
</xsl:when>
<ci class="business_application">
</xsl:when>
<xsl:otherwise>
<ci class="business_service">
</xsl:otherwise>
</xsl:choose>
<ci class="node">
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 106 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
<attribute name="sm_id"
type="String"><xsl:value-of select=
"downstreamci.id"/></attribute>
</ci>
</link>
</ci>
</xsl:for-each>
</topology>
</xsl:template>
</xsl:stylesheet>
For your reference, the following are some samples of using XSLT functionalities in this integration.
<Type>switch</Type>
<Subtype>
<xsl:choose>
<xsl:when test="contains(@node_role,concat($prefix,'atm_switch',$suffix))">ATM
Switch</xsl:when>
<xsl:when test="contains(@node_role,concat($prefix,'frame_relay_
switch',$suffix))">Frame Relay Switch</xsl:when>
<xsl:when test="contains(@node_role,concat($prefix,'lan_switch',$suffix))">Lan
Switch</xsl:when>
<xsl:otherwise><xsl:value-of select="@friendlyType"/></xsl:otherwise>
</xsl:choose>
</Subtype>
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 107 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
<Building>
</Building>
<Floor>
<xsl:value-of select="substring-before(substring-after
($calculatedLocation,'Floor:'),' Building:')"/>
</Floor>
<Room>
<xsl:value-of select="substring-before(substring-after
($calculatedLocation,'Room:'),' Floor:')"/>
</Room>
<lists>
<list name="CIType_bizservice">
</list>
</lists>
<xsl:for-each select="$CIlists/list[@name='CIType_bizservice']">
<Subtype><xsl:value-of select="entry[@ucmdb=$CIT]/@sm"/></Subtype>
</xsl:for-each>
Tip: For more information about XSL transformations, visit the following site:
http://www.w3schools.com/xsl/
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 108 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
You can manually add managed fields that are exposed in associated WSDL definitions to DEM Rules;
however, you can use the Load Fields button to automatically (and therefore correctly) add managed
fields to DEM Rules.
3. If the table (in the Table Name field) of the DEM rule record has only one WSDL definition
associated to it, all fields exposed in the WSDL definition are immediately added to the Managed
Fields list.
A message displays: <XX> new fields loaded.
4. If the table has more than one WSDL definition associated to it, the Managed Fields Importing
wizard opens, and a list of WSDL definitions (ucmdbIntegration web service objects) is displayed.
a. Select one or more objects, and click Next.
b. All new fields that can be added from the selected web service objects are displayed.
c. If you want to add all of the fields, click Finish; if you want to ignore some of them, change
their Action value from Add to Ignore, and then click Finish.
A message displays: <XX> new fields loaded.
<ci class="node">
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 109 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
<linkRetrieveCondition>downstreamci.logical.name="<xsl:value-of
select="CIIdentifier"/>
"</linkRetrieveCondition>
<linkValueFields>upstreamci.logical.name</linkValueFields>
</container>
</ci>
</link>
l In UCMDB, RunningSoftware CIs must exist together with a Root Container (Node), however Service
Manager allows RunningSoftware CIs without a Node.
l The current integration adapter synchronizes CIs and Relationships separately; when populating a
RunningSoftware CI, the integration has no chance to check if a relationship exists between the CI
and a Node.
With the <container> element, the integration populates RunningSoftware CIs together with a
container.
Service Manager and UCMDB store CI information in different data structures, and therefore one SM CI
may be synchronized to UCMDB as several CIs. For example, during population, an SM computer CI record
is synchronized to a Node CI in UCMDB, and the computer CI’s attributes to CIs such as IP, Interface,
Location, etc (which are referred to as sub-items of the Node CI.). In this case, the Node CI is the root CI.
The integration allows you to populate sub-item deletions to UCMDB (for example, if you delete the IP
Address attribute value of a computer, the corresponding IP CI record in UCMDB will be deleted too). To
do so, you need to specify a root in the CI type’s population xslt file, using parameter isRoot="true". For
example, for Computer CIs, the “node” should be specifed as the root.
Out-of-the-box, only the computer_population.xslt file requires the “node” CI be specified as the root,
as shown below:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 110 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
The failure prevents the remaining population tasks from running. The next job run will start from the
last Success time. If pagination occurs (that is, the tasks are divided into multiple pages), the tasks will
run again and again within the first page from the last “Success” time (once the end of the first page is
reached, no new tasks will be executed).
A warning does not prevent the remaining population tasks from running. The next job run will run all
tasks again starting from the last Success time. If pagination occurs (the tasks are divided into multiple
pages), the tasks on all pages will be re-run (including those that were successfully completed last
time).
QCCR1E72246 [Population Adapter] Cannot populate In UCMDB, manually delete all CIs that were
deleted CIs in a full population. populated from SM by using appropriate
filter criteria and then run a full population.
While you run a full population, if
there are CIs that have been deleted Warning: You must be very careful when
since the last job run in Service using this workaround.
Manager, the deleted CIs in Service
Manager will not be populated to
UCMDB.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 111 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
QCCR1E72327 When you run a full population for the Not available at this time.
first time to synchronize a large
amount of CIs, if some of the CIs have
an invalid attribute value (for
example, IP address), the population
job will ignore such CIs and run to
completion with a Failed status and
with errors logged on the Job Errors
tab; In addition, the last job execution
time will not be logged because the
job is run for the first time but fails.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 112 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
QCCR1E84364 When “Run in Multi-Company Mode” is To solve this issue, manually update a
enabled in the System Information JavaScript:
Record in Service Manager (SM), the
UCMDB integration fails to create 1. Log in to Service Manager as a system
changes or incidents in SM because administrator.
the configuration item data
2. Go to Tailoring > Script Library, and
modification event fails. The following
open the discoveryEvent script.
error occurs:
QCCR1E72511 If you set the use.global.id Set the parameter to False to solve this
parameter in the adapter's issue.
sm.properties file to True, the
federation feature does not work. l When you deploy the adapter on the
UCMDB standalone server (which is
defined as a global-id generator by
default), globalId and ucmdbId are the
same thing. For this reason, setting this
parameter to false can meet all of your
needs satisfied by setting the
parameter to true.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 113 of 273
Universal CMDB Integration Guide
Chapter 4: Standards and Best Practices
QCCR1E72578 The data length of CI relationship Manually increase the data length in Service
name in Service Manager is 40 Manager:
characters, which is not sufficient for
Open the cirelationship table in Database
the integration. Installing this content
Dictionary, and increase the data length of
pack does not automatically increase
the relationship.name field from 40 to an
this data length in Service Manager.
appropriate value (recommended value:
If a CI relationship name exceeds the 300).
data length, either the relationship
name is truncated after push or the
relationship cannot be pushed to
Service Manager due to a duplicate
key error.
QCCR1E73004 Double quotes in UCMDB CI names (for Not available at this time.
example: "laptop - 003") are removed
when the CIs are synchronized to SM.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 114 of 273
Chapter 5: Tailoring the Integration
You can tailor the HP Universal CMDB integration to meet your business needs by adding or removing
managed CI types, attributes, and relationship types. This chapter describes the integration
architecture and tailoring options for data push, population, and federation.
Integration Architecture
Before you tailor the integration, you should understand how the following components of the out-of-
the-box integration work.
Integration queries
This section describes out-of-the-box queries used for data push, Actual State, and population.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 115 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
To access the out-of-the-box data push queries, navigate to Modeling > Modeling Studio, select
Queries for Resource Type, and then navigate to the Root > Integration > SM Sync > 9.xx folder.
If you want to change what CI/Relationship types or attributes are part of the integration, you must also
edit the integration queries to support your updated CI/CI Relationship types and attributes.
The query includes compound relationships because the relationships can extend
through a group.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 116 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
SM This query gathers CI attributes from the node CI type with NodeRole containing
Computer “desktop”, “server”, “virtualized_system” or not set.
Push
It also gathers related CI attributes from the following CI types through containers and
links: IPAddress, Interface, CPU, FileSystem, DiskDevice, and Location.
SM Switch This query gathers CI attributes from the node CI type with NodeRole containing “atm_
Push switch”, “frame_relay_switch”, or “lan_switch”.
It also gathers related CI attributes from the following CI types through containers and
links: IPAddress, Interface, CPU, FileSystem, DiskDevice, and Location.
SM Storage This query gathers CI attributes from the node CI type with NodeRole containing “san_
Push switch”, “san_gateway”, “san_router” or exact CI type equal to “storage Array”.
It also gathers related CI attributes from the following CI types through containers and
links: IPAddress, Interface, CPU, FileSystem, DiskDevice, and Location.
SM Net This query gathers CI attributes from the node CI type with NodeRole containing
Printer “printer”.
Push
It also gathers related CI attributes from the following CI types through containers and
links: IPAddress, Interface, CPU, FileSystem, DiskDevice, and Location.
SM This query gathers CI attributes from the node CI type with exact CI type equal to
Mainframe “Mainframe Logical Partition”, or “Mainframe CPC”.
Push
It also gathers related CI attributes from the following CI types through containers and
links: IPAddress, Interface, CPU, FileSystem, DiskDevice, and Location.
SM Mobile This query gathers CI attributes from the node CI type with NodeRole containing “pda_
Device handheld”.
Push
It also gathers related CI attributes from the following CI types through containers and
links: IPAddress, Interface, CPU, FileSystem, DiskDevice, and Location.
SM This query gathers CI attributes from the node CI type with NodeRole containing
Network “router”, “adsl_modem”, “appletalk_gateway”, “bandwith_manager”, “cable_model”,
Component “csu_dsu”, “ethernet”, “fddi”, “firewall”, “hub”, “kvm_switch”, “load_balancer”,
Push “multicast_enabled_router”, “nat_router”, “token_ring”, “undefined_network_
component”, “voice_gateway”, “voice_switch”, or “vpn_gateway”.
It also gathers related CI attributes from the following CI types through containers and
links: IPAddress, Interface, CPU, FileSystem, DiskDevice, and Location.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 117 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
SM Cluster This query gathers CI attributes from the node CI type with exact CI type equal to
Push “ClusterResourceGroup”.
It also gathers related CI attributes from the following CI types through containers and
links: IPAddress, Interface, CPU, FileSystem, DiskDevice, Location, and Cluster.
SM CRG This query gathers relationships between the following components: Node and Cluster
Relations Resource Group CIs.
Push
The query includes compound relationships because the relationships can extend
through a group.
SM Layer2 This query gathers relationships between the following components: Two or more
Topology nodes.
Relations
The query includes compound relationships because the relationships can extend
Push
through a group.
The queries are located in the Integration > SM Query folder in the UCMDB Modeling Studio.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 118 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
localPrinterExtendedData This query gathers real-time extended information from Printer CIs
in UCMDB.
SM Business Service This query defines the CI store structure of business service CIs.
Population
SM Computer To Computer This query defines the CI store structure of running software CIs.
With ConnectM Running
Software Population
SM Computer Population This query defines the CI store structure of computer CIs.
SM Biz To Biz With This query defines the CI store structure of CI relationships in which a
Containment bizservice CI contains another.
SM Biz To Biz With Usage This query defines the CI store structure of CI relationships in which a
bizservice CI uses another.
SM Biz To Computer With This query defines the CI store structure of CI relationships in which a
Containment bizservice CI contains a computer CI.
SM Biz To Computer With This query defines the CI store structure of CI relationships in which a
Usage bizservice CI uses a computer CI.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 119 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
SM Biz To Software With This query defines CI store structure of CI relationships in which a
Containment bizservice CI contains a RunningSoftware CI.
SM Biz To Software With This query defines CI store structure of CI relationships in which a
Usage bizservice CI uses a RunningSoftware CI.
SM Computer To Computer This query defines the CI store structure of CI relationships in which a
With Connects computer CI connects to another.
SM Computer To Software This query defines the CI store structure of CI relationships in which a
With Composition RunningSoftware CI is contained within a computer CI and the
RunningSoftware CI cannot exist without the container.
CLIP Down Time Population This query defines the CI store structure of ScheduledDowntime CIs.
CI To Down Time CI With This query defines the CI store structure of CI relationships in which a
Connection ScheduledDowntime CI connects to an affected CI.
Query Requirements
The integration requires that any custom queries you create meet certain formatting conditions. Any
queries that you want to include in the integration must meet these conditions:
l To query CIs, a query must contain one CI type labeled Root. The Root node is the main CI that the
UCMDB synchronizes. All other CIs are contained CIs of the Root CI.
l To query relationships, a query must contain one or more relationships labeled Root.
l A query must contain only the Root CI and CIs that are directly connected to it. The Root CI is always
the top node of the TQL hierarchy.
l If you only want the integration to synchronize specific CIs, you must configure the condition on the
query to filter such CIs.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 120 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Service Manager publishes several web services for use by the UCMDB-SM integration. The UCMDB
system uses the web services to map UCMDB CI types and CI attributes to web services objects the
Service Manager system recognizes. If you add UCMDB CI types or CI attributes that you want Service
Manager to manage, then you must update one or more of these web services to define them as web
services objects. See the Service Manager Web Services Guide for more information about publishing web
services.
Managed Fields
Note: Managed fields are used only for the data push feature.
A Service Manager managed field is a field where the system compares the CI attribute value in the
incoming UCMDB web services message to the value in a Service Manager CI record. If the values in the
web services message do not match those in the CI record, Service Manager runs a Discovery Event
Manager (DEM) rule to determine what action to take. The DEM rule determines which of the fields that
are published as web services objects are fields managed by the integration. Only value changes in
managed fields trigger the DEM rule.
Service Manager stores the list of managed fields in the ucmdbIntegration web service. The
ucmdbIntegration web service consists of a set of web services objects. Out-of-the-box, the integration
uses only part of them (see the Mappings between Service Manager web service objects, tables, and
DEM rules table), some of them (along with their relevant DEM Rules) have been deprecated (see the
Deprecated ucmdbIntegration web service objects for data push table), and some are used for
population or federation (see the ucmdbIntegration web service objects used for population or
federation table).
Mappings between Service Manager web service objects, tables, and DEM rules
This web service object Publishes fields from this table And uses this DEM rule ID
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 121 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
The following sections list the fields published as web services objects used for data push (see the
Mappings between Service Manager web service objects, tables, and DEM rules table) and indicate
whether they are managed fields in an out-of-the-box Service Manager system. You can use this
reference to determine if you need to publish a field as a web service object, and also if you need to
create a DEM rule for the object.
Service Manager publishes the following fields from the cirelationship table:
relationship.name RelationshipName
logical.name ParentCI
relationship.subtype RelationshipSubtype
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 122 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Service Manager publishes the following fields from the device table:
ucmdb.id UCMDBId
type Type
subtype Subtype
company CompanyId
product.version ProductVersion
vendor Vendor
version Version
id1 CIName
Service Manager publishes the following fields from the joinbizservice table:
ucmdb.id UCMDBId
type Type
subtype Subtype
company CustomerId
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 123 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
vendor ServiceProvider
id1 CIName
Service Manager publishes the following fields from the joinnode table:
ucmdb.id UCMDBId
type Type
subtype Subtype
company CustomerId
location Location
operating.system OS Yes
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 124 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
serial.no. SerialNo
vendor Vendor
cpu[cpu.id] CpuID
cpu[cpu.name] CpuName
cpu[cpu.clock.speed] CpuClockSpeed
file.system[mount.point] MountPoint
file.system[disk.type] DiskType
file.system[file.system.type] FilesystemType
file.system[disk.size] DiskSize
asset.tag AssetTag
disk.device[model.name] ModelName
disk.device[disk.vendor] DiskVendor
disk.device[disk.name] DiskName
id1 CIName
isVisualization IsVisualization
istatus AssetStatus
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 125 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
every push of CI attributes from your UCMDB system. The integration uses the following workflow to
match UCMDB CIs with Service Manager CIs.
1. The UCMDB system sends a web service message to Service Manager containing the latest CI
attribute data.
2. Service Manager scans the web service message for the CI ucmdb.id value.
Note: Out-of-the-box, Service Manager does not display the ucmdb.id field on CI record forms
to prevent users from changing the value. If you want to add this value to your forms, you can
find the ucmdb.id field defined in the device table. HP recommends that you make this a read-
only field.
3. Service Manager searches for an existing CI record that has the same ucmdb.id value.
4. If Service Manager finds a CI with a matching ucmdb.id value, no reconciliation is needed. Service
Manager compares the UCMDB CI attributes to the Service Manager managed fields and runs the
appropriate Discovery Event Manager (DEM) rules as needed.
5. If Service Manager cannot find a CI with a matching ucmdb.id value, it runs the reconciliation rules.
6. Service Manager searches for an existing CI record with the same reconciliation field values.
7. If Service Manager finds a CI with a matching reconciliation field value, it updates the CI record with
the ucmdb.id value of matching UCMDB CI. Service Manager compares the UCMDB CI attributes to
the Service Manager managed fields and runs the appropriate DEM rule as needed.
8. If Service Manager cannot find a CI with a matching reconciliation field value, it runs the DEM rule
for “Action if matching record does not exist.” Out-of-the-box, the DEM rule has Service Manager
create a new CI record. Service Manager creates the CI record using the ucmdb.id value of incoming
UCMDB CI.
Performance Implications
Because Service Manager attempts to reconcile CIs with every push, the number of reconciliation fields
you have will affect the integration’s performance. The more reconciliation rules you have, the more
searches Service Manager must perform to match CIs. To improve the performance of reconciliation
searches, you should choose reconciliation fields that are unique keys of the underlying Service
Manager table. For example, if you want to reconcile CI records in the device table, use the logical.name
field as a reconciliation field because it is a unique key. See "How to Add DEM Reconciliation Rules" on
page 135 to create a reconciliation rule.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 126 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
l "Change the Action the DEM Rule Takes" on the next page
l "Update the List of Managed Fields for a CI Type" on the next page
l "Create Custom JavaScript to Open Change or Incident Records" on the next page
You can update a DEM rule's condition statements if you want to restrict when Service Manager runs
your DEM rules. For example, adding the following condition to the ucmdbNode DEM rule restricts the
rule to desktop CIs.
subtype in $L.file=”Desktop”
You can also use the condition field to create multiple DEM rules that apply to the same table name. For
example, the following DEM rules both apply to the joinnode table.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 127 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Typically, you will only need to add conditions if your business processes require the integration to take
different actions with certain CI types or SLAs.
l Add a CI record when the UCMDB data does not match an existing Service Manager CI record
l Open a Change or log results and update a CI record when the UCMDB CI attribute data does not
match the CI attribute data in the Service Manager CI record
l Delete a CI record when the UCMDB data specifies that the CI has been deleted
You can change the integration DEM rules to meet your business processes. For example, you could use
the ucmdbNode DEM rule to open a change when the integration finds a non-desktop CI with
unexpected data, and use the ucmdbDesktop DEM rule to log results and update the record when the
integration finds a desktop CI with unexpected data.
Caution: If you want to use the Change Management verification and Change Management
validation features of the integration, your DEM rules must use the Open a Change option for the
“Action if record exists but unexpected data discovered” event.
You can update the createCIName and populateNewCI functions to set the following CI values.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 128 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
record.assignment AUTO
record.istatus Installed
You can update the populateChange function to set the following change values.
change.initial_impact 3
change.severity 3
change.coordinator Change.Coordinator
change.requested_by discovery
change.status initial
You can update the populateIncident function to set the following incident values.
incident.category incident
incident.subcategory hardware
incident.assignment Hardware
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 129 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
incident.initial_impact 3
incident.severity 3
incident.logical.name Value of id
incident.site_cateogry C
incident.affected_item MyDevices
l "How to Update the Integration Adapter Configuration File (sm.properties)" on the next page
l "How to Add a CI Attribute to the Integration for Data Push" on page 142
l "How to Add a CI Type to the Integration for Data Push" on page 157
l "How to Add a CI Type’s Relationship Types to the Integration for Data Push" on page 184
l "How to Add a CI Type’s Relationship Types to the Integration for Population" on page 210
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 130 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
2. Navigate to Data Flow Management > Adapter Management > ServiceManagerAdapter9-x >
Configuration Files.
4. Update the parameter values as needed. For a list of the parameters, see the following table.
Parameters in the sm.properties file
Parameter Default value Comment
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 131 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
n 1: Disabled
n 2 or higher: Enabled
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 132 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 133 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
n on: Enabled.
n off: Disabled.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 134 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 135 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Service Manager always attempts to reconcile CI records based on the unique key field of the Service
Manager table and the ucmdb.id field. You can specify additional fields to reconcile on from the DEM
Reconciliation Rules form. If Service Manager finds a matching value in any one of these fields, it
updates the Service Manager CI record with the attributes from the incoming UCMDB record.
When multi-tenancy is enabled, Service Manager only reconciles the CIs whose company ID matches the
company ID in the data push job. For example, when pushing CIs from company 2, the reconciliation rules
only apply to the Service Manager CI records that have the company code corresponding to company
number 2.
In order to specify reconciliation fields, you will need to be familiar with the table and field names in
both your Service Manager and UCMDB systems. If you want to reconcile on a particular attribute from
the UCMDB system, you should verify that there is a corresponding Service Manager managed field for
the attribute. Without such a mapping, Service Manager will not know to search for matching values in
the CI record.
Note: Not all UCMDB attributes have a corresponding field in Service Manager. You may need to
tailor your Service Manager system to add a matching field if one does not already exist.
When setting reconciliation rules, if the device type you are reconciling has a joindef definition (as
defined in the devtype table), use the join table name instead of the device table. For example, if you
want to reconcile computer CIs, use the joincomputer table instead of the device table.
Sequence of reconciliation
A reconciliation rule specifies what Service Manager table and field you want to search for matching CI
values. It also specifies the sequence in which you want Service Manager to process reconciliation rules.
By default, Service Manager processes rules in alphabetical order by field name. For example, Service
Manager will reconcile CIs against the asset.tag field before reconciling CIs on the ci.name field.
To change the order in which Service Manager reconciles CIs, you can add a numeric value to the
sequence field. For example, the following reconciliation rules ensure that Service Manager processes
CIs by the ci.name field prior to reconciling them against the asset.tag field.
joincomputer ci.name 1
joincomputer asset.tag 2
A Discovery Event Manager (DEM) reconciliation rule allows you to specify which Service Manager fields
you want to use to determine if an existing CI record matches a CI in a UCMDB system. An administrator
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 136 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
typically specifies reconciliation rules prior to starting UCMDB data push jobs so that Service Manager
will not create duplicate CI records.
2. Navigate to Tailoring > Web Services > DEM Reconciliation Rules. Service Manager displays the
DEM Reconcile Record form.
3. In Table Name, type the name of the Service Manager table containing the field you want to
reconcile on.
4. In Field Name, type the name of the Service Manager field containing the values you want to
reconcile on.
5. In Sequence, type a number to specify what order you want Service Manager to run this rule.
Note: If you do not specify a sequence value, Service Manager will process field names
alphabetically.
For CI records only, the DEM rules also allow you to define how Service Manager should handle
duplicated logical names.
l "Searching for Change and Incident Records Opened by the Integration" on page 142
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 137 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
DEM Rules
Service Manager offers the following rules options:
This is the action you want Service Manager to take if it cannot find a matching CI record.
l Add the record:(Default) Service Manager will add a CI record when it cannot find a matching record.
See "How to Add DEM Reconciliation Rules" on page 135 to define what fields Service Manager uses
to match CI records.
l Add the record, and set dependency as true: This option is available only for synchronization of CI
relationship data. Service Manager adds the CI relationship record and enables outage dependency
for the record by doing the following:
n Checks the Outage Dependency check box;
n Sets the number of dependent downstream CIs to 1. This is because UCMDB only supports one-
to-one CI relationships.
l Open an Incident:Service Manager opens an incident for someone to review the new CI record. The
incident enables someone to investigate whether the new CI record is compliant with your business
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 138 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
practices.
l Open a Change:Service Manager opens an unplanned change for someone to review the new CI
record. The change allows you to investigate whether the new CI record is compliant with your
business practices. If the CI record is compliant, the change can be approved. If the CI record is not
compliant, then the change can be denied and the CI record removed. The change record lists both
the current and proposed attribute values.
This is the action you want Service Manager to perform if it does not find a matching CI attribute value.
l Open a Change: (Default) Service Manager opens an unplanned change to review the actual state of
the CI record. The change allows someone to investigate whether the new attribute value is
compliant with your business practices. If the value is compliant, the change can be approved. If the
value is not compliant, then the change can be denied and the CI attribute value reverted to its
managed state.
l Log Results and update record:Service Manager logs the results of the actual state of the CI record,
and then updates the CI record.
l Open an Incident:Service Manager opens an Incident to investigate the actual state of a CI record
and determines what actions must be performed or initiated to bring the record into compliance
with Service Manager.
This is the action you want Service Manager to perform if an external event specifies that the record
needs to be deleted.
l Delete record: (Default for CI Relationship records) This option is available for synchronization of
both CI and CI Relationship records. Service Manager automatically deletes the CI/CI Relationship
record.
l Open an Incident: This option is available only for synchronization of CI Relationship records. Service
Manager opens an incident to investigate the deleted record and determines which actions must be
performed or initiated to bring the record into compliance with Service Manager.
l Open a Change: This option is available only for synchronization of CI Relationship records. Service
Manager opens an unplanned change to review the deleted record. The change allows someone to
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 139 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
investigate whether the deleted record is compliant with your business practices. If the record is
compliant, the change can be approved. If the record is not compliant, then the change can be
denied and the record added back to the system.
l Update record to the selected status: (Default for CI records) This option is available only for
synchronization of CI records. Service Manager updates the status of the CI record to a value
selected from the drop-down list (for example, Retired/Consumed), rather than delete the record
permanently.
Note: Values available from the drop-down list are defined in the ICM Status global list.
l Open a Change to update record to the selected status: This option is available only for
synchronization of CI records. Service Manager opens an unplanned change to update the CI record’s
status to a value selected from the drop-down list (for example, Retired/Consumed). The change
allows someone to investigate whether the requested status change is compliant with your business
practices. Once the change has been approved and closed, Service Manager automatically changes
the CI record to the selected status. If the change has been denied, Service Manager makes no
changes to the CI record.
l Open an Incident to update record to the selected status: This option is available only for
synchronization of CI records. Service Manager opens an incident to update the record’s status to a
value selected from the drop-down list (for example, Retired/Consumed). Once the incident has
been closed, Service Manager automatically updates the CI record to the selected status.
Duplication Rules
UCMDB may create two completely separate yet legit CI records that happen to have the same “name”.
The UCMDB name field is mapped to the logical.name field (which must be unique) in Service Manager.
Pushing the two CI records to Service Manager would cause a duplicate logical name problem. You have
several ways to avoid this problem. See the following table.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 140 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
UCMDB Change the names directly in UCMDB or change the UCMDB reconciliation rule to make
sure the names are not the same.
In the integration adapter mapping configuration (xslt) file, avoid mapping the UCMDB
name field to the SM logical name field directly in either of these ways:
l Map another UCMDB unique attribute to the SM logical.name field, and map the UCMDB
name field to another SM field;
by their underlying MACs. You can configure their “SM logical name” to be “<MAC> +
<name>”.
n UCMDB databases often have the same name (due to the implementation of
clusters and Oracle RACs). You can configure their “SM logic name” to be “<full DNS
name> + <name>”.
Service Use the duplication rule options in DEM Rules in Service Manager.
Manager
Service Manager offers the following duplication rule options on the Duplication Rule tab in each DEM
rule with a Table Name other than “cirelationship”:
l Action if logical name is duplicated (CI with different uCMDB ID): This is the action you want
Service Manager to perform if the logical name is already used by another CI record when a CI record
is added or updated.
n Rename to <name>_[RENAMED]_1/2/3: (Default) Service Manager changes the logical name by
adding a suffix.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 141 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
defined a rule in the Discovery Event Manager to create a change or incident record when a CI is added,
updated, or deleted.
Both the Change Details and CMDB Changes sections display the current CI attribute values alongside
the actual attribute values discovered by UCMDB. You can use this information to approve or deny a
change or escalate an incident to the proper assignment group.
Incident Search for records using the generated by the UCMDB integration option.
No. Go to Step 2.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 142 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
The following steps illustrate how to add a new CI attribute to an existing CI type. This scenario is not
the expected typical case. Typically, you would add an existing CI attribute to the integration.
Note: The integration does not require any special steps to add a CI attribute to the UCMDB class
model. You can use the standard CI attribute creation procedures to add a CI attribute. For more
information on CI attribute creation, see the HP Universal CMDB CI Attribute Customization Guide.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 143 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
3. Select the CI type to which you want to add a new CI attribute from the CI Types navigation tree.
For example, ConfigurationItem > InfrastructureElement > RunningSoftware > Database.
6. In Attribute Name, type the unique name you want to use for the new CI attribute. For example,
database_owner.
Caution: The name cannot include any of the following characters: ‘ / \ [ ] : | < > +
= ; , ? *.
7. In Display Name, type the name you want UCMDB to display in the interface. For example,
Database Owner.
8. In Description, type a description of the new CI attribute. This is an optional field. For example,
System user who owns the database.
9. In Attribute Type, select either Primitive or Enumeration/List. For example, select Primitive and
select string.
10. In Value Size, type the maximum character length the attribute can have. For example, 300.
11. In Default Value, type the value to be used when no other value is available. For example, leave the
default value blank.
13. Click the Save button to save attribute changes to the CI type.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 144 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Keep a list of the attributes that you enable, because you will need to create a matching XSL
transformation for each attribute you enable.
4. From the Queries navigation tree, click Integration > SM Sync > 9.xx.
5. Select the query that manages the CI type whose attributes you want to add to the integration. For
example, SM Computer Push. UCMDB displays the TQL graph for the integration query.
6. Select the node from the query layout that contains the CI attribute you want to add to the
integration. For example, Root.
7. Right-click the node and select Query Node Properties. The Query Node Properties window opens.
9. Select the CI attribute you want to include in the integration from the Available Attributes list, and
click the Add button to add it to Specific Attributes list. For example, OsVendor.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 145 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 146 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
The following steps illustrate how to add a new CI attribute to an existing CI type.
The integration does not require any special steps to add a CI attribute to the Service Manager table.
You can use the standard table attribute creation procedures to add a CI attribute. For more
information on table attribute creation, see the Service Manager help and Service Manager Tailoring
Best Practices Guide.
3. In File Name, type the name of the table where you want to add the new CI attribute. For example,
node.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 147 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
7. In Name, type the name you want to use for the new CI attribute. For example,
os.manufacturer.
Caution: The name cannot include any of the following characters: ' / \ [ ] : | < > +
= ; , ? *.
8. In Type, select a type from the list. For example, select character.
If you add a CI attribute to the integration on your UCMDB system, you must create a corresponding web
service field on your Service Manager system to receive the incoming CI data from UCMDB. Each web
service field must map to a valid Service Manager table and column.
To create a web service field for the OSVendor attribute described in previous sections:
2. Navigate to Tailoring > Web Services > WSDL Configuration. The External Access Definition form
opens.
4. Click Search. Service Manager displays a record list of the objects that make up the
ucmdbIntegration web service.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 148 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
5. Select an existing web service object to which you want to add the CI attribute. For example, select
ucmdbNode.
6. Click the Fields tab. Service Manager displays the fields published as web service fields.
8. For Field, select the Service Manager column name where you want to store the incoming CI
attribute values. For example, os.manufacturer.
Note: Service Manager displays the fields from all join tables associated with the table listed
in the Name field. For example, for joinnode Service Manager displays the fields from the
device and node tables.
9. For Caption, type the name you want Service Manager to use when publishing the field as a web
service field. For example, OSVendor.
Caution: The Caption name must match the object name you listed in the XSL transformation
file in Universal CMDB, or Service Manager will not receive any CI updates from your Universal
CMDB system.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 149 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
2. Navigate to Tailoring > Web Services > Discovered Event Manager Rules. Service Manager
displays a record search/creation form.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 150 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
4. Select the rule ID that matches the web services object where you mapped the incoming CI
attribute. For example, ucmdbNode. See "How to Create a Web Service Field to Support the CI
Attribute" on page 148.
Service Manager displays the rules for this web service object.
5. Click the Managed Fields tab. Service Manager displays the list of fields that trigger Change
Management validation and verification.
7. For Field Name, select the caption name of the Service Manager column that you previously
selected to store the incoming CI attribute values. For example, Os Manufacturer.
Note: Service Manager displays the fields from all join tables associated with the table listed
in the Table Name field. For example, joinnode displays fields from the device and computer
tables.
Tip: If you want to add all fields that are exposed in the WSDL definition, you can click the Load
Fields button. For more information, see "How do I Use the Load Fields Button to Add Multiple
Managed Fields" on page 109.
8. If the field you use to store the incoming CI attribute is an array of structure, use the Structure
field to select the name of the array of structure where the column can be found. For example, Os
Manufacturer is a primitive character field and therefore does not need to identify an array of
structure name.
9. If the field you use to store the incoming CI attribute is an array of structure, use the Index field to
select the index number that identifies the column in the array of structure. For example, Os
Manufacturer is a primitive character field and therefore does not need to identify an array of
structure index.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 151 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Out-of-the-box, each integration query has a corresponding XSL transformation file that maps to a
particular CI type in UCMDB. In addition, each attribute for which you enabled calculation requires its
own entry in the XSL transformation file. Without an XSL transformation entry, Service Manager cannot
receive any CI attribute updates from your UCMDB system.
If you want to add a new attribute to the integration, you must edit the XSL transformation file for the
parent CI type and add an entry for the CI attribute. For information about which CI types each query
manages, see "Queries for Push" on page 116. In order to create a proper XSL mapping, you must be
familiar with the service and object names Service Manager publishes as web services. For information
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 152 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
on publishing tables and columns as web service objects, see the Service Manager Web Services Guide
available from the Service Manager help.
The following steps illustrate how to map a UCMDB CI attribute called host_vendor to a Service Manager
web service object called OSVendor.
2. Navigate to Data Flow Management > Adapter Management > ServiceManagerAdapter9-x >
Configuration Files.
3. Double-click the XSL transformation file that manages the parent CI type of your CI attribute. For
example, open computer_push.xslt to add an attribute to the SM Computer Push query.
4. Find the element that defines the Service Manager table name where the integration will store CI
attribute values. For example, the element <file.device> will store CI attributes in the Service
Manager device table.
5. Within the table naming element (<file.device>), you will see an element of the following format
that defines how to transform each UCMDB CI attribute into a web service object:
<xsl:for-each select="@CI_attribute_name">
<SMAttributeName><xsl:value-of select="."/></SMAttributeName>
</xsl:for-each>
SMAttributeName is the name of a web service attribute published by the Service Manager
system.
CI attributes in the computer_push.xslt XSL transformation file are illustrated in the following
screenshot:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 153 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 154 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Matching CI attributes in the ucmdbNode web service are illustrated in the following screenshot:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 155 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
7. Paste the new XSL transformation element within the proper table naming element. For example,
<file.node>.
8. Update the CI attribute name and web service object name within the new element to match the
attribute you want to add to the integration. For example, create the following XSL transformation
element to add an attribute to the integration.
<xsl:for-each select="@os_vendor">
<OSVendor><xsl:value-of select="."/></OSVendor>
</xsl:for-each>
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 156 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
New attribute in the computer_push.xslt XSL transformation file is illustrated in the following
screenshot:
Note: When you create/edit and then save a configuration file in Adapter Management,
UCMDB automatically restarts the adapter with the new configuration file.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 157 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
No. Go to Step 2.
The following steps illustrate how to create a new CI type called SM RDBMS based on an existing CI type
called database.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 158 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Note: The integration does not require any special steps to add a CI type to the UCMDB class model.
You can use the standard CI type creation procedures to add a CI type. For more information on CI
type creation, see the HP Universal CMDB CI Attribute Customization Guide.
3. Select the base CI type you want to use for your new CI type from the CI Types navigation tree:
Managed Object > ConfigurationItem > Infrastructure Element > Running Software > Database.
5. In Name, type the unique name you want to use for the new CI type. For example, sm_rdbms.
Caution: The name cannot include any of the following characters: ‘ / \ [ ] : | < > +
= ; , ? *.
6. In Display Name, type the name you want UCMDB to display in the interface. For example, SM
RDBMS.
7. In Description, type a description of the new CI type. This is an optional field. For example, Hosts
running relational databases.
8. In Base CI Type, verify that the proper base CI type is selected. Your new CI type will inherit the
attributes of the base CI type you select here. For example, Database.
9. Click Next. The wizard displays a list of CI attributes from the base CI type.
10. Add, edit, or remove CI attributes as needed for the new CI type. For example, accept the default
attributes inherited from Database.
11. Click Next. The wizard displays a list of qualifiers from the base CI type.
12. Add or remove qualifiers as needed for the new CI type. For example, accept the default qualifiers.
13. Click Next. The wizard displays a list of icons associated with the CI type.
14. Select the icons associated with this CI type. For example, accept the default abstract class icon.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 159 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
15. Click Next to add any menu item properties or label definitions as needed. For example, accept the
default settings from the base CI type.
17. Select your new CI type from the tree. For example, SM RDBMS.
18. Browse to an existing CI type you want to link to, and control-click it to add it to your selection. For
example, Node.
Note: Choose an existing CI type that has the attributes that you want to be part of your new
logical CI type.
19. Right-click one of the selected CI types, and click Add/Remove Relationship. The Relationships
window opens.
20. Create an SM Link relationship from the existing CI type to the new CI type. For example, from Node
to SM RDBMS.
Note: You need to create a new SM Link relationship if it does not exist.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 160 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
The following steps illustrate how to create a new query called rdbmsData for the SM RDBMS CI type
described in previous sections.
5. Find the CI type that will be the root node of your query from the CI Type Selector. This CI type is
typically the one that provides the most attributes for the CI. For example, Managed Object >
ConfigurationItem > InfrastructureElement > RunningSoftware > Database > SM RDBMS.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 161 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
6. Drag the root CI type from the CI Type Selector and drop it into the empty Editing pane. UCMDB
displays the icon of the CI type.
7. Select the CI type, and click Edit from the Information Pane. The Node properties window opens.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 162 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
10. Find any additional CI types you want to add to the query from the CI Type Selector. These CI types
typically provide additional CI attributes. For example, Managed Object > ConfigurationItem >
Infrastructure Element > Node.
11. Drag the additional CI type from the CI Type Selector and drop it into the empty Editing pane.
UCMDB displays the icon of the additional CI type.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 163 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
12. Create relationships between the Root CI type and the additional CI types as needed. For example,
create an SM Link between Root and Node.
a. Select Root and control-click the additional CI type. For example, Node.
b. Right-click one of the selected items, and click Add Relationship. The Add Relationship window
opens.
c. Select SM Link.
13. Repeat step 10 to step 12 for each additional CI type you want to add to the query. For example,
SM RDBMS does not need any additional CI types.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 164 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
15. In Query Name, type the unique name you want to use for the new query. For example,
rdbmsData.
16. In Description, type a description of the new query. This is an optional field. For example, Query
for hosts running relational databases.
17. In the folder tree, select the folder in which you want to save the query. For example, Root >
Integration > SM Sync.
18. Click OK. UCMDB adds your new query to the Queries list.
Tip: Keep a list of the attributes that you enable, because you will need to create a matching XSL
transformation for each one.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 165 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
The following steps illustrate how to enable calculation for attributes of the SM RDBMS CI type
described in previous sections.
4. Select the query that manages the CI type whose attributes you want to add to the integration. For
example, rdbmsData. UCMDB displays the query for the integration.
5. Select the Root node from the query layout, and then click the Edit button from the Information
Pane. The Node properties window opens.
Caution: Your integration query must contain a node called Root. See "Query Requirements"
on page 120 for more information.
6. Click the Element Layout tab, and select the option Select attributes for layout.
7. Select Specific Attributes from the Attributes condition list, and from the Available Attributes list
select each CI attribute you want to add to the Specific Attributes list. For example, select the
Product Name, Application Version Description, Vendor, Version, Description, The Database
Instance Name, and Port attributes.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 166 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
9. Select any additional nodes that contain CI attributes you want to add to the integration. For
example, Node.
10. Click the Edit button from the Information Pane. The Node properties window opens.
11. Click Element Layout tab, and select the option Select attributes for layout.
12. Select Specific Attributes in Attributes condition, and from the Available Attributes list select each
CI attribute you want to add to the Specific Attributes list. For example, select attributes for the OS
Vendor, and name attributes.
14. Repeat step 9 to step 13 for each additional node that contains CI attributes that you want to add
to the integration.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 167 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
The integration does not require any special steps to add a CI type to Service Manager. You can use the
standard CI type creation procedures to add a CI type. For more information on CI type creation, see the
HP Service Manager online help.
1. Create a table for storing the specific attributes of this new CI type.
3. Create an erddef definition that defines a relationship between the two tables.
4. Create a view form and a bulk update form for the new CI type.
The following steps illustrate how to create a new CI type called RDBMS.
Note: This example is provided only as an illustration of the steps. The best practice is to reuse the
existing Service Manager CI type RunningSoftware to map with UCMDB CI type SM RDBMS.
3. In File Name, type the table name you want to add. For example, rdbms.
6. Click the New Field/Key button. The Add Field window opens.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 168 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
7. In Name, type a field name you want to add. For example, logical.name, which is mandatory for
joining the device table.
Caution: The name cannot include any of the following characters: ' / \ [ ] : | < > +
= ; , ? *.
8. In Type, select a type from the list. For example, select character.
10. Repeat step 7 to step 9 for each attribute you wish to add. For example, dbinstance and port.
12. Place the cursor on the first line of the structure, and click the New Field/Key button. The Add Key
window opens.
14. In Fields list, type the name of a field that you want to use as the unique key. For example,
logical.name.
5. In Join Table Name, type a name for the join definition. For example, joinRDBMS.
6. In File Names, select the names of the tables to join. For example, device and rdbms.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 169 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
5. In First Filename, type the name of the first table of the join definition. For example, device.
6. In Second Filename, type the name of the second table of the join definition. For example, rdbms.
7. In Relationship type, select a value from the list. For example, One to One.
8. In Field Names from First Filename, add the unique field name of first table. For example,
logical.name.
9. In Field Names from Second Filename, add the unique field name of the second table. For example,
logical.name.
Create a view form named configurationItemRDBMS, and a bulk update form named
device.rdbms.bulkupdate.
You can create them in Forms Designer based on existing view forms and bulk update forms. To view
the form names of an existing CI type in Service Manager, click Configuration Management > Resources
> Device Types > Search, and then open the CI type record.
To access Forms Designer in Service Manager, type fd in the command line or go to Tailoring > Forms
Designer.
For more information about creating forms in Service Manager, see the Service Manager online help
and the Tailoring Best Practices Guide.
2. Navigate to Configuration Management > Administration > Add New Device Type, and click Next.
3. In Device Type Name, type a descriptive name for the new CI type. For example, RDBMS.
4. In Device Type, type a name for the new CI type. For example, rdbms.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 170 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
5. Click Next.
6. In View Form, type the name of the view form you created for the new CI type. For example,
configurationItemRDBMS.
7. In Bulk Update Form, type the name of the bulk update form you created for the new CI type. For
example, device.rdbms.bulkupdate.
8. Click Next.
9. In Attribute File, select the table you created for the CI type. For example, rdbms.
11. Click Next to keep the default setting for Fields Specific to the Attribute File.
12. In Join Def Record, select the join definition you created for this CI type. For example, joinRDBMS.
14. In Subtypes, add necessary subtypes for the CI type. For example, Oracle and SQL Server.
The following steps illustrate how to create a web service object necessary to support the SM RDBMS CI
type described in previous sections.
Note: This example of creating a new web service object (ucmdbRDBMS) is provided only as an
illustration of the steps. The best practice is to reuse the existing Service Manager web service
object ucmdbRunningSoftware to map with Universal CMDB CI type SM RDBMS.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 171 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
4. In Name, select the name of the join file you have created for the new CI type. For example,
joinRDBMS.
6. Click the Allowed Actions tab, and specify the actions as shown in the following figure.
Caution: For UCMDB integration WSDL configurations, be sure to use the “Create only” action
type for the “add” and “save” actions, and “Application Pass Through” for the “delete” action.
For more information about the action types, see the Service Manager Web Services Guide.
8. Click the Fields tab, select fields from the list and type a caption for each of them, as shown in the
following figure.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 172 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
The following steps illustrate how to add the managed fields for the SM RDBMS CI type described in the
previous sections.
2. Navigate to Tailoring > Web Services > Discovered Event Manager Rules.
3. In ID, type the ID you want to create for the new Discovered Event Manager Rule. For example,
ucmdbRDBMS.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 173 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
4. In Table Name, select the table or join definition you want to associate to the new Discovered Event
Manager Rule. For example, joinRDBMS.
5. Click New.
6. Click Next.
Note: The list of fields you will add here will trigger Change Management validation and
verification.
9. For Field Name, select the caption names of the Service Manager fields that you previously
selected to store the incoming CI attribute values. See "How to Create Web Service Fields to
Support the CI Type" on page 171.
Note: Service Manager displays the fields from all join tables associated with the table
specified in the Table Name field. For example, for the joinRDBMS table, the fields from the
device and rdbms tables are available from the Field Name list.
Tip: If you want to add all fields that are exposed in the WSDL definition, you can click the Load
Fields button. For more information, see "How do I Use the Load Fields Button to Add Multiple
Managed Fields" on page 109.
10. If the field you use to store the incoming CI attribute is an array of structure, use the Structure
field to select the name of the array of structure where the column can be found. For example,
Vendor is a primitive character field and therefore does not need to identify an array of structure
name.
11. If the field you use to store the incoming CI attribute is an array of structure, use the Index field to
select the index number that identifies the column in the array of structure. For example, Vendor is
a primitive character field and therefore does not need to identify an array of structure index.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 174 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
The following steps illustrate mapping the query rdbmsData described in previous sections to the
Service ManagerucmdbRDBMS web service.
When adding a query name in the smSyncConfFile.xml file, you can use a wildcard (an asterisk) in
the query name. This is helpful in the debugging phase when you may have updated an out-of-the-
box query and saved it as several query names. For example, if you have saved the <Query_name>
query to <Query_name>_1, and <Query_name>_2, you can specify the query name as <Query_
name>* in the configuration file, and the integration will automatically use this mapping entry on
all of the three queries.
Note: Out-of-the-box, all query names in the smSyncConfFile.xml file are suffixed with a wildcard
(an asterisk).
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 175 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
2. Navigate to Data Flow Management > Adapter Management > ServiceManagerAdapter9-x >
Configuration Files.
4. Add a query mapping element to the file by copying an existing one. A query mapping element uses
the following format:
</tql>
XSL_File is the name of the XSL transformation file the integration will use to map Universal
CMDB attributes to Service Manager web service fields.
Create_web_service is the name of the Service Manager web service you want to the integration
to use to create CIs from this query.
Update_web_service is the name of the Service Manager web service you want to the integration
to use to update CIs in this query.
Delete_web_service is the name of the Service Manager web service you want to the integration
to use to delete CIs from this query.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 176 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
5. Add or update query mapping elements for each query you want to add to the integration. For
example, the following query creates a mapping between the rdbmsData query and the rdbms_
push.xslt file.
</tql>
Note: When you create/edit and then save a configuration file in Adapter Management,
UCMDB automatically restarts the adapter with the new configuration file.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 177 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
services messages. Out-of-the-box, each integration query has a corresponding XSL transformation file.
In addition, each attribute you enable for synchronization from Advanced layout settings requires its
own entry in the XSL transformation file.
If you want to add a CI type to the integration, you must create a matching XSL transformation file that
defines how the Service Manager Adapter transforms each CI type into a Service Manager web service
object. See "Integration queries" on page 115 for information about which CI types each query manages.
In order to create a proper XSL mapping, you must be familiar with the service and object names Service
Manager publishes as Web services. See the Service Manager help for information on publishing tables
and columns as Web service objects.
The following steps illustrate creating an XSL transformation file for the rdbmsData query described in
previous sections.
7. Copy the content of an existing XSL transformation file (for example, runningsoftware_
push.xslt) to the new XSL transformation file.
8. Find the CI type definition element in the new file. The CI type definition element uses the following
format:
<xsl:template match="/CI_type_name">
<xsl:template match="/running_software">
9. Update the CI type name to match the CI type you want to add to the integration. For example,
create the following CI type definition element to add the database CI type to the integration.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 178 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
<xsl:template match="/sm_rdbms">
10. Add or update table naming elements as needed. By default, UCMDB sends CI attribute data to the
Service Manager device table. If you want to send CI attributes to one of the join tables of device,
you must add an element to specify the table name using the format <file.table_name>. For
example, you do not need to specify an additional jointable to define a database CI type since
Service Manager does not use a separate jointable to manage database CI types.
11. Find the elements that transform UCMDB CI attributes into Service Manager web service fields. The
CI attribute transformation elements use the following format:
<xsl:for-each select="@CI_attribute_name">
<WSFieldName><xsl:value-of select="."/></WSFieldName>
</xsl:for-each>
WSFieldName is the name of a web service field published by the Service Manager system.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 179 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Refer to the following screenshot to map CI attributes in the ucmdbRunningSoftware web service
object:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 180 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 181 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
12. Add or update CI attribute transformation elements for each CI attribute you want to add to the
integration. For example, create the following XSL transformation elements for the database CI
type.
Sample XSL transformation elements for database CIs
UCMDBattribute Sample transformation elements
<Port><xsl:value-of select="."/></Port>
</xsl:for-each>
<DBInstance><xsl:value-of select="."/></DBInstance>
</xsl:for-each>
<Description><xsl:value-of select="."/>
</Description>
</xsl:for-each>
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 182 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Note: When you create/edit and then save a configuration file in Adapter Management,
UCMDB automatically restarts the adapter with the new configuration file.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 183 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
As an example, the following steps illustrate how you add a relationship type named Ownership
(between the Cost and CostCategory CI types) to the integration for data push. These steps assume
that you have already added the Cost and CostCategory CI types to the integration and have created an
Ownership relationship between them in UCMDB.
1. Add a mapping entry for each relationship type in the push relationship mapping definition file.
See "How to Add a Push Mapping Entry for Each Relationship Type of the CI Type" below.
3. Map the relationship query to an XSL transformation file in the push configuration file.
See "How to Map Each Relationship Type Query to an XSL Transformation File" on page 188.
How to Add a Push Mapping Entry for Each Relationship Type of the
CI Type
For data push, the SM_CIT_Subtype_list.xml file defines how UCMDB relationship types are mapped
to SM ones.
Note: This XML file can be found from Adapter Management > ServiceManagerAdapter9-x >
Configuration Files.
If this file does not contain a mapping entry for a new relationship type, you need to add an entry for it.
2. Navigate to Data Flow Management > Adapter Management > ServiceManagerAdapter9-x >
Configuration Files.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 184 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
4. Go to the RelationshipType list section, and add a mapping entry for Ownership.
<list name="RelationshipType">
...
...
</list>
Where:
ucmdb: the display name of the UCMDB relationship type (see Name and Display Name of
Ownership).
ucmdbType: the name of the UCMDB relationship type (see Name and Display Name of Ownership).
Name and Display Name of Ownership are illustrated in the following screenshot:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 185 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Note: Any query you create must conform to the "Query Requirements" on page 120.
4. From the CI Type Selector, drag the Cost and CostCategory CI types to the query pane.
b. Click the Cost node, and drag the arrow from it to the CostCategory node.
d. Select Connection > Ownership, and click OK. An Ownership relationship is created between
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 186 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
the CI types.
7. Change the element name from Ownership to Root (or a name starting with “Root_”), and then
click OK.
8. Click the Save button, and save the query as described in the following.
a. Enter a query name. For example, cost_costcategory_ownership_relation_push.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 187 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
c. Click OK.
The query is now created. You are ready to map this query to an XSL transformation file.
1. Navigate to Data Flow Management > Adapter Management > ServiceManagerAdapter9-x >
Configuration Files.
3. Add a query mapping entry by copying an existing one for relationship push. For example, copy the
following query mapping entry.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 188 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
</tql>
4. Change the query name to the name of the query you created for the relationship type. For
example, cost_costcategory_ownership_relation_push.
</tql>
Now, you have added the new relationship type to the integration. Next, you need to add the new
relationship query to a data push job (see the following figure and "How to Add Custom queries to Data
Push Jobs" on the next page).
Refer to the following screenshot to add a new relationship query to a data push job.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 189 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
3. Click the name of your Service Manager integration point. For example, SM Integration.
5. Click the name of your data push job. For example, SM Configuration Item Push job.
10. Enable the Allow Integration Job to delete removed data option for the query.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 190 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
If you want to populate an additional CI attribute from Service Manager to your Universal CMDB system,
you must create a corresponding web service field on your Service Manager system to provide the CI
data from Service Manager. Each web service field must map to a valid Service Manager table and
column.
For the steps of creating a web service field, see "How to Create a Web Service Field to Support the CI
Attribute" on page 148.
Out-of-the-box, each integration query has a corresponding XSL transformation file that maps to a
particular CI type in Universal CMDB. Without an XSL transformation entry, Universal CMDB cannot
receive any CI attribute updates from your Service Manager system.
Unlike for the Push feature, you do not need to create real queries for Population on the UCMDB server.
If you want to add a new attribute to the integration, you must edit the XSL transformation file for the
parent CI type and add an entry for the CI attribute. For information about which CI types each
population query manages, see "Integration queries" on page 115. In order to create a proper XSL
mapping, you must be familiar with the service and object names that Service Manager publishes as
Web services. For information on publishing tables and columns as Web service fields, see the Service
Manager help.
The following steps illustrate how to map a UCMDB CI attribute called host_vendor to a Service Manager
web service field called OSVendor.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 191 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
3. Navigate to the Service Manager Adapter configuration files path: ServiceManagerAdapter9-x >
Configuration Files.
4. Click the XSL transformation file that manages the parent CI type of your CI attribute. For example,
open computer_population.xslt to add an attribute to the SM Computer Population query.
5. Find the element that defines the name of the Universal CMDB CI Type where the integration will
store CI attribute values. For example, the element <ci class="node"> will store CI attributes in
the Universal CMDB Node CI Type.
6. Within the ci naming element (<ci class="node">), you will see an element of the following
format that defines how to transform each web service field into an Universal CMDB CI attribute:
UCMDB_CI_attribute_type is the type of attribute of the Universal CMDB system which this
integration supports. Currently the following types are supported: String, StringList, Integer, Long,
Double, Boolean, IPAddress, Date, Float, and IntList.
ignoreCIIfEmpty is a parameter that specifies whether or not to ignore the CI during population
if this attribute has an empty value (true: ignore; false: not ignore).
Note:
n A StringList is a list of strings separated by a semicolon (;). For example, str1;str2;str3. An
IntList is a list of integers separated by a semicolon (;). For example, 1;2;3.
n For information about time zone and date format configuration of the Date type, see "How
to Update the Time Zone and Date Format for the Integration Adapter" on page 33.
SMAttributeName is the name of a web service attribute published by the Service Manager
system.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 192 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Refer to the following screenshot to match CI attributes in the ucmdbNode web service object:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 193 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
8. Paste the new XSL transformation element within the proper table naming element. For example,
<ci class="node">.
9. Update the CI attribute name and web service field name within the new element to match the
attribute you want to add to the integration. For example, create the following XSL transformation
element to add the os_vendor attribute to the integration.
When you create/edit and then save a configuration file in Adapter Management, UCMDB automatically
restarts the adapter with the new configuration file.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 194 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
The population feature only needs the smPopConfFile.xml file and population XSL transformation files
to synchronize CI/CI Relationship types and attributes; however for each CI/CI Relationship type you still
need to define a query mapping in the smPopConfFile.xml file, and the query does not necessarily have
to exist in UCMDB. It is simply a query name, which will appear in the query list when you add queries to a
population job.
HP still recommends you to create queries to help you better understand what CI types or attributes are
part of population. For information on how to create a query in UCMDB, see "How to Create a Query to
Synchronize the CI Type" on page 161.
To map the query rdbmsData described in previous sections to the Service ManagerucmdbRDBMS web
service:
2. Navigate to Data Flow Management > Adapter Management > ServiceManagerAdapter9-x >
Configuration Files > smPopConfFile.xml.
3. Add a query mapping element by copying an existing one. A query mapping element uses the
following format:
<request type="Retrieve"
dataType="Data_Type"
retrieveFileList="Retrieve_SM_Tables"
retrieveKeysQueryName="Retrieve_keys_web_service"
retrieveListQueryName="Retrieve_Objects_web_service"
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 195 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
ballQueryCondition="Full_Query_Condition"
changedUpdateQueryCondition="Changed_Update_Condition"
changedDeletionQueryCondition="Changed_Deletion_Condition"/>
</tql>
Query is a query name. The query does not have to exist in UCMDB.
XSL_File is the name of the XSL transformation file that the integration will use to map Service
Manager web service fields to Universal CMDB attributes.
Data_Type is the type of the object retrieved from Service Manager. The possible values are “ci”
and “relationship”.
Retrieve_SM_Tables is the table name list in the Service Manager web service configuration; if
you define the WSDL on a join definition, you need to list all the table names of the join definition to
which the fields of XSLT mapping belongs; if you define the WSDL on a simple table, simply leave
Retrieve_SM_Tables empty. You can also check this by opening the WSDL URL: http://<SM
server>:<port>/SM/7/<object name>.wsdl. For example, out-of-the-box, the instance type of
ucmdbNode is as shown in the following figure, so the Retrieve_SM_Tables value is file.device,
file.node.
SM tables of the ucmdbNode instance type in the ucmdbNode WSDL are illustrated in the following
screenshot:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 196 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Retrieve_keys_web_service is the name of the Service Manager web service that you want the
integration to use to retrieve a CI Key list from Service Manager.
Retrieve_Objects_web_service is the name of the Service Manager web service that you want
the integration to use to retrieve a CI Object list from Service Manager.
Basic_Query_Condition is an internal Query Condition of Service Manager that you want the
integration to use to retrieve a CI list from Service Manager for a CI type; it is used as the basic
condition for a full or changes population.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 197 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
4. Add or update query mapping elements for each query you want to add to the integration.
For example, the following query creates a mapping between the rdbmsData query and the rdbms_
population.xslt file.
retrieveFileList="file.device,file.rdbms"
retrieveKeysQueryName="RetrieveucmdbRDBMSKeysListRequest"
retrieveListQueryName="RetrieveucmdbRDBMSListRequest"
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 198 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
basicQueryCondition="type#"rdbms""
fullQueryCondition="istatus~="Disposed/Retired""
changedUpdateQueryCondition="(devicemodtime>'{fromDate}' or
(devicemodtime=NULL and created.by.date>'{fromDate}')) and
istatus~="Disposed/Retired""
changedDeletionQueryCondition="devicemodtime>'{fromDate}' and
istatus="Disposed/Retired""/>
</tql>
The following figure shows the above-mentioned query mapping elements in the
smPopConfFile.xml file:
The following figure shows an excerpt of the ucmdbRDBMS WSDL for your reference:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 199 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Note: When you create/edit and then save a configuration file in Adapter Management, UCMDB
automatically restarts the adapter with the new configuration file.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 200 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
If you want to add a CI type to the integration, you must create a matching XSL transformation file that
defines how the Service Manager Adapter transforms each Service Manager web service field into a CI
type. In order to create a proper XSL mapping, you must be familiar with the service and object names
that Service Manager publishes as Web services. For information on publishing tables and columns as
Web service fields, see the Service Manager Web Services Guide.
To create an XSL transformation file for the SM RDBMS CI type, which is described in previous sections:
6. Enter the full file name using this format: <AdapterID>/<filename>. For example,
ServiceManagerAdapter9-x/rdbms_population.xslt.
7. Copy the content of an existing XSL transformation file to use it as a template to create the new
transformation file. For example, copy the content of business_service_population.xslt to
the new file.
8. Find the web service response name definition element, which uses the following format:
<xsl:template match="/SM_WEBSERVICE_RESPONSE_NAME">
The following figure shows an example of Web Service response definition in business_service_
population.xslt:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 201 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
9. Update the web service response name to match the response name that you want to add to the
integration. For example, you can create the following CI type definition element to add the
database response of retrieve object list to the integration.
<xsl:template match="/RetrieveucmdbRDBMSListResponse">
10. Find the Universal CMDB CI type definition element, which uses the following format:
<ci class="UCMDB_CI_TYPE_NAME">
11. Update the Universal CMDB CI type definition name to match the name you want to add to the
integration. For example, create the following CI type definition element to add the database
response of retrieve object list to the integration.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 202 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
<ci class="sm_rdbms">
Note: Do not use any variables in the CI type definition name. The CI type definition name must
be a fixed value.
12. Find the elements that transform Service Manager web service fields into Universal CMDB CI
attributes. The CI attribute transformation elements use the following format:
UCMDB_CI_attribute_type is the type of the CI attribute in the Universal CMDB system that this
integration supports. Currently the following types are supported: String, StringList, Integer, Long,
Double, Boolean, IPAddress, Date, Float, and IntList.
ignoreCIIfEmpty is a parameter that specifies whether or not to ignore the CI during population
if this attribute has an empty value (true: ignore; false: not ignore).
Note:
n A StringList is a list of strings separated by a semicolon (;). For example, str1;str2;str3. An
IntList is a list of integers separated by a semicolon (;). For example, 1;2;3.
n For information about setting a time zone and date format for the Date type, see "How to
Update the Time Zone and Date Format for the Integration Adapter" on page 33.
SMAttributeName is the name of a web service attribute published by the Service Manager
system.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 203 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Refer to the following screenshot to match CI attributes in the Universal CMDB BusinessService
CI type:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 204 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
13. In the SM RDBMS population example, there are no sub items of a CI. If you want to populate the
sub items of a CI, for example, to populate the IP addresses of a computer together with the
computer CI, you need to add a “link” element under the “ci” element. A link transformation
element uses the following format:
<ci class="UCMDB_SUB_CI_TYPE_NAME">
</ci>
</xsl:for-each>
</link>
Link_Direction is the direction between a parent CI and sub CI. The supported directions are:
n outgoing: The link direction is from an upstream CI to the current downstream CI (for example,
from node to ip_address).
n incoming: The link direction is from a downstream CI to the current upstream CI.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 205 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
The following figures show the out-of-the-box configurations for populating the Computer CI
together with its IP addresses:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 206 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Refer to the following screenshot to match CI attributes and links in the Service Manager WSDL
(http://<SM server>:<port>/SM/7/ucmdbNode.wsdl):
Refer to the following screenshot to match CI links in UCMDB at the TQL level:
Note: The figure above is provided only to give you a graphic view of how relevant CIs are
stored in UCMDB. You do not need to create the query, since the population feature does not
require it.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 207 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Refer to the following screenshot to match CI type and attributes in the UCMDB CI Type
(IpAddress):
14. Add or update the CI attribute transformation elements for each CI attribute you want to add to
the integration. For example, you can use the following XSL transformation elements for the
database CI type.
Sample XSL transformation elements for database CIs
UCMDB
attribute Sample transformation elements
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 208 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 209 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
Note: When you create/edit and then save a configuration file in Adapter Management, UCMDB
automatically restarts the adapter with the new configuration file.
As an example, the following steps describe how to add the Ownership relationship type to the
integration; these steps assume that you have already added the Cost and CostCategory CI types to the
integration for population.
1. Create an XSL transformation file to map each relationship type’s attributes to web service
objects.
See "How to Map Each Relationship Type's Attributes to Web Service Objects" below.
2. Add a query mapping for each relationship type to the population configuration file.
See "How to Define a Query Mapping for Each Relationship Type" on page 212.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 210 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
6. Enter the full file name using this format: <AdapterID>/<filename>. For example,
ServiceManagerAdapter9-x/cost_to_costcategory_population.xslt.
7. Click Yes to ignore the file extension warning. The file is added to the Configuration Files folder.
8. Copy the content of an existing relationship population XSLT file (for example, computer_to_
computer_connects_population.xslt) to the new XSLT file.
Note: In the next step, you will update the <ci class> names and linkType value.
<xsl:template match="/Retrievecirelationship1to1ListResponse">
<topology>
<xsl:for-each select="instance">
<ci class="node">
<ci class="node">
</ci>
</link>
</ci>
</xsl:for-each>
</topology>
</xsl:template>
</xsl:stylesheet>
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 211 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
9. Change the <ci class> names to cost and cost_category, and linkType to ownership.
...
<ci class="cost">
<ci class="cost_category">
...
ci class: the name (not display name) of the each CI type involved in the relationship. It should be
the Name field value on the General Details tab of the CI type definition.
linkType: the name of the relationship type. It should be the Name field value on the General
Details tab of the relationship type definition.
Note: In this example, you do not need to change the link direction (outgoing). This is because
the relationship (Ownership) direction is from cost to cost_category, that is, from a <ci class>
outside of the <link> element to a <ci class> inside it).
2. Navigate to Data Flow Management > Adapter Management > ServiceManagerAdapter9-x >
Configuration Files > smPopConfFile.xml.
3. In the smPopConfFile.xml file, add a query mapping for the relationship type, by copying an
existing query mapping element.
Note: In the next step, you will update the highlighted values with values of the new
relationship type.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 212 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
retrieveKeysQueryName="Retrievecirelationship1to1KeysListRequest"
retrieveListQueryName="Retrievecirelationship1to1ListRequest"
basicQueryCondition="upstreamci.type="bizservice" and
downstreamci.type="bizservice" and
relationship.subtype="Usage""
fullQueryCondition="status~="Removed""
changedCreationQueryCondition="create.datetime>'{fromDate}' and
status~="Removed""
changedUpdateQueryCondition="created.datetime<='{fromDate}' and
update.datetime>'{fromDate}' and status~="Removed""
changedDeletionQueryCondition="update.datetime>'{fromDate}' and
status="Removed""/>
</tql>
4. Update the TQP mapping element with the values of the new relationship type.
Note: For the query name, you can enter any descriptive name as you like (for example, SM
Cost to CostCategory with Ownership). This query does not really exist, since
population does not require it.
retrieveKeysQueryName="Retrievecirelationship1to1KeysListRequest"
retrieveListQueryName="Retrievecirelationship1to1ListRequest"
basicQueryCondition="upstreamci.type="cost" and
downstreamci.type="costcategory" and
relationship.subtype="Ownership""
fullQueryCondition="status~="Removed""
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 213 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
changedCreationQueryCondition="create.datetime>'{fromDate}' and
status~="Removed""
changedUpdateQueryCondition="created.datetime<='{fromDate}' and
update.datetime>'{fromDate}' and status~="Removed""
changedDeletionQueryCondition="update.datetime>'{fromDate}' and
status="Removed""/>
</tql>
Note: When you create/edit and then save a configuration file in Adapter Management, UCMDB
automatically restarts the adapter with the new configuration file.
Now the relationship type is added to the integration for population. Next, you need to add the
relationship query name you specified in the population configuration file (in this example, SM Cost to
CostCategory with Ownership) to a relationship population job, so that the integration can populate this
type of relationships to UCMDB. See the following figure and also "How to Add Custom queries to
Integration Population Jobs" on page 216.
Refer to the following screenshot to add a new relationship query name to a relationship population job:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 214 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
To better suit your business needs, you can make the following tailorings to the ucmdb id pushback
feature, using the <idPushbackConfigurations> element in the ServiceDeskConfiguration.xml file:
l "How to Disable the UCMDB ID Pushback Feature for a Specific CI Type" below
l "How to Define a Custom Pushback Web Service and xslt File for a Specific CI Type" on the next page
Note: For a specific UCMDB class (CI type), its definitions in the ServiceDeskConfiguration.xml
file supercede the following global settings in the sm.properties file:
l idPushbackEnable: In the sm.properties file, this setting is not present; however, out-of-the-
box, it is set to true for all CI types.
To disable the pushback feature for a UCMDB CI type (class), use this format:
<idPushbackConfiguration ucmdbClassName="<ucmdbClassName>"
idPushbackEnable="false"/>
<idPushbackConfigurations>
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 215 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
</idPushbackConfigurations>
To enable the pushback feature for a CI type, set idPushbackEnable="true" for it.
How to Define a Custom Pushback Web Service and xslt File for a
Specific CI Type
There are occasions when you need to define a custom pushback web service and XSLT for a specific CI
type (class), for example, when a CI type you want to populate is not stored in the device table in Service
Manager. This is because the out-of-the-box ucmdbIDPushBack web service is based on the device
table.
For example, you have tailored the integration in order to populate the Functional Group from Service
Manager to UCMDB. If the Functional Group in Service Manager is not stored in the device table, you can
define a custom web service and XSLT like the following:
<idPushbackConfigurations>
<idPushbackConfiguration ucmdbClassName="functional_group"
idPushbackEnable="true"
idPushbackRequest="UpdateucmdbIDPushBackForFunctionalGroupRequest"
idPushbackXSLT="ucmdbid_pushback_functionalgroup.xslt"/>
......
</idPushbackConfigurations>
Note: To support your pushback customizations, you need to create the specified custom web
service record in Service Manager and XSLT file in UCMDB.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 216 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
3. Double-click the name of your Service Manager integration point. For example, SM Integration.
For each of the supported CI types, there is a list of attributes in UCMDB that you can map to Service
Manager web service objects for federation. The following figure shows the out-of-the-box UCMDB CI
attributes available for the Incident CI type.
Incident CI attributes supported for federation are illustrated in the following screenshot:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 217 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
For example, to add an SM Incident attribute for federation, you need to expose the field in the SM
UcmdbIncident web service object and then map it to an appropriate UCMDB attribute (if one does not
already exist, you need to create it in UCMDB first).
The following figure shows the fields that are exposed in the UcmdbIncident web service object in
Service Manager:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 218 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
You can expose more fields so that more Incident attributes can be federated to UCMDB. As an example,
the following describes how to add the “action” field in the Service Manager probsummary (Incident) file
for federation, by mapping it to a new UCMDB attribute named “details”.
Note: On the Incident form in Service Manager, the “action” field is labeled “Description”, which
describes the incident ticket in more detail. See the following figure.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 219 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
o Name: probsummary
o Caption: Description
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 220 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
d. Click the Add button to add a new attribute named “details” to the Incident CI type.
o name: details
o Attribute Type: Primitive > List of strings (this is because the “action” field in SM is an array)
f. Navigate to Data Flow Management > Adapter Management > ServiceManagerAdapter9-x >
Configuration Files.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 221 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
h. Add a mapping entry for the “details” attribute in the Incident attributeMappings section, as
shown in the following.
<ucmdbClassConfiguration ucmdbClassName="incident">
<attributeMappings>
<attributeMapping ucmdbAttributeName="reference_number"
serviceDeskAttributeName="IncidentID"/>
<attributeMapping ucmdbAttributeName="name"
serviceDeskAttributeName="BriefDescription"/>
...
<attributeMapping ucmdbAttributeName="incident_status"
serviceDeskAttributeName="IMTicketStatus"
converterClassName="com.mercury.topaz.fcmdb.adapters.
serviceDeskAdapter.converter.PropertyValueConverterFirstLetter
ToUpperAndReplaceUnderscoreWithSpace"
reversedConverterClassName="com.mercury.topaz.fcmdb.adapters.
serviceDeskAdapter.converter.PropertyValueConverterFirstLetter
ToLowerAndReplaceSpaceWithUnderscore"/>
...
<attributeMapping ucmdbAttributeName="urgency"
serviceDeskAttributeName="Urgency"/>
<attributeMapping ucmdbAttributeName="details"
serviceDeskAttributeName="Description"/>
</attributeMappings>
<attributeMapping ucmdbAttributeName="details"
serviceDeskAttributeName="Description"/>
Where:
For an SM attribute (for example, problem.status) that is a drop-down list, the attribute
mapping uses the following format (you only need to change the attribute names):
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 222 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
<attributeMapping ucmdbAttributeName="incident_status"
serviceDeskAttributeName="IMTicketStatus"
converterClassName="com.mercury.topaz.fcmdb.adapters.
serviceDeskAdapter.converter.PropertyValueConverterFirstLetter
ToUpperAndReplaceUnderscoreWithSpace"
reversedConverterClassName="com.mercury.topaz.fcmdb.adapters.
serviceDeskAdapter.converter.PropertyValueConverterFirstLetter
ToLowerAndReplaceSpaceWithUnderscore"/>
Now the Description (field name: action) attribute of SM Incident has been added to the integration
for federation. You can run an Incident federation query in the UCMDB Modeling Studio to see if the
SM Description data is properly federated. For details, see "Examples of Using Federation" on
page 45.
The following figure shows an example where the Description of an SM incident ticket has been
federated to UCMDB as Details:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 223 of 273
Universal CMDB Integration Guide
Chapter 5: Tailoring the Integration
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 224 of 273
Chapter 6: Troubleshooting
When data push and population errors occur, you can check the error messages and the integration log
files to identify the root causes and fix the errors. This chapter describes the general troubleshooting
steps, as well as typical errors and solutions.
This integration uses the following error codes for data push.
-1 Unspecified error.
0 Success.
3 Resource unavailable.
28 Not authorized.
71 Validation failed.
882 Unable to remove the relationship because at least one of CIs involved in the relationship
does not exist in Service Manager.
When a data push job has failed, the job status becomes Failed. Troubleshoot the failed job as follows:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 225 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
l Check the error messages of the failed job in the Universal CMDB studio.
See "How to Check the Error Message of a Failed Push Job" below.
When a data push job was completed, but with partial records failed, the job status becomes Passed
with failures. Troubleshoot the failed records as follows:
l Check the error messages of failed CIs in the Universal CMDB studio.
See "How to Check the Error Messages of Failed CIs/CI Relationships in a Push Job" on the next page.
Once you have fixed the issues with the failed records, you can re-push them one by one or in batches.
For details, see "How to Re-push Failed CI/CI Relationship Records" on page 236.
3. Select the integration point for this integration from Integration Point list.
6. Click the Job Errors sub-tab, and double-click the Severity of a message from the list.
A popup window displays the detailed error message of this failed job. Following is an excerpt of a
sample error message indicating that an XSLT file was not found.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 226 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
3. Select the integration point for this integration from Integration Point list.
7. Double-click a query with failures. The Error Message and CI Count for each failed CI Type are
displayed.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 227 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
The following is a sample error message that indicates a validation failure, and the root cause is
that a not-null key (key definition #18 of the device table) contains an empty value.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 228 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 229 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 230 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Tip: You are recommended to enable the Development Mode for the integration point so that the
above-mentioned three XML files are in a good format. See the following for the steps.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 231 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 232 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
4. Search for text strings Source tree XML:, Transformed XML:, and Response message from
SM:.
The following is a sample log file.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 233 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 234 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 235 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
The query failure details (Error Message, CI Type, and CI Count) are displayed.
3. Double-click the Error Message, to see more details of the failed records.
4. Double-click each failed record to see the detailed error message of the record.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 236 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
5. Fix the issues with each failed record according to the error information.
6. Select a failed record, and then click the Push selected failed data button to re-synchronize the
record.
Alternatively, click the query name link (in this example, “SM Node Relations Push”), select the error
message of the query, and then click the Push selected failed data button to re-push all failed records
in the query.
l "Non-Existing XSLT File Name Defined for a Query in smSyncConfFile.xml" on page 239
l "Request Name not Found for a Query in smSyncConfFile.xml " on page 240
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 237 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
l "CI Logical Name Truncated or CI not Pushed due to Logical Name Truncation" on page 250
The query used for populating business service CIs is named SM Business Service Push, however you
have not configured it (or have commented it out) in the smSyncConfFile.xml file:
Error message
The push job fails with a “Failed” status. From both the log file and the detail error message of the failed
job in the Universal CMDB studio (see "How to Check the Error Message of a Failed Push Job" on
page 226), you receive an error like the following:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 238 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
Search for text No mapping is found for TQL to find the query name that is not yet configured, and
then configure the query name in the smSyncConfFile.xml file.
For instructions on how to add a mapping for a query, see "How to Map the CI Type’s Query to an XSL
Transformation File" on page 175.
The XSLT file for populating business service CIs is named business_service_push.xslt, however you
have configured a wrong name business_service_push_wrong_name.xslt in smSyncConfFile.xml.
Error message
The data push job fails with a “Failed” status. From both the log file and the detail error message of the
failed job in the Universal CMDB studio (see "How to Check the Error Message of a Failed Push Job" on
page 226), you receive an error like the following:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 239 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
Search for text java.io.FileNotFoundException: Resource: to find the wrong XSLT file name, and
then correct the XSLT file name in the smSyncConfFile.xml file.
For instructions on how to configure an XSLT file name for a query, see "How to Map the CI Type’s Query
to an XSL Transformation File" on page 175.
The Service Manager web service request of the Create type is named
CreateucmdbBusinessServiceRequest, however you have not configured it (or have commented it
out) in the smSyncConfFile.xml file.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 240 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Error message
The data push job fails with a “Failed” status. From both the log file and the detail error message of the
failed job in the Universal CMDB studio (see "How to Check the Error Message of a Failed Push Job" on
page 226), you receive an error like the following:
Solution
In the error message find the query name for which a request name was not found, and then in the
smSyncConfFile.xml file add the request name for the query name.
For instructions on how to configure a request for a query, see "How to Map the CI Type’s Query to an
XSL Transformation File" on page 175.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 241 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
The Service Manager web service request of the Create type is named
CreateucmdbBusinessServiceRequest, however you have configured a wrong request name
CreateucmdbBusinessServiceRequest_wrongname in the smSyncConfFile.xml file.
Error message
The data push job is completed with a “Passed with failures” status. From both the log file and the
detailed error messages of the failed CIs in the Universal CMDB studio (see "How to Check the Error
Messages of Failed CIs/CI Relationships in a Push Job" on page 227), you receive an error like the
following:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 242 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
In the Transformed XML section of the error message, check the Request name (which is configured as
CreateucmdbBusinessServiceRequest_wrongname in this sample), and make sure that the request
name specified in smSyncConfFile.xml is the exact name defined in the WSDL.
For instructions on how to configure a Service Manager web service request for a query, see "How to
Map the CI type's Query to an XSL Transformation File" on page 195.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 243 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
The end tag of “instance” should be </instance>, however you have configured a wrong end tag
</instance_wrong_end_tag>.
Error message
The data push job fails with a “Failed” status. From both the log file and the detailed error message of
the failed job in the Universal CMDB studio (see "How to Check the Error Message of a Failed Push Job"
on page 226), you receive an error like the following:
In addition, you can find more detailed error message in the log file to see which XSLT file is not well
formed. You should see something like following:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 244 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
Search for text Not valid XSLT file to find the XSLT file name, and then validate the XSLT file in an
XML editor (for example, XMLSpy). You can easily find and fix any validation issues.
The Universal CMCB attribute name is provider, however you have configured a wrong attribute named
provider_wrong.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 245 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Error message
You will NOT get any error messages either in the log file or in the Universal CMDB studio, however the
Universal CMDB attribute value will not be pushed to Service Manager.
Solution
If you find a UCMDB attribute value that cannot be pushed to Service Manager, double-check the UCDMB
attribute name and Service Manager field name of the mapping in the XSLT file.
For instructions on how to configure an attribute mapping, see "How to Map the CI Attribute to a Web
Service Field" on page 152.
The Service Manager field name is ServiceProvider, however you have configured a wrong attribute
named ServiceProvider_wrong in the XSLT file. This error also commonly occurs since the attribute is
case-sensitive.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 246 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Error message
You will NOT get any error messages either in the log file or in the Universal CMDB studio, however, the
Universal CMDB attribute value will not be pushed to Service Manager.
Solution
If you find a Universal CMDB attribute value that cannot be pushed to Service Manager, check both the
Universal CDMB attribute name and Service Manager field name of the mapping in the XSLT file.
For instructions on how to configure an attribute mapping, see "How to Map the CI Attribute to a Web
Service Field" on page 152.
In Service Manager you have configured a No Nulls key for field “testnotnullfield” of the device table,
however you have not mapped this field in the XSLT file.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 247 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Error message
The data push job is completed with a “Passed with failures” status. From both the log file and the
detailed error messages of the failed CIs in the Universal CMDB studio (see "How to Check the Error
Messages of Failed CIs/CI Relationships in a Push Job" on page 227), you receive an error like the
following.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 248 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 249 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
Find the key number in the <messages> section to see which No Nulls key has a NULL value. For example,
if you find a message “Key #1 is empty”, check the first key definition of the device table to see which
field(s) this key is for, and then make sure that a non-NULL value has been mapped to the field(s) in the
XSLT file.
For instructions on how to configure an attribute mapping, see "How to Map the CI Attribute to a Web
Service Field" on page 152.
The length of a UCMDB CI name exceeds 200 characters, which is the maximum allowed field length for
logical.name (CI Identifier) in Service Manager. When this CI is pushed to Service Manager, the CI name
is truncated.
Two UCMDB CIs have the same CI name that is 200 characters in length. When the second CI is pushed, it
is supposed to be renamed if the DEM Duplication Rule is configured so; however, the renamed logical
name will be truncated to be same as the first CI’s logical name. As a result, the second CI will not be
able to be pushed to Service Manager due to an invalid duplicate key error.
Error message
You receive an error message that contains this string: This record contains an invalid
duplicate key.
Solution
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 250 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Update the CI type’s XSL transformation file so that, before running a push, the integration can make
sure that all CI names are significantly less than 200 characters in length.
Your Service Manager database is case-insensitive. You have two UCMDB CIs with a name of CINAME1
and ciname1, respectively.
When running a push job to push these CIs, the integration considers the second CI a duplicate of the
first one, and therefore either renames it or returns an error according to the Duplication Rule setting
of the relevant DEM Rule record.
Solution
You create an XSL transformation file for push without the following element:
<!--import:cmdb_root_attributes.xslt-->
The cmdb_root_attributes.xslt file contains Global ID and Customer ID, which are required for data
push:
<UCMDBId><xsl:value-of select="@id"/></UCMDBId>
<CustomerId><xsl:value-of select="@customer_id"/></CustomerId>
Error message
No error message occurs, however when you update or delete a CI record in UCMDB, the update or
deletion will not be pushed to Service Manager.
Solution
<!--import:cmdb_root_attributes.xslt-->
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 251 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
When a population job has failed, the job status becomes Failed. Troubleshoot the failed job as follows:
l Check the error message of the failed job in the Universal CMDB studio.
See "How to Check the Error Message of a Failed Population Job" below and "Typical Error Messages
and Solutions" on page 259.
5. Select the failed job from Integration Jobs, and click the Job Errors sub-tab.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 252 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Tip: You are recommended to enable the Development Mode for the integration point so that the
above-mentioned two XML files are in a good format.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 253 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
For detailed steps, see "How to Check the Push Log File" on page 231.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 254 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
4. Search for text strings Source SM CI XML, Transformed XML, Source tree XML for ID
Pushback, Transformed XML for ID Pushback and Response message from SM For ID
Pushback. The log looks like the following:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 255 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 256 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 257 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 258 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
l "Nonexistent XSLT File Name Defined for a Query in smPopConfFile.xml" on the next page
l "No “Retrieve” Type Request Defined for a Query in smPopConfFile.xml" on page 261
l "Wrong Universal CMDB Attribute Data Type in XSLT File" on page 268
l "UCMDB CI Attribute sm_id not Mapped to the Right Service Manager Field in XSLT" on page 270
If you have not yet added a query to your job, you cannot select this query from the list while you create
or update your job.
If you have already added this query to your job before removing it from smPopConfFile.xml, you will
get a “Failed” status while you run this population job. In addition, in the Universal CMDB studio, you will
get an error message like the following (see "How to Check the Error Message of a Failed Population
Job" on page 252):
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 259 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
Search for text is not supported by this adapter to find the query name that has not yet been
configured, and then configure it in the smPopConfFile.xml file.
For instructions on how to add a mapping to a query, see "How to Map the CI type's Query to an XSL
Transformation File" on page 195.
You will get a “Failed” status while you run the population job. In addition, from both the population log
file (see "How to Check the Population Log File" on page 253) and the Universal CMDB studio (see "How
to Check the Error Message of a Failed Population Job" on page 252), you will get an error message like
the following:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 260 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
Search for text No XSLT file is found to find the wrong XSLT file name, and then correct the name
in the smPopConfFile.xml file.
For instructions on how to configure an XSLT file name for a query, see "How to Map the CI type's Query
to an XSL Transformation File" on page 195.
You will get a “Failed” status while you run the population job. In addition, from both the population log
file (see "How to Check the Population Log File" on page 253) and the Universal CMDB studio (see "How
to Check the Error Message of a Failed Population Job" on page 252), you will get an error message like
the following:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 261 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
Search for text No request was configured for operation to find the query name for which a
retrieve type request is missing, and then add the missing request name in the smPopConfFile.xml
file.
For instructions on how to configure a request for a query, see "How to Map the CI type's Query to an
XSL Transformation File" on page 195.
You will get a “Failed” status while you run the population job. In addition, from both the population log
file (see "How to Check the Population Log File" on page 253) and the Universal CMDB studio (see "How
to Check the Error Message of a Failed Population Job" on page 252), you will get an error message like
the following:
Further more, you can find more detailed error message in the log file that indicates which request of
retrieving CI keys is wrong. The following is an example:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 262 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
Search for text Web Service Request XMl For getting SM CI keys to find the wrong request
name, and then specify the right request name in the smPopConfFile.xml file for the query name.
For instructions on how to configure a request for a query, see "How to Map the CI type's Query to an
XSL Transformation File" on page 195.
You will get a “Failed” status while you run the population job. In addition, from both the population log
file (see "How to Check the Population Log File" on page 253) and the Universal CMDB studio (see "How
to Check the Error Message of a Failed Population Job" on page 252), you will get an error message like
the following:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 263 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Further more, you can find more detailed error message in the log file that indicates which request of
retrieving a CI list is wrong. The following is an example.
Solution
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 264 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Search for text Web Service Request XMl For getting SM CI List to find the wrong request
name, and then specify the right request name in the smPopConfFile.xml file for the query name.
For instructions on how to configure a request for a query, see "How to Map the CI type's Query to an
XSL Transformation File" on page 195.
The end tag of “ci” should be </ci>, however you configured a wrong end tag </ci_wrong>.
Error message
If you have not yet created your integration point, when you create it an error message similar to the
following example will occur in the Universal CMDB studio or the log file, causing the creation to fail.
If you have already created your integration point, but not yet activated it, you can no longer activate it,
because when you attempt to activate it you will get a detailed error message in the probe error log file
(probe-error.log), similar to the following example.
If you have created and activated your integration point, you will get a “Failed” status when you run the
population job. In addition, from both the population log file (see "How to Check the Population Log File"
on page 253) and the Universal CMDB studio (see "How to Check the Error Message of a Failed
Population Job" on page 252), you will get an error message similar to the following example.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 265 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
Search for text Got SAXException while parsing the XSLT file to find the name of the
problematic XSLT file, and then validate the file in an XML editor (for example, XMLSpy). You can easily
find and fix any validation issues.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 266 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
The UCMDB attribute name is provider, however you configured a wrong attribute provider_wrong.
This error also occurs if you configure an attribute name in the wrong case because attribute names
are case-sensitive.
Error message
You will NOT get any error messages either in the log file or the Universal CMDB studio, however the
Service Manager field value will not be populated to Universal CMDB.
Solution
If you find that a Service Manager field value cannot be populated to Universal CMDB, check both the
UCDMB attribute name and the Service Manager field name of the mapping in the XSLT file.
For instructions on how to configure an attribute mapping, see "How to Map the CI Attribute to the Web
Service Field" on page 191.
The Service Manager field name is ServiceProvider, however you configured a wrong attribute
ServiceProvider_wrong:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 267 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Error message
You will NOT get any error messages either in the log file or the Universal CMDB studio, however the
Service Manager field value will not be populated to Universal CMDB.
Solution
If you find that a Service Manager field value cannot be populated to Universal CMDB, check both the
UCDMB attribute name and the Service Manager field name of the mapping in the XSLT file.
For instructions on how to configure an attribute mapping, see "How to Map the CI Attribute to the Web
Service Field" on page 191.
The data type of Universal CMCB attribute “provider” is String, however you configured a wrong type
Integer:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 268 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Error message
The CIs will be populated to Universal CMDB, but the field value with a wrong data type configuration will
not be populated to Universal CMDB.
When you run the population job, you will get a “Failed” status. In addition, from both the population log
file (see "How to Check the Population Log File" on page 253) and the Universal CMDB studio (see "How
to Check the Error Message of a Failed Population Job" on page 252), you will get an error message
similar to the following:
Solution
Search for text The value "xxx" of field "yyy" is not to find the name of the attribute with a
wrong data type, and then specify the right data type in the XSLT file.
For instructions on how to configure an attribute data type, see "How to Map the CI Attribute to the Web
Service Field" on page 191.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 269 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Sample configuration
If you configured the mapping for sm_id in one of the following ways:
l You did not expose the Service Manager CI ID field in the Service Manager web service;
l You exposed the Service Manager CI ID field with a caption other than CIName;
l The Service Manager CI ID field was exposed in the web service as the caption CIName, but you
configured a wrong name (for example, CIName_wrong) in the XSLT file (see the following figure).
Error message
When you run the population job, you will get a “Failed” status. In addition, from both the population log
file (see "How to Check the Population Log File" on page 253) and the Universal CMDB studio (see "How
to Check the Error Message of a Failed Population Job" on page 252), you will get an error message
similar to the following:
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 270 of 273
Universal CMDB Integration Guide
Chapter 6: Troubleshooting
Solution
Search for text The Universal CMDB attribute "sm_id" of CI type to find the CI type, and then
configure the attribute mapping for this CI Type in the XSLT file.
For instructions on how to configure an attribute mapping, see "How to Map the CI Attribute to the Web
Service Field" on page 191.
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 271 of 273
Send Documentation Feedback
If you have comments about this document, you can contact the documentation team by email. If an
email client is configured on this system, click the link above and an email window opens with the
following information in the subject line:
Feedback on Universal CMDB Integration Guide (Service Manager Service Manager 9.40; Universal
CMDB 10.01 or later)
If no email client is available, copy the information above to a new message in a web mail client, and
send your feedback to [email protected].
HP Service Manager (Service Manager 9.40; Universal CMDB 10.01 or later) Page 272 of 273