Administration > CMDB Administration > Source Manager Administration > Working with Templates > Automapping - Relationships Details
Automapping - Relationships Details
Attaching one CI to another CI creates a hierarchical relationship between them, so that one CI may be dependent on or influenced by the other.
In all adapter templates, except for the XML File adapter template, only the depends on or monitored by types of relationships are used.
The automapping code is usually located at the end of the template file.
In the XML File template you can use all the available types of relationships, as defined in the CI Type Manager - for details, see Relationship Definitions in CI Type Manager Administration.
Note: If you add or remove a relationship, you might have to modify the corresponding view in View Manager, to reflect the change - for details, see View Manager Administration.
The following example shows the relationships used in the SiteScope adapter template definition:
<autoMappingLinks bac-version="BAC 6.0">
<link dest_obj_type="host" src_obj_type="sitescope_group"
type="Mercury:depends_on" weight="1"/>
</autoMappingLinks>
Each relationship may include the following information:
- dest_obj_type - the configuration item type (CIT) that is the higher level in a relationship; for example, a monitor.
- src_obj_type - the CIT that is the lower level of a relationship; for example, a group.
- type - the type of relationship - for details, see Relationship Definitions in CI Type Manager Administration.
For example, type can be depends_on or monitored by.
Both dest_obj_type and src_obj_type identify a CIT. If you want to add a new relationship, you must use the CIT internal name in the code - for details on how to find out the internal name of a CIT, see below.
- weight - the weight assigned to the relationship - for details, see Percentage Rule in Application Administration.
To find the internal name of a CIT:
- Select Admin > CMDB > CI Type Manager.
- Right-click the appropriate CIT in View Explorer and select Edit CIT to open the Edit Configuration Item Type <CIT_name> page.
- Click the Information tab, and view the name of the CIT in the Configuration Item Type Name box - for details, see CI Type Manager Administration.
| Copyright 2006 Mercury Interactive Corporation |