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>