Operating Systems: i5/OS

 

WASPostUpgrade command

 

+

Search Tips   |   Advanced Search

 

The WASPostUpgrade command for WebSphere Application Server V6.1 retrieves the saved configuration that was created by the WASPreUpgrade command from the backupDirectory that you specified. The WASPostUpgrade script for WebSphere Application Server V6.1 reads the configuration from this directory to migrate to WebSphere Application Server V6.1 and adds all migrated applications into...

app_server_root/installedApps

...for the V6.1 installation.

 

Location

The command file is located and should be run in the V6.1 directory...

app_server_root/bin

 

Authority

To run this command script, your user profile must have *ALLOBJ authority.

 

Syntax

The syntax is as follows:

WASPostUpgrade backupDirectory
               [-profileName profile_name]
               [-scriptCompatibility true | false]
               [-portBlock port_starting_number]
               [-backupConfig true | false]
               [-replacePorts true | false]
               [-includeApps true | false | script]
               [-keepAppDirectory true | false]
               [-keepDmgrEnabled true | false]
               [-appInstallDirectory user_specified_directory]
               [-traceString trace_spec [-traceFile file_name]]

 

Parameters

The parameters are as follows:

backupDirectory

Required.

Directory in which the WASPreUpgrade tool stored the saved configuration and files and from which the WASPostUpgrade tool reads the configuration and files.

-profileName

Migrate specific profiles in WebSphere Application Server V6.1.

The value profile_name specifies the name of the V6.1 profile to which the script migrates your configuration. You must have already created this profile before calling the WASPostUpgrade command.

If the -profileName parameter is not specified, the default profile will be used. If no default profile is found, the system will report an error.

Optional

-scriptCompatibility

Specify whether or not migration should create the following V5.x or 6.0.x configuration definitions:

...instead of the following V6.1 configuration definitions:

Optional

The default is true.

Specify true for this parameter in order to minimize impacts to existing administration scripts. If you have existing wsadmin scripts or programs that use third-party configuration APIs to create or modify the V5.x or 6.0.x configuration definitions, for example, you might want to specify true for this option during migration.

This is meant to provide a temporary transition until all of the nodes in the environment are at the V6.1 level. When they are all at the V6.1 level, you should perform the following actions:

  1. Modify your administration scripts to use all of the V6.1 settings.

  2. Use convertScriptCompatability to convert configurations to match all of the V6.1 settings.

-portBlock

Optional

The port_starting_number value specifies the first of a block of consecutive port numbers to assign when the command script runs.

-backupConfig

Optional.

Specify whether the existing WebSphere Application Server V6.1 configuration is saved before any changes are made by the WASPostUpgrade tool. The default is true—that is, to use the backupConfig command to save a copy of the current configuration into...

profile_name/temp

Use the restoreConfig command to restore that configuration as required.

-replacePorts

This optional parameter is used to specify how to map port values for virtual hosts and web-container transport ports.

-includeApps

Optional

Can be specified in the following ways:

WebSphere Application Server system applications will migrate regardless of the value set by this parameter.

-keepAppDirectory

Optional

Specify whether to install all applications to the same directories in which they are currently located. The default is false.

If this parameter is specified as true, each individual application retains its location.

If this parameter is specified as true, the location is shared by the existing WebSphere Application Server V5.x or 6.0.x installation and the V6.1 installation. If you keep the migrated applications in the same locations as those of the previous version, the following restrictions apply:

-keepDmgrEnabled

Optional

Specify whether to disable the existing WebSphere Application Server V5.x or 6.0.x deployment manager. The default is false.

If this parameter is specified as true, you can use the existing V5.x or 6.0.x deployment manager while the migration is completed. It is only valid when you are migrating a deployment manager; it is ignored in all other migrations. Caution: Use this parameter with care.

-appInstallDirectory

Optional.

used to pass the directory name to use when installing all applications during migration. The default of profile_name\installedApps is used if this parameter is not specified.

Quotes must be used around the directory name if one or more blanks are in the name.

-traceString

Optional

The value trace_spec specifies the trace information that you want to collect.

To gather all trace information, specify...

"*=all=enabled"

...with quotation marks.

If you do not specify the -traceString or -traceFile parameter, the command creates a trace file by default and places it in...

backupDirectory/logs

If you specify this parameter, also specify the -traceFile parameter.

-traceFile

Optional

The value file_name specifies the name of the output file for trace information.

If you do not specify the -traceString or -traceFile parameter, the command creates a trace file by default and places it in the backupDirectory/logs directory.

If you specify the -traceString parameter but do not specify the -traceFile parameter, the script does not generate a trace file.




 

Related tasks


Migrating product configurations
Using the migration tools to migrate product configurations

 

Related Reference


clientUpgrade script
WASPreUpgrade command

 

Reference topic