This documentation is archived and is not being maintained.

How to Populate a Group

Updated: March 1, 2010

Applies To: System Center Operations Manager 2007

The following procedures show how to create a discovery to populate groups in the Operations Manager 2007 Authoring console. Before you perform these procedures, you must complete the following prerequisite procedures:

To populate an instance group

  1. Select Health Model, and then select Discoveries.

  2. Right-click in the right side pane, select New, and then select Custom Discovery.

  3. In the Choose a unique identifier box, type MyMP.Discovery.Populate MyInstanceGroup.

  4. On the General tab, do the following:

    1. In the Name box, type Populate My Instance Group.

    2. In the Target box, select MyMP.MyInstanceGroup.

  5. On the Discovered Classes tab, do the following:

    1. Click Add above the Discovered relationships and their attributes pane and select Add discovered relationship.

    2. In the Management Pack Relationship Chooser box, select Microsoft.SystemCenter.InstanceGroupContainsEntities, and then click OK.

  6. On the Configuration tab, do the following:

    1. Select Browse for a type.

    2. In the Choose module type box, select Microsoft.SystemCenter.GroupPopulator.

    3. In the Module ID box, type GroupPopulator. Click OK.

    4. In the Value column of the RuleId row, type $MPElement$.

    5. In the Value column of the GroupInstanceId row, type $MPElement[Name="MyMP.MyInstanceGroup"]$.

    6. In the Value column of the >MonitoringClass row, type $MPElement[Name="MyMP.MyComputerRole1"]$.

    7. In the Value column of the >>RelationshipClass row, type $MPElement[Name="SCIG!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$. If an alias other than SCIG is used, this string should be replaced with the appropriate alias.

  7. Click OK.

  8. Select File, and then click Save.

To populate a computer group

  1. Select Health Model, and then select Discoveries.

  2. Right-click in the right-side pane, select New, and then select Custom Discovery.

  3. In the Choose a unique identifier box, type MyMP.Discovery.PopulateMyComputerGroup.

  4. On the General tab, do the following:

    1. In the Name box, type Populate My Computer Group.

    2. In the Target box, select MyMP.MyComputerGroup.

  5. On the Discovered Classes tab, do the following:

    1. Click Add above the Discovered relationships and their attributes pane, and select Add discovered relationship.

    2. Select Microsoft.SystemCenter.ComputerGroupContainsComputer. Click OK.

  6. On the Configuration page, do the following:

    1. Select Browse for a type.

    2. In the Choose module type box, select Microsoft.SystemCenter.GroupPopulator.

    3. In the Module ID box, type GroupPopulator. Click OK.

    4. Click Edit to start the external editor.

    5. Copy and paste the following XML code between the Configuration tags.

      <RuleId>$MPElement$</RuleId>
        <GroupInstanceId>$MPElement[Name="MyMP.MyComputerGroup"]$</GroupInstanceId>
        <MembershipRules>
          <MembershipRule>
            <MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
            <RelationshipClass>$MPElement[Name="SC!Microsoft.SystemCenter.ComputerGroupContainsComputer"]$</RelationshipClass>
            <Expression>
              <Contains>
                <MonitoringClass>$MPElement[Name="MyMP.MyComputerRole1"]$</MonitoringClass>
              </Contains>
            </Expression>
          </MembershipRule>
        </MembershipRules>
      
    6. Close the external editor, and save the configuration in the Authoring console.

    7. Click OK.

  7. Select File, and then click Save.

Show: