Page History
If applications are being loaded using the command line, the saved application load options in the local registry can be outputted to an XML Options File for use in the application load.
Refer to Creating and Loading Applications from the Command Line for details.
To create an XML Options file, you can use the The RedCli.exe command line interface . Follow these steps allows you to create an XML file:
- Open a command line window where redcli.exe is located, usually C:\Program Files\WhereScape\RED
- In this example, run the following command to create a file with all the options for PostgreSQL in the
c:\projects
folder:redcli.exe deployment-options generate-file --file-name c:\past.xml --meta-repo-type Postgresql
- Go the output folder and verify the file was created properly.
Options File running redcli.exe deployment-options generate-file [<args>]
The deployment-options
command provides sub commands for exporting, importing, and generating options.
The generate-file
sub-command provides options for generating an options file, it can take the following arguments:
These The following arguments are required for generating a file:
Argument | Description |
---|---|
--file-name <location> | The name of a file to write default deployment options data into |
--meta-repo-type <repo_type> | The type of metadata repository to tailor the options for. Either Oracle, SqlServer, Teradata, Db2 or Postgresql. |
You can also use the following these optional arguments:
Argument | Description |
---|---|
--meta-dsn |
<dsn> | Logon DSN write into the XML file |
--meta-dsn-arch |
<architecture> |
Logon DSN architecture to write into the XML file |
--meta-database |
<database_name> | Logon database name to write into the XML file |
--meta-user-name |
<username> | Logon user-name to write into the XML file |
--meta-password |
<password> | Logon password to write into the XML file |
Tip | ||
---|---|---|
| ||
Use the --help argument after a command or option to see more information about them. it, for example: The --help argument also shows information for the last entered sub command, for For example: |
Example
The following example shows how to create an XML file for PostgreSQL:
- Open a command line window where redcli.exe is located, usually C:\Program Files\WhereScape\RED
- run Run the following command To create the options file, click Create XML Options File in the left pane.
If the load options have not yet been saved into the local registry, a message appears prompting you to select the application to be loaded and to save the load settings for that application.
- Type in the location where you want to save the XML Options File in the XML Options File Name field.
- Type in the details of the XML Elements that are added to the destination details of the XML Options File.
Click Create File, the results confirm that the XML Options File has been created.
...
title | Tip |
---|
- command to create a file with all the options for PostgreSQL:
redcli.exe deployment-options generate-file --file-name c:\temp\Postgresql_example.xml --meta-repo-type Postgresql
- Go the output folder and verify the file was created properly.
...