Use XML to view DB2 database instance 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 database instance properties
-
View the DB2 database instance properties to verify the changes after using XML to modify the instance
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
-
On the DB2 Agent host, run the qlogin command to log on to the CommServe computer.
-
Download the GetInstanceProperties_Template.xml file to the computer where you will run the command.
-
Open the GetInstanceProperties_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.
-
On the command line, go to Software_Installation_Directory/Base and type the command.
UNIX
qoperation execute -af C:\XML\GetInstanceProperties_Template.xml -appName 'DB2 on Unix' -clientName '<client_name>' -instanceName '<db2instance_name>'
Windows
qoperation execute -af C:\XML\GetInstanceProperties_Template.xml -appName 'DB2' -clientName '<client_name>' -instanceName '<db2instance_name>'
Example
Getting the Instance Properties for a DB2 Database Instance on a Windows Configuration
qoperation execute -af GetInstanceProperties_Template.xml -appName 'DB2' -clientName 'client_test' -instanceName 'db_win_instance'