Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Changing Hostname of the machine

Posted on 2009-05-20
6
1,608 Views
Last Modified: 2013-12-11
Hi,

I have installed WAS Standalone application server V6.1 on one of the test server.

Now, the Network team for some reason wants to change the HostName of that machine.

So, do I need to do anything on the WebSphere side so that the configuration can take the new hostname of that machine or how does it work.

Can anyone please suggest me !!!!

Thanks in Advance
0
Comment
Question by:WASAdmin25
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:dipinci
ID: 24432281
Hi

You can find the script and details on how to Changing Host Name or IP address of WSAS install.

Scripts: http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html#download
Document : http://www-01.ibm.com/support/docview.wss?uid=swg27005391&aid=1
0
 
LVL 4

Accepted Solution

by:
dipinci earned 500 total points
ID: 24432301
Procedure to alter hostname property for a standalone Base

1. Always perform backupConfig before making significant configuration changes.
2. Ensure that all server processes has been stopped on this node. Also verify that no
WebSphere java process or WASService.exe process is running.
<WAS_HOME>/bin/stopServer (.bat/.sh) <server> -username <name> -password
<password>
Note: On Windows platform, if Windows Service is used to start server then use Windows
Services panel to stop them.
3. In the serverindex.xml file for the node being modified, alter the value of the hostName
property for the ServerIndex element in the file. Search for hostName= to find this property.
9 8/19/2004
<WAS_HOME>/config/cells/<cell>/nodes/node>/serverindex.xml
Also in the serverindex.xml file for the node being modified, alter the host property for every
EndPoint in the file. Search all occurrences of host= string to find these properties.
<WAS_HOME>/config/cells/<cell>/nodes/<node>/serverindex.xml
4. In server.xml for all servers in the node being modified, alter the host property everywhere it
is used in the document. If host= specified, then do not alter it.
<WAS_HOME>/config/cells/<cell>/nodes/<node>/servers/<server>/server.xml
5. Edit the wsadmin.properties file in the properties subdirectory under the installation root.
Change the value of the com.ibm.ws.scripting.host property in that file to the new host
address.
<WAS_HOME>/properties/wsadmin.properties
6. Edit the orb.properties file in the subdirectory java/jre/lib under the installation root. Change
the value of the com.ibm.CORBA.LocalHost property in that file to the new host address.
<WAS_HOME>/java/jre/lib/orb.properties
7. Delete the following sub-directories entirely.
<WAS_HOME>/wstemp
<WAS_HOME>/config/temp
8. Start each server on node by following command.
<WAS_HOME>/bin/startServer (.bat/.sh) <server> -username <name> -password
<password>
Note: On Windows platform, if Windows Services is used to stop servers, use Windows
Services panel to start them.
0
 

Author Closing Comment

by:WASAdmin25
ID: 31583509
Thanks
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 

Author Comment

by:WASAdmin25
ID: 24436412
Thank you so much....

I will work on that.....

This seems to be a lot of manual steps on the configuration files.

It would be great if you can provide any other way. I mean just running any batch script to change the hostname in the WebSphere V6.1

Appreciate your help !!!
0
 
LVL 4

Expert Comment

by:dipinci
ID: 24439084

I have attached a ConfigScripts.txt file,Once you download the file rename to ConfigScripts.zip
 extract the file, after extract go to  ConfigScripts/bin and rename all the *.txt file to *.jacl file, and *.jpg file to *.html file.

Place in the $WASROOT/bin directory, You can follow Readme.html available in the ConfigScript.zip and can choose the Renaming procedure which suits your environment.


ConfigScripts.txt
0
 

Author Comment

by:WASAdmin25
ID: 24441622
Well Thank you so much..........I think these scripts will be helpful....

Appreciated !!!!!!!!!!!!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question