DFS-N:服务状态

Microsoft.Windows.FileServer.DFSN.6.3.Service.AvailabilityState (UnitMonitor)

此监视器检查 DFS Namespace 服务是否正在运行。

Knowledge Base article:

摘要

由于 DFS Namespace 服务未运行,命名空间服务器处于脱机状态。

原因

DFS Namespace 服务已设置为自动启动,但未在运行。服务停止的原因有很多,包括:

解决方案

重新启动 DFS Namespace 服务

若要重新启动该服务,请使用服务管理单元、Windows PowerShell Start-ServiceStop-Service cmdlet 或命令行工具(如 net stopnet start)。若要通过使用 sc 命令远程重新启动该服务,请打开命令提示符窗口,然后执行以下操作:

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

sc [servername] stop dfs

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

sc [servername] query dfs

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

sc [servername] start dfs

注意:若要重新启动服务,您必须是受影响服务器上本地 Administrators 组的成员。

如果这些操作未能解决问题,很可能还存在其他问题,需要进行深入的故障排除。

验证

此监视器在服务启动之后重置为“正常”状态。若要确认该服务处于 STARTED 状态,请键入以下命令:

sc [servername] query dfs

Element properties:

TargetMicrosoft.Windows.FileServer.DFSN.6.3.Service
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
DFS-N:DFS Namespace 服务未在运行
由于 DFS Namespace 服务未运行,以下命名空间服务器处于脱机状态: {0}.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServer.DFSN.6.3.Service.AvailabilityState" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSN.6.3.Service" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.FileServer.DFSN.6.3.Service.AvailabilityState_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>High</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>Dfs</ServiceName>
<CheckStartupType>false</CheckStartupType>
</Configuration>
</UnitMonitor>