Exchange Server association command

Badge +1

I have to create a great number of Exchange servers configuration cv11. I have almost all the commands to script it but one. I need to know the command to do the server association with the database.


Best Regards


Best answer by Mike Struening RETIRED 15 July 2021, 20:43

View original

5 replies

Userlevel 1
Badge +3

Hi there, 


Can you provide a little more clarify to what you’re looking to do? This sounds like you’re attempting to set the server selection manually on an Exchange DAG client, correct? 


If not, can you provide more detail, or a screenshot of what you’re attempting to set up in the console, so we can look for the command line version of it? 




Badge +1

This is the command from my script

qoperation execute -af create_subclient_template.xml -appName "Exchange Database" -clientName '%cliNa%' -subclientName "NR%CC%_GLC_PDAG1_%dbname%" -dataBackupStoragePolicy/storagePolicyName "SilverCC%CC%" -commonProperties/numberOfBackupStreams "4" -commonProperties/enableBackup "False" -contentOperationType ADD -exchangeDBContent/storageGroup "%dbname%" -exchangeDBContent/databaseName "%dbname%"


I need to know what is the command to do the server association with the database as shown on the picture.


Userlevel 1
Badge +3

Got it. 


I don’t believe we support command line ops for DAG clients, I think it’s only for stand-alone nodes, which is why that’s missing from documentation. 

The general usecase for “Server selection” is if you manually have to temporarily setup a specific node to use. 

Automatic is preferred, and the default. 



Let me look at a few things, I’ll update shortly. 

Badge +1

Let me know!

Userlevel 7
Badge +23

Apologies for the delay.


Can you please check if the below works?

attached the XML for update subclient.

Update Subclient:
qoperation execute -af <Path of update_subclient_template.xml> -appName "Exchange Database" -clientName "xxxxx" -subclientName "xxxxx"

Server Selection Tab

Server Selection: AUTOMATIC
-serverType AUTOMATIC

Server Selection: MANUAL
-serverType MANUAL

Server Associations:
-serverType MANUAL -associatedServerOperationType ADD -exchDBAssociatedServer/databaseName "xxxxx" -exchDBAssociatedServer/server "xxxxx"
-serverType MANUAL -associatedServerOperationType DELETE -exchDBAssociatedServer/databaseName "xxxxx"
-serverType MANUAL -associatedServerOperationType OVERWRITE -exchDBAssociatedServer/databaseName "xxxxx" -exchDBAssociatedServer/server "xxxxx"

DAG Options:
Backup from passive copy:
-backupFromPassiveCopy true | false

Backup from Active copy if no passive copy is available:
-backupFromPassiveCopy true -backupFromActiveCopy true | false

Use last activation preference to select passive copy
-backupFromPassiveCopy true -useLastActivation true | false