Descobrir destino iSCSI no Windows Server 2012 R2

Microsoft.Windows.FileServices.Service.iSCSITarget.6.3.Discovery (Discovery)

Descobre uma instância da classe Destino iSCSI quando o recurso Destino iSCSI está instalado

Knowledge Base article:

Resumo

Esta regra descobre uma instância do serviço de destino iSCSI onde estiver instalada. A regra seja é destinada à função de serviços de arquivo do Windows Server 2012 R2 e será executada somente em servidores que tenham a função de serviços de arquivo habilitada e descoberta. O destino iSCSI é fornecido como parte da versão do Windows Server 2012 R2.

Element properties:

TargetMicrosoft.Windows.FileServices.6.3.FileServer
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper Default

Source Code:

<Discovery ID="Microsoft.Windows.FileServices.Service.iSCSITarget.6.3.Discovery" Enabled="true" Target="FileServices63!Microsoft.Windows.FileServices.6.3.FileServer" Remotable="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.FileServices.Service.iSCSITarget.6.3"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper">
<NameSpace>\\$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$\ROOT\CIMV2</NameSpace>
<Query>SELECT ID, Name FROM Win32_ServerFeature WHERE ID = '435'</Query>
<Frequency>14400</Frequency>
<ClassId>$MPElement[Name="Microsoft.Windows.FileServices.Service.iSCSITarget.6.3"]$</ClassId>
<InstanceSettings>
<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='Microsoft.Windows.FileServices.Service.iSCSITarget.6.3']/IQN$</Name>
<Value>iqn.1991-05.com.microsoft:$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name='System!System.Entity']/DisplayName$</Name>
<Value>$Target/Property[Type='System!System.Entity']/DisplayName$ (iSCSI Target)</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>