How to Create a Containment Relationship
Applies To: System Center Operations Manager 2007
The following procedures show how to create containment relationships in the Operations Manager 2007 Authoring console. Before you perform these procedures, you must complete the following prerequisite procedures:
How to Create a New Management Pack - Create the management pack in which the relationships will be created.
How to Create a Class - Create classes that will serve as both the source and target in relationships.
How to Create a Group - Create groups class that will serve as the source in a relationship.
The relationships created in the following procedures have these characteristics.
Relationship between MyHealthRollup group class and MyComputerRole1 class. This supports a health rollup of all instances of MyComputerRole1.
Relationship between MyComputerRole2 and MyComputerRole1. This supports a health dependency of MyComputerRole2 on MyComputerRole1.
Containment relationships do not have to be created for Instance Groups or Computer Groups, because the required relationships are already defined by the classes on which these classes are based.
To create a containment relationship for a health rollup
In the Authoring console, select Service Model, and then select Relationships.
Right-click in the Relationships pane, select New, and then select Containment Relationship.
On the General page, do the following:
In the ID box, type MyMP.MyHealthRollupContainsMyComputerRole1.
In the Display Name box, type My Health Rollup Contains My Computer Role 1.
Click Next.
On the Source and Target page, do the following:
In the Class ID (Source) box, select MyMP.MyHealthRollup.
In the Class ID (Target) box, select MyMP.MyComputerRole1.
Click Finish.
Select File, and then click Save.
To create a containment relationship for dependency between two classes
In the Authoring console, select Service Model, and then select Relationships.
Right-click in the Relationships pane, select New, and then select Containment Relationship.
On the General page, do the following:
In the ID box, type MyMP.MyComputerRole2ContainsMyComputerRole1.
In the Display Name box, type My Computer Role 2 Contains My Computer Role 1.
Click Next.
On the Source and Target page, do the following:
In the Class ID (Source) box, select MyMP.MyComputerRole2.
In the Class ID (Target) box, select MyMP.MyComputerRole1.
Click Finish.
Select File, and then click Save.