Solved

Changing Hostname of the machine

Posted on 2009-05-20
6
1,605 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Script to start/stop Weblogic 11, 12 6 147
Coldfusion upgrade question 1 78
script fails when run under WebSphere with SSL enabled 1 499
web service Rest Client creation 4 87
Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 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