磁碟分割對邏輯磁碟探索規則

Microsoft.Windows.Server.2008.DiskPartitionContainsLogicalDisk.Discovery (Discovery)

此規則會探索磁碟分割與邏輯磁碟之間的關聯性

Knowledge Base article:

摘要

此探索規則會探索名為「磁碟分割包含邏輯磁碟」的 Windows 伺服器關聯性類別,並於其中填入「磁碟分割包含邏輯磁碟」關聯性的執行個體。

Element properties:

TargetMicrosoft.Windows.Server.2008.DiskPartition
EnabledTrue
Frequency86580
RemotableFalse

Object Discovery Details:

Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DiscoveryDataSource DataSource Microsoft.Windows.WmiProviderWithRelationshipSnapshotDataMapper Default

Source Code:

<Discovery ID="Microsoft.Windows.Server.2008.DiskPartitionContainsLogicalDisk.Discovery" Enabled="true" Target="Microsoft.Windows.Server.2008.DiskPartition">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryRelationship TypeID="Microsoft.Windows.Server.2008.DiskPartitionContainsLogicalDisk"/>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" TypeID="Windows!Microsoft.Windows.WmiProviderWithRelationshipSnapshotDataMapper">
<NameSpace>\\$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$\root\cimv2</NameSpace>
<Query>associators of {win32_diskpartition='$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$'} where ResultClass=Win32_LogicalDisk</Query>
<Frequency>86580</Frequency>
<RelationshipId>$MPElement[Name="Microsoft.Windows.Server.2008.DiskPartitionContainsLogicalDisk"]$</RelationshipId>
<SourceRoleSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$</Value>
</Setting>
</Settings>
</SourceRoleSettings>
<TargetRoleSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.LogicalDevice"]/DeviceID$</Name>
<Value>$Data/Property[@Name='DeviceID']$</Value>
</Setting>
</Settings>
</TargetRoleSettings>
</DataSource>
</Discovery>