MSSQL 2008: Populate SQL Server 2008 Mirroring Groups Group

Microsoft.SQLServer.2008.MirroringGroupsGroup.Discovery (Discovery)

This discovery rule populates SQL Server 2008 Mirroring Groups Group group with all SQL Server 2008 Mirroring Groups.

Knowledge Base article:

Summary

This discovery rule populates SQL Server 2008 Mirroring Groups Group group with all SQL Server 2008 Mirroring Groups.

Overridable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

Yes

Element properties:

TargetMicrosoft.SQLServer.2008.MirroringGroupsGroup
EnabledTrue
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DiscoveryDataSource DataSource Microsoft.SystemCenter.GroupPopulator Default

Source Code:

<Discovery ID="Microsoft.SQLServer.2008.MirroringGroupsGroup.Discovery" Target="SQL!Microsoft.SQLServer.2008.MirroringGroupsGroup" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="SQL!Microsoft.SQLServer.2008.MirroringGroupsGroup"/>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" TypeID="SC!Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$Target/Id$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Microsoft.SQLServer.2008.Mirroring.Group"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="Microsoft.SQLServer.2008.MirroringGroupsGroupContainsMirroringGroup"]$</RelationshipClass>
</MembershipRule>
</MembershipRules>
</DataSource>
</Discovery>