DFS-R:RPC 注册

Microsoft.Windows.FileServer.DFSR.RPCRegistrationFailureMonitor (UnitMonitor)

此对象可监视 RPC 注册,如果检测到 DFS 复制无法启动 RPC 侦听器,将会创建“严重”警报。

Knowledge Base article:

摘要

此对象监视远程过程调用 (RPC) 注册并在检测到 DFS 复制无法启动 RPC 侦听器时创建“严重”警报。通过查找是否存在 DFS 复制事件 1208 来实现。

原因

此监视器的不正常状态表示 DFS 复制无法启动 RPC 侦听器并且 DFS Replication 服务已停止。与复制伙伴通信需要使用 RPC 侦听器。这可能是由以下原因引起的:

解决方案

重新启动 DFS Replication 服务

若要从 Operations Console 重新启动 DFS Replication 服务,请执行以下操作:

1. 单击停止 DFS Replication 服务

2. 单击启动 DFS Replication 服务

若要通过使用 sc 命令远程重新启动该服务,请打开命令提示符窗口,然后执行以下操作:

1. 若要停止该服务,请键入以下命令,其中 [servername] 是远程服务器的通用命名约定 (UNC) 路径:

sc[servername]stop dfsr

2. 若要确认该服务处于“已停止”状态,请键入以下命令:

sc[servername]query dfsr

3. 若要重新启动该服务,请键入以下命令:

sc[servername]start dfsr

注意:若要重新启动服务,您必须是受影响服务器上本地 Administrators 组的成员。您也可以使用服务管理单元、Windows PowerShell Start-ServiceStop-Service cmdlet,或命令行工具(例如 net stopnet start)来重新启动服务。

验证

此监视器将在解决问题后自动重置为正常状态。

若要从 Operations Console 确认服务处于 STARTED 状态,请单击查询 DFS Replication 服务状态

若要使用 sc 命令远程确认服务处于 STARTED 状态,请打开命令提示符窗口,然后键入以下命令:

sc[servername]query dfsr

注意:若要查询服务状态,您必须是受影响服务器上本地 Administrators 组的成员。

其他

DFS 复制事件 1208 (http://go.microsoft.com/fwlink/?LinkId=187117)

Element properties:

TargetMicrosoft.Windows.FileServer.DFSR.Service
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
DFS-R:DFS 复制无法启动 RPC 侦听器
DFS Replication 服务无法启动 RPC 侦听器。已在此计算机上禁用复制。此事件可能是由内存不足问题引起的。
其他信息:端口:{0} 错误: {1} ({2})
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServer.DFSR.RPCRegistrationFailureMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSR.Service" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.FileServer.DFSR.RPCRegistrationFailureMonitor_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Params/Param[1]$</AlertParameter1>
<AlertParameter2>$Data/Context/Params/Param[2]$</AlertParameter2>
<AlertParameter3>$Data/Context/Params/Param[3]$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>DFS Replication</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1208</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DFSR</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>DFS Replication</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DFSR</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1210</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1004</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>