Using XMLConfig to change server host name and IP address

Technote (FAQ)
Problem
How to use the XMLConfig command to export your current WebSphere Application Server configuration and then change your server host name and IP address.
Solution
  1. Use the XMLConfig(.bat) command to export your current configuration.
    For example: From a command-line, run the following:

    XMLConfig -exportmyconfig.xml-adminNodeNameservername

    OR

    From the administrative console, select Console-->Export, and save it asmyconfig.xml. This creates a file called "myconfig.xml"

  2. Stop the application server and Web server.
  3. Edit the following files and replace the old server name with the new server name:

    For your WebSphere Application Server:
    install_root/properties/sas.server.props
    install_root/bin/admin.config

    For your Web server:
    $HTTP_HOME/conf/httpd.conf

  4. Drop and recreate the WebSphere Application Server database.
  5. Change the server name and IP address, then stop and restart your server (even for AIX®).
  6. Start the WebSphere Application Server administrative server.
  7. Edit the exported xmlconfig file, myconfig.xml, and perform a search and replace of the old servername and old ip address to the new servername and new ip address.
  8. Use the XMLConfig(.bat) command to import your previous configuration.

    For example:

    XMLConfig -importmyconfig.xml-adminNodeName newservername

    This will now restore your previous configuration with the new node name.











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, Administrative Console (all non-scripting)
Operating system(s): AIX, Linux, Solaris, Windows 2000, Windows NT
Software version: 3.5, 4.0
Software edition: Standard, Advanced
Reference #: 1006453
IBM Group: Software Group
Modified date: 2004-05-11