Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

  1. Open a command line window where redcli.exe is located, usually C:\Program Files\WhereScape\RED
  2. 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
  3. 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:

ArgumentDescription
--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:

ArgumentDescription
--meta-dsn
<argument> 
<dsn> Logon DSN write into the XML file 
--meta-dsn-arch
<argument>
<architecture>
 Logon
Logon DSN architecture to write into the XML file
--meta-database
<argument>
<database_name>Logon database name to write into the XML file
--meta-user-name
<argument>
<username>Logon user-name to write into the XML file
--meta-password
<argument>
<password>Logon password to write into the XML file


Tip
titleTip

Use the --help argument after a command or option to see more information about them. it, for example:
c:\redcli.exe deployment-options --help

The --help argument also shows information for the last entered sub command, for For example:
c:\redcli.exe deployment-options generate-file --help


Example

The following example shows how to create an XML file for PostgreSQL:

  1. Open a command line window where redcli.exe is located, usually C:\Program Files\WhereScape\RED
  2. run Run the following command To create the options file, click Create XML Options File in the left pane.
  3. 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.
  4. --meta-repo-typeThe RDBMS type of the metadata repository.--meta-dsnThe value to be written in the <DSN/> element of the XML Options File.DSN architectureThe value to be written in the <DSNArchitecture> element of the XML Options File.User IDThe value to be written in the <UserID/> element of the XML Options File.PasswordThe value to be written in the <Password/> element of the XML Options File.

    Click Create File, the results confirm that the XML Options File has been created.

...

titleTip
  1. 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
  2. Go the output folder and verify the file was created properly.

...