NFS:使用者名稱對應 (UNMP) 服務連線

Microsoft.Windows.FileServices.Service.NFS.6.3.Server.UserNameMapping.UNMPConnection (UnitMonitor)

此物件會監視使用者名稱對應服務連線,並在 Server for NFS 無法取得對應資訊且此監視器已啟用警示時,產生警示。

Knowledge Base article:

摘要

此物件會監視使用者名稱對應服務連線,並在 Server for NFS 無法取得對應資訊且此監視器已啟用警示時,產生警示。

使用者名稱對應會為 Windows 和 UNIX 網域之間的使用者帳戶建立關聯。使用者名稱對應會為 Windows 和 UNIX 使用者名稱建立關聯,以便登入 UNIX 網域的使用者能夠存取 Windows 上的共用資源,而無需另外登入 Windows 網域。

原因

如果未將 Server for NFS 設定為使用 Active Directory 網域服務 (AD DS) 或使用者名稱對應作為 Windows 至 UNIX 身分識別對應來源,此監視器會進入「嚴重」健全狀況狀態。

如果健全狀況狀態處於未知,表示此物件的監視尚未開始。

解決方式

設定 Server for NFS 以從使用者名稱對應來源擷取身分識別對應資料

若要設定 Server for NFS 以擷取身分識別對應資料,請使用以下程序:

1. 在受影響的伺服器上執行提高權限的命令提示字元,輸入 nfsadmin mapping 以顯示身分識別對應設定。

2. 輸入 nfsadmin mapping config maplookup=yes mapsvr=[mapserverComputer]。

驗證

若要確認已針對使用者名稱對應正確設定 Server for NFS,請使用以下程序:

1. 在受影響的伺服器上執行提高權限的命令提示字元,輸入 nfsadmin mapping

2. 確認清單中的 [對應伺服器查詢] 欄位設為 [已啟用]。

此監視器會在 Server for NFS 重新啟動之後自動重設為狀況良好狀態。

其他

事件識別碼 1005 (http://go.microsoft.com/fwlink/?LinkId=185990)

事件識別碼 1056 (http://go.microsoft.com/fwlink/?LinkId=185997)

如需有關設定對應資料的詳細資訊,請參閱 指定 Server for NFS 取得 Windows 使用者和群組資訊的方式 (http://go.microsoft.com/fwlink/?LinkId=185991)。

如需有關設定 Server for NFS 的詳細資訊,請參閱 用於網路檔案系統的服務 (http://go.microsoft.com/fwlink/?LinkId=185983)。

Element properties:

TargetMicrosoft.Windows.FileServices.Service.NFS.6.3
Parent MonitorMicrosoft.Windows.FileServices.Service.NFS.6.3.Server.UserNameMapping
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
NFS:使用者名稱對應 (UNMP) 服務連線
事件描述: {0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServices.Service.NFS.6.3.Server.UserNameMapping.UNMPConnection" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServices.Service.NFS.6.3" ParentMonitorID="Microsoft.Windows.FileServices.Service.NFS.6.3.Server.UserNameMapping" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.FileServices.Service.NFS.6.3.Server.UserNameMapping.UNMPConnection_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Warning"/>
<OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>Microsoft-Windows-ServicesForNFS-Server/IdentityMapping</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-ServicesForNFS-Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1005</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1056</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>Microsoft-Windows-ServicesForNFS-Server/IdentityMapping</SecondLogName>
<SecondExpression>
<Or>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-ServicesForNFS-Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1007</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1055</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</Expression>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-ServicesForNFS-NFSServerService</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">4016</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">4010</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</Expression>
</Or>
</SecondExpression>
</Configuration>
</UnitMonitor>