[This topic is in progress.]

Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2

Topic Last Modified: 2011-09-07

Use the Get-DatabaseAvailabilityGroup cmdlet to obtain the list of servers that are members of a database availability group (DAG).

Syntax

Get-DatabaseAvailabilityGroup [-Identity <DatabaseAvailabilityGroupIdParameter>] [-DomainController <Fqdn>] [-Status <SwitchParameter>]

Detailed Description

In addition to obtaining a list of DAG members, the Get-DatabaseAvailabilityGroup cmdlet can also be used to view real-time status information about a DAG, such as:

  • OperationalServers

  • PrimaryActiveManager

  • ReplicationPort

  • NetworkNames

Use the Status parameter with the command to include the values for these properties. Without the Status parameter, the values returned for these properties are blank.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the"database availability group" entry in the High Availability Permissions topic.

Parameters

Parameter Required Type Description

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that retrieves data from Active Directory.

Identity

Optional

Microsoft.Exchange.Configuration.Tasks.DatabaseAvailabilityGroupIdParameter

The Identity parameter specifies the name of the DAG to query.

Status

Optional

System.Management.Automation.SwitchParameter

The Status parameter instructs the command to query Active Directory for additional information, and to include real-time status information in the output.

Input Types

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

Return Types

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.

Errors

Error Description

Specified database availability group does not exist.

Indicates that the specified DAG couldn't be found. Verify the DAG name and try the task again.

Status is not available for the specified database availability group.

Indicates that status couldn't be retrieved from Active Directory. Verify that connectivity with Active Directory exists and try the task again.

Insufficient authority to perform the task.

Indicates that you don't have permissions. Verify proper permissions are granted and try the task again.

Windows Failover Clustering is not currently installed. This task cannot be run remotely without Windows Failover Clustering Tools (RSAT-Clustering).

Indicates that status information can only be obtained for a DAG when this command is run from a server that has the Windows Cluster service installed. Try the task again from a server that has the Windows Cluster service installed.

Examples

EXAMPLE 1

This example displays the list of servers in a DAG named DAG1. It also displays real-time status information for DAG1. In addition, several properties of the DAG, such as the file share witness directory and share configuration information are also displayed. The output for the command is formatted as a list.

Copy Code
Get-DatabaseAvailabilityGroup DAG1 -Status | fl