MSSQL 2014: Discover Filegroups

Microsoft.SQLServer.2014.DBFileGroupDiscoveryRule (Discovery)

This discovery rule discovers the Filegroup information for each SQL Server 2014 Database.

Knowledge Base article:

Summary

This discovery rule discovers the Filegroup information for each SQL Server 2014 Database.

Overrideable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

Yes

Timeout (seconds)

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

300

Element properties:

TargetMicrosoft.SQLServer.2014.DBEngine
EnabledTrue
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2014.DBFileGroupDiscovery Default

Source Code:

<Discovery ID="Microsoft.SQLServer.2014.DBFileGroupDiscoveryRule" Enabled="true" Target="Microsoft.SQLServer.2014.DBEngine">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.2014.DBFileGroup">
<Property TypeID="Microsoft.SQLServer.2014.DBFileGroup" PropertyID="GroupID"/>
<Property TypeID="Microsoft.SQLServer.2014.FileGroup" PropertyID="GroupName"/>
<Property TypeID="Microsoft.SQLServer.2014.FileGroup" PropertyID="ReadOnly"/>
<Property TypeID="Microsoft.SQLServer.2014.FileGroup" PropertyID="TypeDesc"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2014.DBFileGroupDiscovery">
<NetworkName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</NetworkName>
<SQLConnectionString>$Target/Property[Type="Microsoft.SQLServer.2014.DBEngine"]/ConnectionString$</SQLConnectionString>
<SQLInstanceName>$Target/Property[Type="Microsoft.SQLServer.2014.ServerRole"]/InstanceName$</SQLInstanceName>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>