Discover Files

Microsoft.SQLServer.2012.DBFilesDiscoveryRule (Discovery)

This object discovery discovers the file information for each SQL Server 2012 Database. The discovery is used in specific databases or DB Engine instances, where a deeper file monitoring is required.

Knowledge Base article:

Summary

This object discovery discovers the file information for each SQL Server 2012 Database. The discovery is used in specific databases or DB Engine instances, where a deeper file monitoring is required.

Overridable 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.2012.DBEngine
EnabledTrue
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2012.DBFilesDiscovery Default

Source Code:

<Discovery ID="Microsoft.SQLServer.2012.DBFilesDiscoveryRule" Enabled="true" Target="Microsoft.SQLServer.2012.DBEngine">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.2012.DBFile">
<Property TypeID="SQL!Microsoft.SQLServer.DBFile" PropertyID="FileID"/>
<Property TypeID="SQL!Microsoft.SQLServer.DBFile" PropertyID="FileName"/>
<Property TypeID="SQL!Microsoft.SQLServer.DBFile" PropertyID="FilePath"/>
<Property TypeID="SQL!Microsoft.SQLServer.DBFile" PropertyID="Size"/>
<Property TypeID="SQL!Microsoft.SQLServer.DBFile" PropertyID="Drive"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.SQLServer.2012.DBLogFile">
<Property TypeID="SQL!Microsoft.SQLServer.DBFile" PropertyID="FileID"/>
<Property TypeID="SQL!Microsoft.SQLServer.DBFile" PropertyID="FileName"/>
<Property TypeID="SQL!Microsoft.SQLServer.DBFile" PropertyID="FilePath"/>
<Property TypeID="SQL!Microsoft.SQLServer.DBFile" PropertyID="Size"/>
<Property TypeID="SQL!Microsoft.SQLServer.DBFile" PropertyID="Drive"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2012.DBFilesDiscovery">
<NetworkName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</NetworkName>
<SQLConnectionString>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ConnectionString$</SQLConnectionString>
<SQLInstanceName>$Target/Property[Type="SQL!Microsoft.SQLServer.ServerRole"]/InstanceName$</SQLInstanceName>
<TimeoutSeconds>300</TimeoutSeconds>
<TcpPort>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/TcpPort$</TcpPort>
</DataSource>
</Discovery>