Network Deployment (Distributed operating systems), v8.0 > Set up the application serving environment > Configure port settings


Update ports in existing profiles

Use the updatePorts.ant script to change ports in an installed profile.

Each profile template has its own updatePorts.ant script.

The updatePorts.ant script for application server profiles is in...

WAS_HOME/profileTemplates/template_name/actions
To use the script, we have to identify which profile to update. You should only run this script if the profile is unfederated and if the configuration is the same structure as it was when the profile was created. For example, this script is ideal for changing ports for an unfederated application server profile after you created the profile but before you altered its configuration. For all other situations, use the techniques described in "Setting port numbers kept in serverindex.xml using scripting".

Use the following procedure to become familiar with using the updatePorts.ant script. Each step is an exercise that results in reassigning ports using a particular method that the updatePorts.ant script supports.

Look at steps for all of the operating systems mentioned. The differences are mainly in the extension of the script file and the direction of the directory delimiters. For example, Linux shell scripts (*.sh) and other commands require a ./ before the command to tell the operating system that the command is in the current working directory.


Procedure


Results

This procedure results in four different methods of port assignments with the updatePorts.ant script.

+

Search Tips   |   Advanced Search