DFS-N:用戶端 DFS 資料夾可用性

Microsoft.Windows.FileServer.DFSN.Client.HealthStateUnitMonitor (UnitMonitor)

此規則會從用戶端電腦存取 DFS 資料夾 (連結),並在資料夾無法存取時進入「嚴重」健全狀況狀態。

Knowledge Base article:

摘要

此規則會監視 DFS 資料夾 (連結) 的可用性,方法是透過從用戶端電腦存取這些資料夾,並在資料夾無法存取時進入「嚴重」健全狀況狀態。

設定

覆寫此監視器上的 UNCPaths 參數以指定要監視的 DFS 資料夾。請使用冒號「:」來分隔多個資料夾。

原因

此監視器在啟用後若無法存取在監視器的 UNCPaths 參數中列出的任一路徑,便會進入「嚴重」健全狀況狀態。如果已啟用監視器的用戶端電腦無法將 DFS 路徑解析為實際的資料夾目標,或如果資料夾目標已離線或無法存取,便可能會發生此情況。

解決方式

在 [Operations 主控台] 中按一下 [用戶端警示] 檢視,以查看有哪些路徑無法存取,然後執行以下動作:

檢查命名空間健全狀況

使用 Dfsdiag /testreferral 命令檢查命名空間的健全狀況。若要在 [Operations 主控台] 中執行此操作,請使用以下程序:

如果有任一測試失敗,請將此問題的解決方式向上呈報給能夠疑難排解 DFS 命名空間問題的技術人員。

驗證

若要確認資料夾 (連結) 和資料夾目標正確運作,請使用 Dfsutil link 命令。若要在 [Operations 主控台] 中執行此操作,請使用以下程序:

1. 按一下 [Dfsutil] 工作。

2. 在 [執行工作 – DFSUTIL] 對話方塊中按一下 [覆寫]。

3. 在 [DfsServerTask.CommandLine] 方塊中輸入 link \\[namespace\folder],其中 [namespace] 是命名空間根目錄,而 [folder] 是您想確認其資料夾目標處於線上狀態的 DFS 資料夾。

4. 確認資料夾的狀態為 [良好] 且適當目標的狀態為 [線上]。

如果連結 (資料夾) 的狀態並非 [良好],請將此問題的解決方式向上呈報給能夠疑難排解 DFS 命名空間問題的技術人員。如果資料夾目標為 [離線] 狀態,請疑難排解主控資料夾目標的伺服器。

Element properties:

TargetMicrosoft.Windows.FileServer.DFSN.Client
Parent MonitorSystem.Health.AvailabilityState
CategoryCustom
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveFalse
Monitor TypeMicrosoft.Windows.FileServer.DFSN.Library.DFSPathAvailabilityUnitMonitorType
RemotableTrue
AccessibilityPublic
RunAsMicrosoft.Windows.FileServer.DFSN.DFSTargetAccessAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServer.DFSN.Client.HealthStateUnitMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSN.Client" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" RunAs="Microsoft.Windows.FileServer.DFSN.DFSTargetAccessAccount" TypeID="Microsoft.Windows.FileServer.DFSN.Library.DFSPathAvailabilityUnitMonitorType" ConfirmDelivery="true">
<Category>Custom</Category>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateId48c71c866f164610bffb981b14a160cc" MonitorTypeStateID="Accessible" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateId9c6deac0737c4d379ca8fbcc5b818b30" MonitorTypeStateID="NotAccessible" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>3600</IntervalSeconds>
<SyncTime/>
<UNCPaths/>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>