Get-EmcDatabaseAvailabilityGroup

Gets the configuration settings, status, and other information about a database availability group (DAG).

 

Syntax

 

Parameters

-ID <String>

Attributes: Optional, Position: 1

Specifies the mailbox database name or ID. Wildcards are permitted. It is a positional parameter (position = 1).

 

-ExchangeSystem <IExchangeApplicationSystem>

Attributes: Optional, Position: named

Specifies the exchange system of the DAG to query.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

-MailboxServer <MailboxServer>

Attributes: Optional, Position: named

Specifies the mailbox database of the database availability group (DAG) to query.

 

-MailboxDatabase <MailboxDatabase>

Attributes: Optional, Position: named

Specifies the name of the mailbox database of the DAG to query.

 

-MailboxDatabaseCopy <MailboxDatabaseCopy>

Attributes: Optional, Position: named, Accepts pipeline input (by value)

Specifies the mailbox database copy of the DAG to query.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

-------------- Example 1 --------------

C:\PS>$ms = Get-EmcMailboxServer MS1

C:\PS>Get-EmcDatabaseAvailabilityGroup -MailboxServer $ms

This example displays the basic properties for the DAG of the MS1 mailbox database server.

 

-------------- Example 2 --------------

C:\PS>Get-EmcDatabaseAvailabilityGroup DAG1

This example displays the basic properties for DAG1.

 

-------------- Example 3 --------------

C:\PS>$db = Get-EmcMailboxDatabase MBDB1

C:\PS>Get-EmcDatabaseAvailabilityGroup -MailboxDatabase $db

This example displays the basic properties for the DAG of the MBDB1 mailbox database.

 

-------------- Example 4 --------------

C:\PS>$exchange = Get-EmcExchangeSystem Exchange1

C:\PS>Get-EmcDatabaseAvailabilityGroup -ExchangeSystem $exchange

This example displays the basic properties for the DAG of Exchange system Exchange1.

 

-------------- Example 5 --------------

C:\PS>$databasecopy = Get-EmcMailboxDatabasecopy db1\MS2

C:\PS>Get-EmcDatabaseAvailabilityGroup  -MailboxDatabaseCopy $databasecopy

This example displays the basic properties for the DAG of mailbox database copy db1 on mailbox server MS2.