DHCP バックアップ データベース エラー ルール

Microsoft.Windows.DHCPServer.Library.Database.BackupAndRestore.Error.Rule (Rule)

Knowledge Base article:

概要

このルールは、壊れているか、失われている DHCP データベースに関連するエラー イベントをチェックします。

解決方法

DHCP サーバーのデータベースが壊れるか、失われた場合は、%SystemRoot%\System32\Dhcp フォルダーにあるサーバー データベース ファイル (Dhcp.mdb) を同じファイルのバックアップ コピーで置き換えることにより回復できます。

以前に DHCP マネージャーを使用してバックアップを実行している場合、%SystemRoot%\System32\Dhcp\Backup フォルダーにあるサーバー データベース ファイルのバックアップ コピーを取得できます。テープ バックアップまたは他のバックアップ メディアから Dhcp.mdb ファイルを復元することもできます。

これらの手順を実行するには、Administrators グループのメンバーであるか、適切な権限が委任されている必要があります。

DHCP データベースのバックアップ コピーを復元するには、次の手順を実行します。

Element properties:

TargetMicrosoft.Windows.DHCPServer.Library.Database
CategoryEventCollection
EnabledTrue
Event_ID1018
Alert GenerateFalse
RemotableTrue
Event LogSystem

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Microsoft.Windows.DHCPServer.Library.ActionAccount
WriteToDB WriteAction Microsoft.SystemCenter.CollectEvent Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishEventData Default

Source Code:

<Rule ID="Microsoft.Windows.DHCPServer.Library.Database.BackupAndRestore.Error.Rule" Enabled="true" Target="Microsoft.Windows.DHCPServer.Library.Database" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" RunAs="Microsoft.Windows.DHCPServer.Library.ActionAccount" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-DHCP-Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DHCPServer</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1018</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectEvent"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishEventData"/>
</WriteActions>
</Rule>