Viewing DB2 Subclient Properties Using the Commvault Command Line Interface

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

Use this command to:

  • View the current DB2 subclient properties

  • View the DB2 backup set properties to verify the changes after using XML to modify the subclient

You can include the XML parameters in the xml file, or you can specify them on the command line when they frequently change. For more information on command line parameters and XML elements, see Command Line - Syntax.

Procedure

  1. On the DB2 Agent host, run the qlogin command to log on to the CommServe computer.

  2. Download the get_subclient_template.xml file to the computer where you will run the command.

  3. Open the get_subclient_template.xml file, add your specific parameters, and save the file.

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

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

    UNIX

    qoperation execute -af get_subclient_template.xml -appName 'DB2 on Unix' -clientName '<client_name>' -instanceName '<db2instance_name>' -subclientName '<subclient_name>'

    Windows

    qoperation execute -af get_subclient_template.xml -appName 'DB2' -clientName '<client_name>' -instanceName '<db2instance_name>' -subclientName '<subclient_name>'

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

Examples

Getting the Subclient Properties for a DB2 Database Instance on a UNIX Configuration

qoperation execute -af get_subclient_template.xml -appName 'DB2 on Unix' -clientName 'client1' -instanceName 'Instance001' 'db2_subclient'

Getting the Subclient Properties for a DB2 Database on a Windows Configuration

qoperation execute -af get_subclient_template.xml -appName 'DB2' -clientName 'client1' -instanceName 'Instance001' 'db2_subclient'

Loading...