Partager via


MSFT_DfsrConnectionInfo class

This class provides statistical and operational information for each incoming and outgoing connection of the local replication group members.

Syntax

[ClassVersion("1.0.0"), dynamic, provider("DfsrWMIV2"), AMENDMENT]
class MSFT_DfsrConnectionInfo
{
  string   ConnectionGuid;
  string   MemberGuid;
  string   MemberName;
  string   PartnerGuid;
  string   PartnerName;
  string   ReplicationGroupGuid;
  string   ReplicationGroupName;
  boolean  Inbound;
  uint32   State;
  datetime LastSyncTime;
  uint32   LastSyncDuration;
  datetime LastSuccessfulSyncTime;
  datetime NextSyncTime;
  uint32   LastErrorCode;
  uint32   LastErrorMessageId;
};

Members

The MSFT_DfsrConnectionInfo class has these types of members:

Methods

The MSFT_DfsrConnectionInfo class has these methods.

Method Description
CheckConnectivity Checks connectivity with the partner's computer.
ForceDownload Forces a download of a specified resource.
ForceFolderReplication Controls replication by forcing a designated folder to replicate. After the duration expires, the DFS Replication service will revert to the configured replication schedule.
ForceReplication Controls replication by either forcing or suspending replication. DFSR will revert to the normal schedule at the end of the specified duration.

Properties

The MSFT_DfsrConnectionInfo class has these properties.

ConnectionGuid

Data type: string

Access type: Read-only

Qualifiers: key, MaxLen (36), MinLen (36), DisplayName ("Connection GUID")

The unique connection identifier.

Inbound

Data type: boolean

Access type: Read-only

Qualifiers: DisplayName ("Incoming Connection")

Indicates the direction of the connection between the local computer and this partner; it can be inbound (coming from the partner) or outbound (going to the partner).

LastErrorCode

Data type: uint32

Access type: Read-only

Qualifiers: DisplayName ("Last Error Code")

The last error code.

DFSR_E_CANNOT_CONNECT (0)

Could not connect to the partner.

This value is returned only for inbound connections.

LastErrorMessageId

Data type: uint32

Access type: Read-only

Qualifiers: DisplayName ("Last Error Message ID")

The event log message identifier that corresponds to the last error code.

For DFSR_E_CANNOT_CONNECT, the LastErrorMessageId is one of the following values.

EVENT_DFSR_CONNECTION_ERROR

The DFS Replication service encountered an error communicating with the partner. The service will retry the connection periodically.

EVENT_DFSR_CONNECTION_SERVICE_UNREACHABLE

The DFS Replication service failed to communicate with the partner. This error can occur if the host is unreachable or if the DFS Replication service is not running on the server. The service will retry the connection periodically.

EVENT_DFSR_CONNECTION_UNRECOGNIZED

The DFS Replication service failed to communicate with the partner. The partner did not recognize the connection or the replication group configuration. The service will retry the connection periodically.

EVENT_DFSR_INCOMPATIBLE_VERSION

The DFS Replication service failed to communicate with the partner. The partner is running a different version of the communication protocol. This error can be avoided by ensuring that the correct version of DFS Replication is installed on both servers, including any service packs and downloads.

LastSuccessfulSyncTime

Data type: datetime

Access type: Read-only

Qualifiers: DisplayName ("Last Successful Sync Time")

The time stamp of the last successful synchronization session since the service was started. The default value is 1/1/9999.

This property is valid only for inbound connections.

LastSyncDuration

Data type: uint32

Access type: Read-only

Qualifiers: Units ("Seconds"), DisplayName ("Last Sync Duration In Seconds")

The duration of the last successful synchronization session, in seconds. The default value is 0.

This property is valid only for inbound connections.

LastSyncTime

Data type: datetime

Access type: Read-only

Qualifiers: DisplayName ("Last Sync Time")

The time stamp of the last attempted synchronization operation. The default is 1/1/9999.

This property is valid only for inbound connections.

MemberGuid

Data type: string

Access type: Read-only

Qualifiers: MaxLen (36), MinLen (36), DisplayName ("Member GUID")

The local replication group member identifier.

MemberName

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("Member Name")

The member name. This is typically the unqualified DNS name of the local computer.

NextSyncTime

Data type: datetime

Access type: Read-only

Qualifiers: DisplayName ("Next Sync Time")

The time stamp of next scheduled synchronization session. The default value is 1/1/9999.

This property is valid only for inbound connections.

PartnerGuid

Data type: string

Access type: Read-only

Qualifiers: MaxLen (36), MinLen (36), DisplayName ("Partner GUID")

The unique identifier of the partner object.

PartnerName

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("Partner Name")

The partner name. This is typically the unqualified DNS name of the partner computer.

ReplicationGroupGuid

Data type: string

Access type: Read-only

Qualifiers: MaxLen (36), MinLen (36), DisplayName ("Replication Group GUID")

The unique replication group identifier.

ReplicationGroupName

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("Replication Group Name")

The name of the replication group that owns this connection.

State

Data type: uint32

Access type: Read-only

Qualifiers: DisplayName ("Connection State")

The current connection state.

Connecting (0)

Online (1)

Offline (2)

In Error (3)

Remarks

Outbound connections are created on demand after the partner establishes a connection. The DFSR service cannot detect when an outbound connection has been deleted; by default, it waits for 12 hours idle time before determining that the connection has been lost.

Inbound connections persist as long as they are configured.

The following state diagram illustrates the transitions between the connection states.

dfsr connection state diagram

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Microsoft\Windows\Dfsr
MOF
Dfsrwmiv2.mof
DLL
DfsRWmiV2.dll

See also

DFSR WMI Classes