DHCP 用于数据库需要执行迁移步骤的监视器

Microsoft.Windows.DHCPServer.Library.Database.UnitMonitor.Migration.1 (UnitMonitor)

Knowledge Base article:

解决方案

当 DHCP 服务在升级后首次启动时,它检测到数据库需要进行转换。然后它将启动转换进程 Jetconv.exe。(如果另一项服务已启用 Jetconv.exe,则不能启动第二个 Jetconv.exe 进程。)在启动转换进程之前,系统会要求用户进行确认。如果用户单击“确定”,则 DHCP 服务将停止并开始转换。Jetconv.exe 会将所有已安装服务(DHCP、WINS 和 RPL)的数据库转换为新的数据库格式。

成功转换 DHCP 数据库之后,DHCP 服务器服务将自动重新启动。

在启动转换进程之前,请记住以下准则:

在转换数据库的过程中,不得重新启动服务。若要检查转换状态,请使用事件查看器来查看 Jetconv.exe 进程的应用程序事件日志。

如果此数据库自动转换过程失败,可以使用 winnt\system32\upg351db.exe 手动转换数据库。

同样,如果这是您自 DHCP 从 Windows NT 3.51 升级后首次启动它,则您需要对 DHCP 数据库运行转换工具(winnt\system32 文件夹中的 upg351db.exe),以将 DHCP 数据库转换为改进后的新数据库格式。完成数据库转换后,请重新启动 DHCP。

若要执行这些过程,您必须是管理员组的成员,或者您必须被委派了适当的权限。

若要升级数据库,请执行以下操作:

Element properties:

TargetMicrosoft.Windows.DHCPServer.Library.Database
Parent MonitorSystem.Health.ConfigurationState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.SingleEventLogManualReset2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
DHCP 用于数据库需要执行迁移步骤的监视器
{0}
RunAsMicrosoft.Windows.DHCPServer.Library.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.DHCPServer.Library.Database.UnitMonitor.Migration.1" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DHCPServer.Library.Database" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.SingleEventLogManualReset2StateMonitorType" ConfirmDelivery="true" RunAs="Microsoft.Windows.DHCPServer.Library.ActionAccount">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DHCPServer.Library.Database.UnitMonitor.Migration.1_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="EventRaised" MonitorTypeStateID="EventRaised" HealthState="Error"/>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<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">1022</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>