• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3556
  • Last Modified:

rename hostname, cell, and node names on websphere

I just cloned a vm that runs websphere 7.0.0.15. The seed and the clone are to run side by side in one LAN - and I will need to change the hostnames and node, cell names of at least one of them.  I tried to run some scripts but they do not seem to change everything.
Is this something possible, or is there a clean or step by step method on accomplishing this besides re-installing Websphere again.  

Thank you.
0
Asmareeno
Asked:
Asmareeno
2 Solutions
 
Radek BaranowskiFull-stack Java DeveloperCommented:
Hello there.

yes, there are script tools available here:
http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html#download

you just need to be careful when renaming all intrinsic WebSphere config objects, because mistaking one false character will result in your server not functioning or behaving weird.

In real production envs servers are created from the sctratch using parametrized jython scripts. In your case it will be safe to use above linked tools. Just remember to backup your server config before you start doing anything (use backupConfig.sh/.bat <filename> and if anything goes wrong use restoreConfig.sh/.bat <previouslyCreatedFilename>

good luck.
0
 
AdminRAMCommented:
Backing up WebSphere Application Server profiles
==================================================

Open the command prompt.
Browse to the <was_home>\bin directory. For example, you can type the following: cd <was_home>\bin For example:
cd c:\Program Files\IBM\WebSphere\AppServer\bin

Use the WebSphere Application Server manageprofiles command with the backupProfile parameter.
manageprofiles.bat -backupProfile -profileName <profile_name> -backupFile <backupFile_name>

For example:

Stand-alone
manageprofiles.bat -backupProfile -profileName AppSrv01 -backupFile c:\backup\AppSrv01yymmdd.zip

Network deployment
manageprofiles.bat -backupProfile -profileName Dmgr01 -backupFile c:\backup\Dmgr01yymmdd.zip


Restoring the WebSphere Application Server profiles
==================================================

In a command prompt, browse to the <was_home>\bin directory. Type cd <was_home>\bin.
For example, cd c:\Program Files\IBM\WebSphere\AppServer\bin.

Restore the profile. Type manageprofiles -restoreProfile -backup <backup_file_location>. For example:
manageprofiles -restoreProfile -backup c:\backup\AppSrv01yymmdd.zip

The manageprofiles command-line tool always restores to the same path the profile was backed up from.

Verify that the profile is restored. Browse to the <was_home>\profiles directory. For example, <was_home>\profiles\AppSrv01. If the profile is restored successfully, a folder for the restored profile is displayed.

Since backupConfig command will get only config dir ... it will not get installedapps directory or outside of config directory.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now