Solved

Changing Hostname of the machine

Posted on 2009-05-20
6
1,599 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Define alias for servlet 5 47
Hibernate filter not working 4 99
activemq cluster 1 236
Java Uncaught Exception 5 232
-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now