IBMDO YOU?Hi, I'm MBO!

Settings

Make the site feel at home on your screen.

Theme

Loading your theme preference.

Keyboard shortcuts

Open search from anywhere, then move through the results without leaving the keyboard.

Open settings
Ctrl,or⌘,
Open search
CtrlKor⌘K
Select a search result
↑↓
Open the selected result
Enter
Close an open dialog
Esc

Invisible Bits of Maximo

Change a WebSphere host name

Update a WebSphere 9 deployment after changing the host name of its Ubuntu server.

I Beat Maximo — confirmed solution

Before you begin: changing a host name affects the operating system and several parts of the WebSphere configuration. Plan an outage, back up the configuration and confirm that you can restore it. The profile paths, cell names, node names and port in this article are examples; replace them with the values from your environment.

This procedure updates a WebSphere deployment after its server has been renamed. It was originally tested with WebSphere 9.0 on Ubuntu Server 16, using a Deployment Manager and one federated application-server node.

The examples use OldName for the current host name and NewName for the replacement. Include the domain in NewName if your WebSphere configuration uses a fully qualified host name.

Check the deployment before the rename

Start every WebSphere node and server, then sign in to the Deployment Manager administrative console. Resolve any existing startup, synchronisation or login problems before changing the host name; otherwise, it will be difficult to tell whether a later failure was caused by the rename.

Confirm that the console and applications currently use OldName.

WebSphere application server listed with OldName as its host

Rename the server and stop WebSphere

Change the operating-system host name from OldName to NewName, then restart the server. The exact operating-system procedure is outside the scope of this article.

Before the rename:

Terminal prompt showing the old server host name

After the rename:

Terminal prompt showing the new server host name

Some WebSphere processes may start with only part of the old configuration after the restart. Stop the Deployment Manager from its profile:

cd /opt/IBM/WebSphere/AppServer/profiles/DeploymentMGR/bin
sudo ./stopManager.sh

Deployment Manager stopping successfully in the terminal

Stop the node for each application-server profile:

cd /opt/IBM/WebSphere/AppServer/profiles/Application01/bin
sudo ./stopNode.sh

Application-server node stopping successfully in the terminal

Update the server indexes with wsadmin

Start wsadmin in offline Jython mode:

cd /opt/IBM/WebSphere/AppServer/bin
sudo ./wsadmin.sh -connType NONE -lang jython

wsadmin running in offline Jython mode

List the server-index configuration objects:

AdminConfig.list('ServerIndex')

wsadmin output listing the Deployment Manager and application-server indexes

The result will resemble this output:

Deployment Manager - '(cells/OldNameCell01/nodes/OldNameCellManager01|serverindex.xml#ServerIndex_1)'
Application Server - '(cells/OldNameCell01/nodes/OldNameNode01|serverindex.xml#ServerIndex_1)'

Copy the exact configuration paths returned by your environment. Use them to change the Deployment Manager and application-server host names:

AdminConfig.modify('(cells/OldNameCell01/nodes/OldNameCellManager01|serverindex.xml#ServerIndex_1)', '[[hostName NewName]]')
AdminConfig.modify('(cells/OldNameCell01/nodes/OldNameNode01|serverindex.xml#ServerIndex_1)', '[[hostName NewName]]')

The Deployment Manager change:

wsadmin command changing the Deployment Manager host name

The application-server change:

wsadmin command changing the application-server host name

Save the changes and leave wsadmin:

AdminConfig.save()
exit

wsadmin confirming that the configuration was saved

Update the host names in the console

Start the Deployment Manager:

cd /opt/IBM/WebSphere/AppServer/profiles/DeploymentMGR/bin
sudo ./startManager.sh

Deployment Manager starting successfully in the terminal

Sign in to the administrative console using the new host name. Open the Ports settings for each of these components and replace every remaining reference to OldName with NewName:

Before updating the port host names:

WebSphere port settings containing the old host name

After updating the port host names:

WebSphere port settings containing the new host name

  • Deployment Manager
  • Application server
  • Node agent

Save the configuration after making the changes.

Synchronise and start the node

Synchronise the application-server node with the Deployment Manager. The example uses 8879; substitute the Deployment Manager SOAP connector port from your configuration if it differs.

cd /opt/IBM/WebSphere/AppServer/profiles/Application01/bin
sudo ./syncNode.sh NewName 8879

Application-server node synchronising with the Deployment Manager

Start the node:

cd /opt/IBM/WebSphere/AppServer/profiles/Application01/bin
sudo ./startNode.sh

Application-server node starting successfully in the terminal

Finally, sign in to the administrative console using NewName. Confirm that the node is synchronised, the expected servers and applications start, and the console no longer shows references to OldName.

WebSphere application server listed with NewName as its host

Find the fix

Search articles

Esc

Search titles, technical terms or error codes.