MSSQL 2016: Always On-Ausgangswertermittlung

Microsoft.SQLServer.2016.AlwaysOn.AlwaysOnSeedDiscovery (Discovery)

Diese Ermittlung wird verwendet, um zu definieren, auf welchen Computern Always On aktiviert ist.

Knowledge Base article:

Zusammenfassung

Always On-Ausgangswertermittlung

Parameter, die außer Kraft gesetzt werden können

Name

Beschreibung

Standardwert

Aktiviert

Aktiviert oder deaktiviert den Workflow.

Ja

Häufigkeit (Sekunden)

Das periodische Intervall in Sekunden, in dem der Workflow ausgeführt werden soll.

14400

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

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

Source Code:

<Discovery ID="Microsoft.SQLServer.2016.AlwaysOn.AlwaysOnSeedDiscovery" Enabled="true" Target="MicrosoftSQLServer2016Discovery!Microsoft.SQLServer.2016.DBEngine" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.2016.AlwaysOn.AlwaysOnSeed"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>IsEnabled</AttributeName>
<Path>SOFTWARE\Microsoft\Microsoft SQL Server\$Target/Property[Type="MicrosoftSQLServer2016Discovery!Microsoft.SQLServer.2016.DBEngine"]/InstanceID$\MSSQLServer\HADR\HADR_Enabled</Path>
<PathType>1</PathType>
<AttributeType>2</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>14400</Frequency>
<ClassId>$MPElement[Name="Microsoft.SQLServer.2016.AlwaysOn.AlwaysOnSeed"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Microsoft.SQLServer.2016.AlwaysOn.AlwaysOnSeed"]/InstanceName$</Name>
<Value>$Target/Property[Type="MicrosoftSQLServer2016Discovery!Microsoft.SQLServer.2016.ServerRole"]/InstanceName$</Value>
</Setting>
<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="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Property[Type="System!System.Entity"]/DisplayName$ Always On Seed</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Values/IsEnabled</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Integer">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</Discovery>