MSSQL on Windows Replication: Subscription Discovery

Microsoft.SQLServer.Replication.Windows.Discovery.Subscription (Discovery)

The object discovery discovers all Subscriptions of a Subscriber of Microsoft SQL Server on Windows.

Knowledge Base article:

Summary

A Subscription is a request for a copy of a Publication to be delivered to a Subscriber. The Subscription defines what Publication will be received, where and when. There are two types of Subscriptions: push and pull. For more information about push and pull Subscriptions, see Subscribe to Publications..

External

Replication Publishing Model Overview

Overrideable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

Yes

Interval (seconds)

The recurring interval of time in seconds in which to run the workflow.

14400

Synchronization Time

The synchronization time specified by using a 24-hour format. May be omitted.

 

Timeout (seconds)

Specifies the time the workflow is allowed to run before being closed and marked as failed.

300

Timeout for database connection (seconds)

The workflow will fail and register an event if it cannot access the database during the specified period.

15

Element properties:

TargetMicrosoft.SQLServer.Replication.Windows.Subscriber
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.Replication.Windows.DataSource.SubscriptionDiscovery Microsoft.SQLServer.Core.RunAs.Discovery

Source Code:

<Discovery ID="Microsoft.SQLServer.Replication.Windows.Discovery.Subscription" Target="Microsoft.SQLServer.Replication.Windows.Subscriber" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.Replication.Windows.Subscription"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.Replication.Windows.DataSource.SubscriptionDiscovery" RunAs="SqlCoreLib!Microsoft.SQLServer.Core.RunAs.Discovery">
<MachineName>$Target/Host/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/MachineName$</MachineName>
<NetbiosComputerName>$Target/Host/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/NetbiosComputerName$</NetbiosComputerName>
<InstanceName>$Target/Host/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/InstanceName$</InstanceName>
<ConnectionString>$Target/Host/Property[Type='SqlCoreLib!Microsoft.SQLServer.Core.DBEngine']/ConnectionString$</ConnectionString>
<MonitoringType>$Target/Host/Property[Type="SqlDiscW!Microsoft.SQLServer.Windows.DBEngine"]/MonitoringType$</MonitoringType>
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<SqlTimeoutSeconds>15</SqlTimeoutSeconds>
<ClassId>$MPElement[Name='Microsoft.SQLServer.Replication.Windows.Subscription']$</ClassId>
<SubscriptionDatabaseRelationshipId>$MPElement[Name='MSRL!Microsoft.SQLServer.Replication.Core.GenericSubscriptionRefersSystemDatabase']$</SubscriptionDatabaseRelationshipId>
<SqlDatabaseClassId>$MPElement[Name='SqlDiscW!Microsoft.SQLServer.Windows.Database']$</SqlDatabaseClassId>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>