Bu kural, bozuk veya kayıp DHCP veritabanıyla ilgili Hata Olaylarını kontrol eder.
DHCP sunucusu veritabanı bozulursa veya kaybedilirse, %SystemRoot%\System32\Dhcp klasöründe yer alan sunucu veritabanı dosyası (Dhcp.mdb), aynı dosyanın bir yedek kopyasıyla değiştirilerek geri yükleme yapılabilir.
DHCP Yöneticisi daha önce yedekleme yapmak için kullanıldıysa, %SystemRoot%\System32\Dhcp\Backup klasöründe yer alan sunucu veritabanı dosyasının yedek kopyasını edinebilirsiniz. Ayrıca, Dhcp.mdb dosyasını bir bant yedekleme ortamından veya başka bir yedekleme ortamından da geri yükleyebilirsiniz.
Bu prosedürleri gerçekleştirmek için Administrators grubunun üyesi olmanız veya size uygun temsil yetkisinin verilmesi gerekir.
DHCP veritabanının bir yedek kopyasını geri yüklemek için:
Başlat'a tıklayın, Tüm Programlar'a tıklayın, Komut İstemi'ne sağ tıklayın ve ardından Yönetici olarak çalıştır'a tıklayın.
net stop dhcpserver yazın ve ENTER tuşuna basın.
md c:\olddhcp yazın ve ENTER tuşuna basın.
move %SystemRoot%\system32\DHCP\*.* c:\olddhcp yazın ve ENTER tuşuna basın.
del %SystemRoot%\system32\DHCP\Dhcp.md yazın ve ENTER tuşuna basın.
copy %SystemRoot%\system32\dhcp\backup\jet\new\dhcp.mdb %SystemRoot%\system32\dhcp\dhcp.mdb yazın ve ENTER tuşuna basın.
net start dhcpserver yazın ve ENTER tuşuna basın.
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>