WMI provider to get notification about the state change of the cluster object filtered by Cluster Adapter Id

Microsoft.Windows.Cluster.WmiEventProviderById (DataSourceModuleType)

WMI State change Provider for Windows Server Cluster filtered by Adapter Id.

Element properties:

TypeDataSourceModuleType
IsolationAny
AccessibilityInternal
RunAsMicrosoft.Windows.Cluster.PrivilegedAccount
OutputTypeSystem.PropertyBagData

Member Modules:

ID Module Type TypeId RunAs 
WmiEventProvider DataSource Microsoft.Windows.WmiProvider Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
PollIntervalint$Config/PollInterval$WMI poll intervalIndicates how often is WMI connected and polled for results.

Source Code:

<DataSourceModuleType ID="Microsoft.Windows.Cluster.WmiEventProviderById" Accessibility="Internal" RunAs="Cluster!Microsoft.Windows.Cluster.PrivilegedAccount" Batching="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ClusterObjectName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="PollInterval" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="PollInterval" Selector="$Config/PollInterval$" ParameterType="int"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<DataSource ID="WmiEventProvider" TypeID="Windows!Microsoft.Windows.WmiProvider">
<NameSpace>ROOT\MSCLUSTER</NameSpace>
<Query>SELECT Name, State FROM MSCLUSTER_NetworkInterface WHERE AdapterId="$Config/ClusterObjectName$"</Query>
<Frequency>$Config/PollInterval$</Frequency>
</DataSource>
</MemberModules>
<Composition>
<Node ID="WmiEventProvider"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.PropertyBagData</OutputType>
</DataSourceModuleType>