+

Search Tips   |   Advanced Search

(iSeries)

Update ports in existing profiles on IBM i

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 the app_server_root/profileTemplates/template_name/actions directory. To use the script, we have to identify which profile to update.

We 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 we created the profile but before you altered its configuration. For all other situations, use the techniques described in the Setting port numbers to the serverindex.xml file using scripting article.

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.


Tasks

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


What to do next

Start or restart the server to use the new ports.