このルールは、監視対象のサーバー上のレプリケーション グループを検出します。
このルールは、監視対象のサーバー上のレプリケーション グループを検出します。この検出ルールは、DfsrLocalMemberInfo WMI クラスを照会してレプリケーション グループを見つけ、次のようなグループのプロパティを検出します。
レプリケーション グループ名
レプリケーション グループに属するメンバー サーバー
レプリケーション グループの GUID
メンバーの GUID
この検出ルールでは、レプリケート フォルダーをホストしているすべてのコンピューターをエージェント プロキシとして機能するようにする必要があります。エージェント プロキシ設定を有効にするには、次の手順を使用します。
1. Operations Console を開き、[管理] をクリックします。
2. [管理] ウィンドウで [エージェントで管理] をクリックします。
3. 監視するサーバーをダブルクリックします。
4. [セキュリティ] タブをクリックします。
5. [このエージェントがプロキシとして動作し、他のコンピューター上の管理オブジェクトを検出できるようにする] を選択します。
6. DFS レプリケーションを実行している各サーバーで手順 3 ~ 5 を繰り返します。
System Center Operations Manager 2007 用のファイル サービス管理パック ガイド (http://go.microsoft.com/fwlink/?LinkId=182615)
DfsrLocalMemberInfo WMI クラスに関する情報 (MSDN) (http://go.microsoft.com/fwlink/?LinkID=165538)
Target | Microsoft.Windows.FileServer.DFSR.ReplicationGroupMember |
Enabled | True |
Frequency | 14400 |
Remotable | False |
Discovered Classes and their attribuets: |
---|
|
Discovered relationships and their attribuets: |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.TimedScript.DiscoveryProvider | Microsoft.Windows.FileServer.DFSR.MonitoringAccount |
<Discovery ID="Microsoft.Windows.FileServer.DFSR.ReplicationGroupDiscovery" Enabled="true" Target="Microsoft.Windows.FileServer.DFSR.ReplicationGroupMember" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.FileServer.DFSR.ReplicationGroup">
<Property TypeID="Microsoft.Windows.FileServer.DFSR.ReplicationGroup" PropertyID="ReplicationGroupGUID"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.Windows.FileServer.DFSR.ReplicationGroupMember">
<Property TypeID="Microsoft.Windows.FileServer.DFSR.ReplicationGroupMember" PropertyID="MemberGUID"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="Microsoft.Windows.FileServer.DFSR.ReplicationGroup.Contains.ReplicationGroupMembers"/>
</DiscoveryTypes>
<DataSource ID="DS" RunAs="Microsoft.Windows.FileServer.DFSR.MonitoringAccount" TypeID="Windows!Microsoft.Windows.TimedScript.DiscoveryProvider">
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<ScriptName>ReplicationGroupMembersDiscovery.vbs</ScriptName>
<Arguments>0 $MPElement$ $Target/Id$ $Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$ $Target/Property[Type="Microsoft.Windows.FileServer.DFSR.ReplicationGroupMember"]/ReplicationGroupGUID$ "$Target/Property[Type="Microsoft.Windows.FileServer.DFSR.ReplicationGroupMember"]/RGName$" $Target/Property[Type="Microsoft.Windows.FileServer.DFSR.ReplicationGroupMember"]/MemberGUID$</Arguments>
<ScriptBody>
Option Explicit
On Error Resume Next
Dim SourceType, SourceID, ManagedEntityId, oArgs, oAPI, ReplicationGroupId, ReplicationGroupName, ReplicationMemberId, sDfsrServerName
SetLocale("en-us")
Set oAPI = CreateObject("MOM.ScriptAPI")
Set oArgs = WScript.Arguments
if oArgs.Count < 7 Then
call oAPI.LogScriptEvent("ReplicationGroupMembersDiscovery.vbs", 100, 1, "Expected 7 arguments. There were only " & oArgs.Count & " arguments. Exiting script.")
Wscript.Quit -1
End If
Dim oDiscData, oRGMembers, oRel, oReplicationGroup
SourceType = oArgs(0)
SourceId = oArgs(1)
ManagedEntityId = oArgs(2)
sDfsrServerName = oArgs(3)
ReplicationGroupId = oArgs(4)
ReplicationGroupName = oArgs(5)
ReplicationMemberId = oArgs(6)
set oDiscData = oAPI.CreateDiscoveryData(SourceType, SourceId, ManagedEntityId)
set oReplicationGroup = oDiscData.CreateClassInstance("$MPElement[Name='Microsoft.Windows.FileServer.DFSR.ReplicationGroup']$")
call oReplicationGroup.AddProperty("$MPElement[Name='Microsoft.Windows.FileServer.DFSR.ReplicationGroup']/ReplicationGroupGUID$", ReplicationGroupId)
call oReplicationGroup.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", ReplicationGroupName)
Call oDiscData.AddInstance(oReplicationGroup)
set oRGMembers = oDiscData.CreateClassInstance("$MPElement[Name='Microsoft.Windows.FileServer.DFSR.ReplicationGroupMember']$")
call oRGMembers.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", sDfsrServerName)
call oRGMembers.AddProperty("$MPElement[Name='Microsoft.Windows.FileServer.DFSR.ReplicationGroupMember']/MemberGUID$", ReplicationMemberId)
call oRGMembers.AddProperty("$MPElement[Name='Microsoft.Windows.FileServer.DFSR.ReplicationGroupMember']/ReplicationGroupGUID$", ReplicationGroupId)
Call oDiscData.AddInstance(oRGMembers)
Set oRel = oDiscData.CreateRelationshipInstance("$MPElement[Name='Microsoft.Windows.FileServer.DFSR.ReplicationGroup.Contains.ReplicationGroupMembers']$")
oRel.Source = oReplicationGroup
oRel.Target = oRGMembers
Call oDiscData.AddInstance(oRel)
Call oAPI.Return(oDiscData)
</ScriptBody>
<TimeoutSeconds>900</TimeoutSeconds>
</DataSource>
</Discovery>