?
Solved

Changing Hostname of the machine

Posted on 2009-05-20
6
Medium Priority
?
1,614 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
[X]
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
  • 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 2000 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
Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

801 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