Solved

Changing Hostname of the machine

Posted on 2009-05-20
6
1,598 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:WASAdmin25
Comment Utility
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
Comment Utility

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
Comment Utility
Well Thank you so much..........I think these scripts will be helpful....

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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

-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 …
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 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

10 Experts available now in Live!

Get 1:1 Help Now