Export (0) Print
Expand All

Get-DatabaseAvailabilityGroup

Exchange 2010
[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).


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

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.

 

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.

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.

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.

 

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
 © 2010 Microsoft Corporation. All rights reserved.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft