Change application server ports

To change the ports for an application server, run the chgwassvr script from the Qshell command line. To run the script, follow these steps:

  1. On the OS/400 command line, run the STRQSH (Start Qshell) command.

  2. On the Qshell command line, use the cd command to change to the directory that contains the script:
    cd install_root/bin

    where install_root is /QIBM/ProdData/WebSphere/AppServer/V6/Base for WebSphere Application Server and WebSphere Application Server Express, and /QIBM/ProdData/WebSphere/AppServer/V6/ND for WebSphere Application Server Network Deployment.

  3. Run the chgwassvr script:
    chgwassvr -profileName profile -server server [options]

    where profile is the name of the profile that contains the server you want to change, server is the name of the server you want to change, and options specifies the changes you want to make. For more information on the chgwassvr script and additional parameters, see The chgwassvr script.

Example

In this example, the ports assigned to the application server devsvr2 in the profile devinst are changed.

chgwassvr -profileName devinst -server devsvr2 -portblock 11400

In this example, the administrative console port for the application server devsvr2 in the profile devinst is changed.

chgwassvr -profileName devinst -server devsvr2 -admin 9093