MSSQL on Windows: Discover SQL Server Database Engines (Local)

Microsoft.SQLServer.Windows.LocalDBEngineDiscovery (Discovery)

This rule discovers SQL Server DB Engines on Windows (Local).

Knowledge Base article:

Summary

This rule discovers SQL Server DB Engines on Windows (Local).

Overridable 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

Mixed Monitoring

Specifies the names of the instances that should be monitored in mixed mode. Use comma to divide instance names. Use ‘*‘ to monitor all local DB Engines in mixed mode.

 

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

Exclude List

A comma-separated list of DB Engines that must be excluded from discovery. Use a wildcard character ‘*’ to exclude all DB Engines. Otherwise, use conditions like ‘*_test’ to exclude DB Engines, the names of which end with _test, ‘Test*’ to exclude DB Engines, the names of which start with Test, or a ‘*test*’ condition to exclude DB Engines that have a test entry in any part of the DB Engine’s name.

 

Versions of SQL Server to be excluded

A comma-separated list of SQL Server versions to be excluded from discovery. Example: ‘2012, 2016‘.

 

Editions of SQL Server to be excluded

A comma-separated list of SQL Server editions to be excluded from discovery. Supported values: Enterprise, Standard, Web, Developer, Express, Evaluation.

 

Element properties:

TargetMicrosoft.SQLServer.Windows.LocalDiscoverySeed
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.Windows.DataSource.LocalDBEngineDiscovery Default

Source Code:

<Discovery ID="Microsoft.SQLServer.Windows.LocalDBEngineDiscovery" Enabled="true" Target="Microsoft.SQLServer.Windows.LocalDiscoverySeed">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.Windows.LocalDBEngine"/>
<DiscoveryClass TypeID="Microsoft.SQLServer.Windows.LocalClusteredDBEngineDiscoverySeed"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.Windows.DataSource.LocalDBEngineDiscovery">
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
<PrincipalName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</PrincipalName>
<AgentlessMonitoring/>
<ExcludeList/>
<ExcludedVersions/>
<ExcludedEditions/>
</DataSource>
</Discovery>