Use XML to discover DB2 database instances. Run the operation from the command line, or automate configuration by combining command line operations in a script.
Procedure
-
If you are not logged on to the CommServe computer, run the qlogin command.
-
Download the DiscoverInstance_Template.xml file to the computer where you will run the command.
-
On the command line, go to Software_Installation_Directory/Base, and then and type the following command:
qoperation execute -af DiscoverInstance_Template.xml -clientName '<client_name>'
Notes:
-
For information on supported subclient XML parameters, see Available XML Parameters for DB2 Instance Configuration.
-
You can define the XML parameters in the xml file, instead of on the command line. For information on command line parameters and XML elements, see Command Line - Syntax.
-
-
To log off the CommServe computer, run the qlogout command.