Get instance configuration with CCC


Prerequisites

Before you can retrieve instance configuration through CCC, make sure you have completed the steps in: Setting up a CCC node

Getting instance configuration

The script file get_instance.script is used to extract a database instance’s configuration from the Control Center domain.

Script parameters

The following input parameters can be provided as part of the command:

Parameter Description Default
--------------- ------------------------------------------------------------------------ ------------------------
accesspoint The address and port of the dbWatch server node localhost:7100
domainName (Optional) Name of the domain to connect to (auto-selects if one)
domainToken (Optional) Token for authentication (if required)
node (Optional) Name of node to query (optional override)
instanceName The name of the instance whose configuration you want to export (required)
result Output filename for the configuration XML file instance.xml

Example usage

Assume the CCC working directory is C:\dbWatch\ccc, and you want to export configuration for the instance named joiol to a file named joiol_instance_configuration.xml.

ccc get_instance.script instanceName="joiol" result="joiol_instance_configuration.xml"

If needed, you may specify the server and domain explicitly:
ccc get_instance.script server=192.168.1.5:7100 domainName=acme.dbwatch.local instanceName="joiol" result="joiol_instance_configuration.xml"

!(center)/07Advanced-Topics/06Control-Center-Commandline/06Get-instance-configuration-with-CCC/get-instance-ccc.png!

Result

If successful, the instance configuration will be exported to the file specified in the result parameter. This file can later be used to register the instance again using the register_instance.script.

Related topics