Export (0) Print
Expand All

Get-DatabaseAvailabilityGroup

Applies to: Exchange Server 2010

Topic Last Modified: 2011-03-19

Use the Get-DatabaseAvailabilityGroup cmdlet to obtain the list of servers that are members of a database availability group (DAG). 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.


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

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.

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.

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.

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.

Get-DatabaseAvailabilityGroup DAG1 -Status | fl
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft