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. 確認資料夾的狀態為 [良好] 且適當目標的狀態為 [線上],然後重設 [Operations 主控台] 中的監視器。[Operations 主控台] 中的監視器應會自動重設為狀況良好狀態。

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>