Previous Topic: Service Modeling Example 4 - Automatic Relationships PolicyNext Topic: Policy - All Database Instances and Tablespaces


Policy - All Computer Systems and Running Software

The company is in the process of hiring more employees and so they are constantly adding new computer systems bundled with various software packages.

The system administrator wants to automatically create relationships between computer systems and the software that runs on them. When new computer systems come online, the system administrator wants the relationship creation automated also.

The system administrator creates a new automatic relationship policy using the Service Discovery Policy Editor wizard:

Source Criteria

The system administrator completes the Source Criteria page with the following values:

Relationship Type: Has Access To

Class: ComputerSystem

The system administrator creates the first source criteria:

Attribute: Primary IPV4Address

Comparison Type: Is Set

The system administrator clicks Add then creates the second source criteria:

Attribute: Primary Dns Name

Comparison Type: Is Set

The system administrator clicks Add and the resulting source criteria appear as shown in the following graphic:

service discovery computer systems running source criteria

Target Criteria

The system administrator clicks Next and completes the Target Criteria page as follows:

Class: RunningSoftware

The system administrator creates the first target criteria:

Attribute: Device IPV4Address

Comparison Type: Is Set

The system administrator clicks Add then creates the second target criteria:

Attribute: Device Dns Name

Comparison Type: Is Set

The system administrator clicks Add and the resulting target criteria appear as shown in the following graphic:

service discovery computer systems running target criteria

Match Criteria

The system administrator creates the first criteria:

'Computer System Attribute: Primary IPV4Address

Comparison Type: Equal To

'Running Software' Attribute: Device IPV4Address

The system administrator clicks Add and creates the second criteria:

'Computer System Attribute: Primary Dns Name

Comparison Type: Equal To

'Running Software' Attribute: Device Dns Name

The system administrator clicks Add and the resulting match criteria appear as shown in the following graphic:

service discovery computer systems running match criteria

Relationship Scope

The system administrator selects All services so that all services with matching ComputerSystem CIs are considered for creating the relationship.

Confirm

The automatic relationship policy appears on the Confirm page as follows:

Automatic Relationship Policy 'Has Access To'
BETWEEN
    Computer System with properties
    (
        'Primary IPV4Address' is set  AND
        'Primary Dns Name' is set 
    )
AND
    Running Software with properties
    (
        'Device IPV4Address' is set  AND
        'Device Dns Name' is set 
    )
WHEN
    (
        'Computer System.Primary IPV4Address' equals (ignore case) 'Running Software.Device IPV4Address' AND
        'Computer System.Primary Dns Name' equals (ignore case) 'Running Software.Device Dns Name'
    )
SCOPED TO
    (
        All services 
    )