此规则检查与已损坏或丢失的 DHCP 数据库相关的错误事件。
如果 DHCP 服务器数据库已损坏或丢失,则可以通过将位于 %SystemRoot%\System32\Dhcp 文件夹中的服务器数据库文件 (Dhcp.mdb) 替换为该文件的备份副本来进行还原。
如果先前已使用 DHCP 管理器执行备份操作,则可以获取位于 %SystemRoot%\System32\Dhcp\Backup 文件夹中的服务器数据库文件的备份副本。也可以从磁带备份或其他备份媒体中还原该 Dhcp.mdb 文件。
若要执行这些过程,您必须是管理员组的成员,或者您必须被委派了适当的权限。
若要还原 DHCP 数据库的备份副本,请执行以下操作:
单击“开始”,单击“所有程序”,再单击“附件”,右键单击“命令提示符”,然后单击“以管理员身份运行”。
键入 net stop dhcpserver,然后按 Enter。
键入 md c:\olddhcp,然后按 Enter。
键入 move %系统根目录%\system32\DHCP\*.* c:\olddhcp,然后按 Enter。
键入 del %系统根目录%\system32\DHCP\Dhcp.md,然后按 Enter。
键入 copy %系统根目录%\system32\dhcp\backup\jet\new\dhcp.mdb %系统根目录%\system32\dhcp\dhcp.mdb,然后按 Enter。
键入 net start dhcpserver,然后按 Enter。
Target | Microsoft.Windows.DHCPServer.Library.Database |
Category | EventCollection |
Enabled | True |
Event_ID | 1018 |
Alert Generate | False |
Remotable | True |
Event Log | System |
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 |
<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>