Questa regola controlla gli eventi di errore correlati a un database DHCP danneggiato o perso.
Se il database del server DHCP viene danneggiato o perso, è possibile ripristinarlo sostituendo il file di database del server (Dhcp.mdb), posto nella cartella %SystemRoot%\System32\Dhcp, con una copia di backup dello stesso file.
Se Gestore DHCP è stato utilizzato in precedenza per eseguire un backup, è possibile ottenere la copia di backup del file di database del server posto nella cartella %SystemRoot%\System32\Dhcp\Backup. È inoltre possibile ripristinare il file Dhcp.mdb da un backup su nastro o da altri supporti di backup.
Per eseguire queste procedure, è necessario essere un membro del gruppo Administrators oppure avere ricevuto in delega l'autorità appropriata.
Per ripristinare una copia di backup del database DHCP:
Fare clic sul pulsante Start, selezionare Tutti i programmi, Accessori, fare clic con il pulsante destro del mouse su Prompt dei comandi, quindi fare clic su Esegui come amministratore.
Digitare net stop dhcpserver, quindi premere INVIO.
Digitare md c:\olddhcp, quindi premere INVIO.
Digitare move %SystemRoot%\system32\DHCP\*.* c:\olddhcp, quindi premere INVIO.
Digitare del %SystemRoot%\system32\DHCP\Dhcp.md, quindi premere INVIO.
Digitare copy %SystemRoot%\system32\dhcp\backup\jet\new\dhcp.mdb %SystemRoot%\system32\dhcp\dhcp.mdb, quindi premere INVIO.
Digitare net start dhcpserver, quindi premere INVIO.
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>