Adding DB2 Subclients Using the Commvault Command Line Interface

Use XML to create DB2 subclients. Run the operation from the command line, or automate configuration by combining command line operations in a script.

The XML parameters can be included in the XML file, or specified on the command line when they frequently change. For more information on command line parameters and XML elements, see Command Line - Syntax.


  1. On the DB2 Agent host, run the qlogin command to log on to the CommServe computer.
  2. Download the CreateSubclient.xml file to the computer where you will run the command.
  3. Open the CreateSubclient.xml file, add your specific parameters and save the file.

    For information on supported subclient XML parameters, see Available XML Parameters for DB2 Subclient Configuration.

  4. On the command line, go to Software_Installation_Directory/Base and type the following command.


    qoperation execute -af CreateSubclient.xml -appName 'DB2 on Unix' -clientName 'client1' -instanceName DB2 instance name -backupsetName 'backupset_name' -subclientName 'subclient_name' -storagePolicyName 'SP name'


    qoperation execute -af CreateSubclient.xml -appName 'DB2' -clientName 'client1' -instanceName 'DB2 instance name' -backupsetName 'backupset_name' -subclientName 'subclient_name' -storagePolicyName 'SP name'

  5. Run the qlogout command to log off the CommServe computer.


Adding a Subclient for a DB2 UNIX Configuration

Adding a Subclient for a DB2 Windows Configuration

Last modified: 4/10/2018 1:33:10 PM