DFS-N:文件夹目标可用性

Microsoft.Windows.FileServer.DFSN.LinkTarget.AccessStateUnitMonitor (UnitMonitor)

启用后,此对象监视 DFS 文件夹(链接)目标的可用性,并且在无法访问文件夹目标时创建警报。

Knowledge Base article:

摘要

启用时,此对象监视作为 DFS 文件夹(链接)目标的共享文件夹的可用性。

原因

不正常状态表示某个文件夹目标处于脱机状态。文件夹目标可能由于以下原因而处于脱机状态:

解决方案

测试网络连接

若要测试受影响服务器的网络连接,请使用以下过程:

1. 打开命令提示符窗口,然后使用 ping 命令检查基本网络连接。如果 ping 命令失败,很可能是因为该服务器未运行,或具有需要本地访问才能解决的网络问题。如果在您的网络环境中阻止 Ping,请跳过此步骤。

2. 如果 ping 命令成功,请使用 nslookup 命令测试服务器在 DNS 中的注册情况。如果 nslookup 命令失败,则说明 DNS 可能存在问题。检查 DNS 服务器运行状况或与 DNS 服务器管理员联系。

3. 如果 nslookup 命令成功,很可能是因为共享文件夹处于脱机状态(可能是由于维护需要)或共享文件夹的权限存在问题。

验证

若要验证文件夹(链接)和文件夹目标是否正常运行,请使用以下过程:

1. 打开命令提示符窗口,然后使用 Dfsutil link\\[namespace\folder]> 命令,其中 [namespace] 是命名空间根路径,而 [folder] 是 DFS 文件夹,其文件夹目标是您要在线验证的目标(此命令在 Windows Server 2003 上不可用)。

2. 确认该文件夹的状态为 OK 且相应目标的状态为联机,然后重置 Operations Console 中的监视器。Operations Console 中的监视器应自动重置为“正常”状态。

Element properties:

TargetMicrosoft.Windows.FileServer.DFSN.Library.LinkTarget
Parent MonitorSystem.Health.AvailabilityState
CategoryCustom
EnabledFalse
Alert GenerateFalse
Alert Auto ResolveFalse
Monitor TypeMicrosoft.Windows.FileServer.DFSN.Library.LinTargetAvailabilityUnitMonitorType
RemotableTrue
AccessibilityPublic
RunAsMicrosoft.Windows.FileServer.DFSN.DFSTargetAccessAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServer.DFSN.LinkTarget.AccessStateUnitMonitor" Accessibility="Public" Enabled="false" Target="Microsoft.Windows.FileServer.DFSN.Library.LinkTarget" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" RunAs="Microsoft.Windows.FileServer.DFSN.DFSTargetAccessAccount" TypeID="Microsoft.Windows.FileServer.DFSN.Library.LinTargetAvailabilityUnitMonitorType" ConfirmDelivery="true">
<Category>Custom</Category>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateIdd1d8fd78aaae45eba1edc3c98ef2556c" MonitorTypeStateID="Accessible" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateIdf83c5987637544e2a1e8d8d1ce344c00" MonitorTypeStateID="NotAccessible" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>18000</IntervalSeconds>
<SyncTime/>
<TargetPath>$Target/Property[Type="Microsoft.Windows.FileServer.DFSN.Library.LinkTarget"]/TargetPath$</TargetPath>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>