Highlighted
Honored Contributor.
Honored Contributor.
134 views

Default Mapping File for Atrium Integration - please clarify

Hi, we try to undesrstand the Default Mapping File of the Atrium push Adapter:

 

<?xml version="1.0" encoding="UTF-8"?>
<!-- Default mapping file (will be used in case a mapping file with the name of the TQL is not found  -->
<integration>
    <info>
        <source name="UCMDB" versions="9.x" vendor="HP" />
        <target name="Atrium" versions="7.6" vendor="BMC" />
    </info>
    <targetcis>
        <source_ci_type name="unix" mode="update_else_insert">
            <target_ci_type name="BMC_ComputerSystem" nameSpace="BMC.CORE">
                <targetprimarykey>
                    <pkey>DatasetId</pkey>
                    <pkey>AssetID</pkey>
                </targetprimarykey>
                <target_attribute name="DatasetId" datatype="char" length="127">
                    <map type="constant" value="TOPO.DDM"/>
                </target_attribute>
                <target_attribute name="AssetID" datatype="char" length="40">
                    <map type="direct" source_attribute="id"/>
                </target_attribute>
                <target_attribute name="DNSHostName" datatype="char" length="64" option="uppercase">
                    <map type="direct" source_attribute="host_snmpsysname"/>
                </target_attribute>
                <target_attribute name="Name" datatype="char" length="255" option="uppercase">
                    <map type="compoundstring">
                        <source_attribute name="display_label"/>
                        <constant value="_UNIX_Server"/>
                    </map>
                </target_attribute>
            </target_ci_type>
        </source_ci_type>

 

 

We assume that source_ci_type refers to the CI Type as defined in the CI Type Manager and source_attribute  is the attributes of the CIType. What confuses us is that in this example the source_attribute is refering to attributes that cannot be found in CIT Type Manager for the CI. In the example above there are references to source_attribute="id" or host_snmpsysname that cannot be found as part of the CIType "unix".

Are these just examples that have to be replaced with attribute names from the CI Type or do we misunderstand the concept? Thanks for clarification .....

0 Likes
1 Reply
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Default Mapping File for Atrium Integration - please clarify

Hi,

 

According to the Developer Reference Guide (KM00642630), the source_attribute is the attribute of the child CI
that is mapped. Required only if the childAttr aggregation type (which is on the same path) is not =count.

 

HTH!

 

Regards,

 

-Alonso.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.