The following procedures show how to create a discovery to populate groups using 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 revision #1. 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.
<
RuleId
>$MPElement$</
>
GroupInstanceId
>$MPElement[Name="MyMP.MyComputerGroup"]$</
MembershipRules
MembershipRule
MonitoringClass
>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</
RelationshipClass
>$MPElement[Name="SC!Microsoft.SystemCenter.ComputerGroupContainsComputer"]$</
Expression
Contains
>$MPElement[Name="MyMP.MyComputerRole1"]$</
</
<!-- GUID of the discovery. We will use $MPElement$ variable which specifies the current discovery. -->
<!-- GUID of the group we are populating. -->
>$MPElement[Name="MyMP.MyInstanceGroup"]$</
<!-- Rules to determine which instances to add to the group. In this case, we are adding all instances of MyComputerRole1. -->
>$MPElement[Name="SCIG!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</
<!-- Rules to determine which instances to add to the group. -->
<!-- In this case, we are adding all instances of Windows Computer that have at least one instance of MyComputerRole1. -->