Summary: Information about the Console V2 Migration Tool, a tool to migrate applications managed in Console V1 to Console V2 (Enterprise mode only). |
com.castsoftware.aip.console.v2.migration
See Console V2 Migration Tool - Release Notes - 1.0 for more information.
The Console V2 Migration Tool is a command line based tool (Console-V2-Migration.exe)
that will migrate ALL applications managed in Console V1 into Console V2 (it is NOT possible to migrate only specific Applications). This migration includes:
Source Console release | ≥ 1.27.0-funcrel | ||
---|---|---|---|
Node/AIP Core | All Nodes MUST be running the SAME release of AIP Core. | ||
Deployment/Delivery folders | All Nodes must use "common" Deployment and Delivery folders (i.e. a shared network resource). | ||
Stop all services | All Console V1 services (front-end and all Nodes) must be stopped before the migration is started. | ||
Path to tool | The
| ||
Java JRE | A Java JRE is required - but since a JRE is required for the Node anyway, this requirement should already by fulfilled.
|
Target Console release |
| ||
---|---|---|---|
Node/AIP Core | All Nodes MUST be running the SAME release of AIP Core as the Console V1 Nodes. | ||
Deployment/Delivery folders | All Nodes must use the SAME common Deployment and Delivery folders as used for Console V1. | ||
CAST Storage Service/PostgreSQL | All CAST Storage Service/PostgreSQL instances configured in Console V1 must be configured in Console V2 (for both Analysis/Dashboard schema and Measurement schema requirements).). See Administration Center - Settings - CSS and Measurement settings. | ||
Measurement schema | The Measurement schema MUST use the SAME name as defined in Console V1. See Administration Center - Settings - CSS and Measurement settings. | ||
Source folder location (optional) | If you are uploading source code from a source folder location in Console V1, you MUST configure the SAME source folder location in Console V2. | ||
CAST Imaging settings (optional) | If you are publishing data to CAST Imaging, ensure you configure the SAME settings in Console V2 as in Console V1. See Administration Center - Settings - Imaging Settings. | ||
Schema backup (optional) | Optionally, you may wish to perform a backup of the Console V2 internal schema called "aip_node" using PostgreSQL tools such as psql or PGAdmin:
| ||
Java JRE | A Java JRE is required - but since a JRE is required for the Node anyway, this requirement should already by fulfilled.
|
Console-V2-Migration.exe --h2dbfile H2DBFILE V1 - Path to H2 database without file extension (default: None) --h2dbtype H2DBTYPE V1 - Node or Console (default: None) --casthomedir CASTHOMEDIR V1 - AIP Core installation path (default: None) --log LOG Output log file path (default: None) --workingdir WORKINGDIR Backup processing path (default: None) --schema SCHEMA V2 - "aip_node" schema name (default: None) --user USER V2 - Username used to connect to target V2 CSS/PostgreSQL instance (default:operator) --host HOST V2 - Host for Postgres server --port PORT V2 - Port for Postgres server (default: 2285) --database DATABASE V2 - Database name of CSS server (default: postgres) --aipnodedir AIPNODEDIR V1 - Provide the path to the aip-node-app.properties (default: None) --outputdir OUTPUTDIR Output path (default: None) --zipfilename ZIPFILENAME Output Zip filename - .zip extension not required (default: None) --v2path V2PATH V2 - Specify the path of the "common_data" shared folder (default: None) --process PROCESS Specify the task (ALL or MIGRATION or CUSTOMSCRIPT or ZIP or MNGTSCRIPT) (default: ALL) Note about paths: - CAST highly recommends using backslashes where paths to folders/files must be specified. - Quote marks (") around paths are not required, except where the path contains white space. However, using quote marks for all paths is also accepted by the tool. |
The tool will prompt for the password of the user specified in the --user command (if this command is omitted, "operator" is assumed) and will accept only a plain text password. If you want to avoid the prompt, you can pass the following command in the command prompt before you run the Console-V2-Migration.exe tool, where <PASSWORD> is the plain text password for the user specified in the --user command:
|
The migration process contains distinct steps:
Run the Console-V2-Migration.exe tool on ALL Nodes, for example:
Console-V2-Migration.exe --h2dbfile "C:/ProgramData/CAST/AipConsole/AipNode/db/aip_node_db" --h2dbtype node --casthomedir "C:/Program Files/CAST/8.3" --log "C:/work/temp/mig/mig-node1.log" --workingdir "C:/work/temp/mig/workingdir" --schema aip_node --host v2_css_host --aipnodedir "C:/ProgramData/CAST/AipConsole/AipNode" --outputdir "C:/work/temp/mig/out" --zipfilename node1_backup --v2path "S:/common-data" |
When the tool completes, the following occurs:
--host
argument. Check the "application" table in "aip_node" schema to ensure that all your V1 applications are listed:Click to enlarge
--outputdir
argument. You should check that this file exists. Its structure will look like this:This step involves copying the content of all generated ZIP files over to the Console V2 environment into the "common_data" shared folder:
This step will migrate Console data such as domains, user rights (but not users or authentication settings), global settings, authorizations, global config files etc. from the Console V1 H2 flat file database over to the the Console V2 "aip_node" schema:
Run the Console-V2-Migration.exe tool on the front-end Console host server. For example:
Console-V2-Migration.exe --h2dbfile "C:/ProgramData/CAST/AipConsole/AipConsole/db/hellodb" --h2dbtype console --casthomedir "C:/Program Files/CAST/8.3" --log "C:/work/temp/mig/mig-console.log" --workingdir "C:/work/temp/mig/workingdir" --schema aip_node --host v2_css_host --v2path "S:/common-data" |
If your Console V1 is hosted on a Linux server, then the Console-V2-Migration.exe tool cannot be run on this host. Instead, the steps are slightly different:
--h2dbfile
argument, for example:Console-V2-Migration.exe --h2dbfile "C:/work/temp/mig/db/hellodb" --h2dbtype console --casthomedir "C:/Program Files/CAST/8.3" --log "C:/work/temp/mig/mig-console.log" --workingdir "C:/work/temp/mig/workingdir" --schema aip_node --host v2_css_host --v2path "S:/common-data" |
The final step is to manually copy the content of the following folder (not the folder itself)
Microsoft Windows C:\ProgramData\CAST\AipConsole\AipConsole\upload\architecture Linux $HOME\ProgramData\AipConsole\upload\architecture |
to:
\\share\aip-node-data\common-data\upload\architecture |
The final step is to access Console V2 and perform the following verification checks:
Take a sample selection of applications and check that the configuration of these applications is correct, for example: