The following procedures show how to create containment relationships using both the Operations Manager 2007 Authoring Console and Visual Studio Authoring Extensions. This exercise is part of the System Center Operations Manager Management Pack Authoring Center.
This exercise applies to the following products:
Before you perform this procedure, you must first complete the following prerequisite procedures:
The Microsoft System Center team has validated this procedure as of the original version. We will continue to review any changes and periodically provide validations on later revisions as they are made. Please feel free to make any corrections or additions to this procedure that you think would assist other users
A sample of the completed code for each exercise is available in the TechNet Gallery. There is a separate sample for each exercise that includes the management pack completed at the end of that exercise and each preceding exercise. This strategy allows you to work through each exercise in order and then compare your results. For VSAE, this also includes the Visual Studio solution.
The relationships created in the following procedures have these characteristics.
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.
<
RelationshipType
ID
=
"MyMP.MyHealthRollupContainsMyComputerRole1"
Base
"System!System.Containment"
Abstract
"false"
Accessibility
"Internal"
>
Source
"Source"
Type
"MyMP.MyHealthRollup"
/>
Target
"Target"
"MyMP.MyComputerRole1"
</
DisplayString
ElementID
Name
>My Health Rollup Contains My Computer Role 1</
Description
></
"MyMP.MyComputerRole2ContainsMyComputerRole1"
"MyMP.MyComputerRole2"
>My Computer Role 2 Contains My Computer Role 1</
Richard Mueller edited Revision 2. Comment: Replace RGB values with color names in HTML to restore colors
Richard Mueller edited Revision 1. Comment: Remove blank headings and fix duplicate <a name> tags in HTML to TOC works properly
Richard Mueller edited Original. Comment: Removed (en-US) from title, added tags