Use > Modeling > Introduction > Topology Query Language > How to Define a Compound Relationship – Scenario

How to Define a Compound Relationship – Scenario

This section describes how to define the allowed steps that form a compound relationship between an IP Subnet CI and an IP Address CI.

Note To reach the required result, you must implement each one of the following steps.

To define a compound relationship between an IP Subnet CI and an IP Address CI:

  1. Create a TQL query of type view and drag the following query nodes onto the editing pane:

    • IP Subnet

    • IP Address

  2. Select both of the IP Subnet and IP Address query nodes, right-click and select Add Compound Relationship to open the Add Compound Relationship dialog box.

  3. Click the Add button. In Enrichment Manager and Impact Analysis Manager, the Add Triplet dialog box opens. In the Modeling Studio, a row is added to the table.

    Make the following selections:

    • From the Source list, select IP Subnet.

    • From the Target list, select Node.

    • From the Relationship list, select Membership.

    • Select the required Relationship Direction.

    In Enrichment Manager and Impact Analysis Manager, click OK to save your changes.

  4. Click the Add button again and make the following selections:

    • From the Source list, select Node.

    • From the Target list, select IP Address.

    • From the Relationship list, select Containment.

    • Select the required Relationship Direction.

  5. In Enrichment Manager and Impact Analysis Manager, click OK to save your changes.

    The following shows an example of compound definitions following the changes:

  6. Click OK to save your changes.
  7. The TQL query in the editing pane now looks like this:

  8. Create a view based on your TQL query and save it.

  9. Go to the required view in IT Universe Manager to view the results. If you did not select the Show full path between source and target CIs option, then the results display the names of the relationships that link the CIs as Virtual-Compound rather than the actual names of the relationships. See the illustration below:

  10. You can double-click the Virtual - Compound relationship in IT Universe Manager to open the Link Map, which displays the CIs and relationships that comprise the allowed steps used to link the IP Subnet and IP Address CIs.

    In the example above, the 192.168.168.0 (IP Subnet) CI is linked to the 192.168.0.1 (IP Address) CI through the labm1ccm15 (Node) CI.

    If you selected the Show full path between source and target CIs option, then the results in IT Universe Manager display the actual names of the relationships that link the CIs and the full path between the source and target CIs. See the illustration below:

Related Topics Link IconRelated Information