Migrate > Migrating WebSphere Commerce > Migrating the WebSphere Commerce Server using the command line
Migrate the application using the WCIM migration script
Review this information while using the Migration wizard to migrate the WebSphere Application tier. Follow the information to migrate the application tier using the WCIM script.
Before you begin
- Ensure you have completed the database migration successfully.
- Application tier migration using mapped or networked drives is not supported.
- If WebSphere Application Server Global Security is enabled, disable it before you migrate the application.
- If you are performing a remote application migration, the following steps must be completed before starting the application migration script:
- Install WebSphere Application Server version 7 on the WebSphere Commerce v5.6.1 or 6.0 machine.
- Copy WC_INSTALL/bin/backupAppWAS400.sh on the WebSphere Commerce v7 machine to a temporary directory tempDir on the WebSphere Commerce v5.6.1 or 6.0 machine.
- Run tempDir/backupAppWAS400.sh on the WebSphere Commerce v5.6.1 or 6.0 machine. For more information, run backupAppWAS400.sh directly to see its usage details.
- Copy prod.jar, user.jar, and backupforpostupgrade.jar from /tmp on the WebSphere Commerce v5.6.1 or 6.0 machine to a temporary directory tempDir70 on the WebSphere Commerce Version 7 machine.
- Run WC_INSTALL/bin/restoreAppWAS400.sh on the WebSphere Commerce v7 machine to restore the backup files. For more information, run restoreAppWAS400.sh directly to see its usage details.
- Ensure the WebSphere Application Deployment Manager and all federated node agents for WebSphere Commerce version 5.6.1 or 6.0 are stopped.
The following functions are performed by the WCIM utility:
- Back up of the existing application tier that is being migrated
- Migration of the existing application tier to the WebSphere Commerce v7.0 level
If you are using multiple instances on the previous installation of WebSphere Commerce, back up and migrate each instance separately.
Procedure
- Choose one of the following options to migrate the application tier:
- The application tier of the previous version of WebSphere Commerce (source) is on a different machine from your (target) WebSphere Commerce v7.0.
- The application tier of the previous version of WebSphere Commerce (source) is on the same machine as your WebSphere Commerce v7.0.
- WebSphere Commerce v7.0 and previous version are on different machines
- Insert the WebSphere Commerce Version 7.0 media into the drive on the machine where the previous version of WebSphere Commerce is installed.
You might also be prompted to insert a WebSphere Application Server supplemental DVD.
- If you run the installation on AIX version 5.3, you may get an error forcing you to cancel the installation, with a message similar to the following example:
AIX 53 Maintenance Level 06-01 was detected. AIX 53 Maintenance level 07-01 is required.Upgrading your operating system will prevent this message. If you do not want to upgrade the old WebSphere Commerce server operating system, an alternate migration path has been provided. Execute the following steps:
- On the WebSphere Commerce 7.0 system, make a copy of WC_INSTALL\bin\backupAppWAS60.sh to a temporary directory, tempdir, on the remote (old) machine.
- Run the following command as the root user on the old WebSphere Commerce server:
tempDir/backupAppWAS.sh -oldWASDir WAS_installdir -oldWCSDir WCS_installdir [oldProfileName]
- The script creates two folders in tempDir. Copy tempDir to the WebSphere Commerce version 7 server.
- Run the following command on the WebSphere Commerce version 7 server:
chown -R wasuser:wasgroup tempDir
Attention: After running this command, skip to the back up the version 7 application tier step.
- If you are not running AIX 5.3, and are not forced to cancel the installation, select Custom installation and choose to install only the Remote WebSphere Commerce Management Utilities component.
- You need to change some file permissions before running the wcimRemoteBackup script:
- Log in as root.
- Open a command line session and change to the WAS_installdir\properties directory.
- Run the following command:
chmod o+r NIFRegistry.properties profileRegistry.xml WSCustomConstants.properties
Remember: Change the file permission back for security reasons after completing the application migration.
- Navigate to the WC_INSTALL/bin directory and run the following command:
- wcimRemoteBackup.bat -tier app -from version -action backup -instanceName instance
- Run the following command as the non-root user:
wcimRemoteBackup.sh -tier app -from version -action backup -instanceName instance
where:
This script creates a folder, WC_INSTALL/temp/zip, containing two files:
- version
- The original WebSphere Commerce version. Enter 561 or 60.
- backupwas.zip
- backupwc_version_instance.zip.
- Copy the resulting folders to the WebSphere Commerce v7.0 target system. Ensure the files are put in WC_INSTALL/temp/zip and ensure that the WebSphere Commerce non-root user is the owner of WC_INSTALL/temp/zip and the files. The Migration wizard displays the directories where the files must be placed.
- If you used backupAppWAS.sh or backupAppWAS400.sh to backup previous WebSphere Commerce application in step 2, then on the WebSphere Commerce version 7 machine, back up the version 7 WebSphere Commerce application tier and the application tier related assets using WCIM. For example:
- wcim_ant.bat -tier app -from previous_version -action backup -instanceName instance
- Run the following command from using the non-root user:
./wcim_ant.sh -tier app -from previous_version -action backup -instanceName instance
where:
- previous_version
- Is the version of WebSphere Commerce you are migrating from for example, 561 or 60.
When prompted, ensure that you:
- Specify the tempDir/WAS as the previous WebSphere Application Server directory.
- Specify tempDir/Commerce as the previous WebSphere Commerce directory.
- Migrate the application using the WCIM utility:
- Run WCIM as the non-root user, for example, wasuser.
- Run the WCIM script (with any optional flags that you might require for the application tier) from the following directory:
- WC_INSTALL/bin
- WC_INSTALL\bin
- Type the following WCIM command to migrate the current WebSphere Commerce version application tier with minimal options (this is normally sufficient for most migrations):
- ./wcim_ant.sh -tier app -from previous_version -action migrate -instanceName instance
- wcim_ant.bat -tier app -from previous_version -action migrate -instanceName instance
where:
- previous_version
- Is the version of WebSphere Commerce you are migrating from for example, 561 or 60.
- action
- Is either backup, migrate, or config. Enter migrate for application tier migration.
Run the command migrates the application tier to the WebSphere Commerce v7.0 level.
- Provide responses to the following prompts:
- WCIM ensures that you choose an instance name from the previous version of WebSphere Commerce. You cannot change the name of the instance from the previous version of WebSphere Commerce.
- A new Web server host name. If you install the Web server locally on the WebSphere Commerce v7.0 machine, you can accept the default host name or type a new host name as applicable. If you use the same remote Web server as the previous WebSphere Commerce version, type a new Web server host name that is different from that the previous WebSphere Commerce version. Otherwise, there will be a port conflict between the new instance and old instance. In test runs, you cannot reuse the same Web server host name as the production site is still running.
- Verify that WCIM ran successfully.
- Execute post migration steps.
- Execute the next step of migration.
- WebSphere Commerce v7.0 and previous version are on the same machine
- On the source machine, back up the current WebSphere Commerce application tier and the application tier related assets using WCIM. For example:
- wcim_ant.bat -tier app -from previous_version -action backup -instanceName instance
- Run the following command from using the non-root user:
./wcim_ant.sh -tier app -from previous_version -action backup -instanceName instance
where:
- previous_version
- Is the version of WebSphere Commerce you are migrating from for example, 561 or 60.
For example:
./wcim_ant.sh -tier app -from 60 -action backup -instanceName mig60inst3 Are the two WebSphere Commerce products installed on the same machine? [ Yes ] (Yes,No,) Yes Previous WebSphere Commerce installation directory? /QIBM/Proddata/CommerceServer60 Previous WebSphere Application Server installation directory? /QIBM/UserData/WebSphere/AppServer/V6/ND/profiles/<instance> Previous WebSphere Application Server profile name? <instance>
- Migrate the application using the WCIM utility:
Run WCIM as the non-root user
- Run the WCIM script (with any optional flags that you might require for the application tier) from the following directory:
- WC_INSTALL/bin
- WC_INSTALL\bin
- Type the following WCIM command to migrate the current WebSphere Commerce version application tier with minimal options (this is normally sufficient for most migrations):
- ./wcim_ant.sh -tier app -from previous_version -action migrate -instanceName instance
- wcim_ant.bat -tier app -from previous_version -action migrate -instanceName instance
where:
Running the command migrates the application tier to the WebSphere Commerce v7.0 level.
- previous_version
- Is the version of WebSphere Commerce you are migrating from for example, 561 or 60.
- action
- Is either backup, migrate, or config. Enter migrate for application tier migration.
- Provide responses to the following prompts:
- WCIM ensures that you choose an instance name from the previous version of WebSphere Commerce. You cannot change the name of the instance from the previous version of WebSphere Commerce.
- A new Web server host name. If you install the Web server locally on the WebSphere Commerce, v7.0 machine, you can accept the default host name or type a new host name as applicable. If you use the same remote Web server as the previous WebSphere Commerce version, type a new Web server host name. Otherwise, there will be a port conflict between the new instance and old instance. In test runs, you cannot reuse the same Web server host name because the production site is still running.
- The WebSphere Application Server user directory is the same as the previous WebSphere Application Server installation directory. An example of this type of directory is /QIBM/UserData/WebSphere/AppServer/V6/ND/profiles/profile_name. Where profile_name is the name of the user profile.
For example:
./wcim_ant.sh -tier app -from 60 -action migrate -instanceName <instance> Database type? [ db2 ] (cloudscape,db2,os400,oracle,) os400 Remote database? [ false ] (true,false,) false Database name? <database_name> Database user? <instance> Database user password? <db password> Database server port? 50000 Web server type? [ HTTP ] (HTTP,IIS,NES,) HTTP Remote Web server? [ false ] (true,false,) false Are the two WebSphere Commerce products installed on the same machine? [ Yes ] (Yes,No,) Yes Is the WebSphere Application Server Global Security enabled? [ No ] (Yes,No,) No Is it a cluster member? [ No ] (Yes,No,) No
- Verify that WCIM ran successfully.
- Optional: If you disabled WebSphere Application Server Global Security before you migrated the application, you can re-enable it.
What to do next
Configure the application server and Web server tiers from the command line
Previous topic:
Migrate the WebSphere Commerce database using the WCIM migration script
Next topic:
Configure the application server and Web server tiers from the command line