WebSphere pipe cleaning of cloned box

Topic: Process for pipe cleaning after Cloning from one server to another server

1. Go to the new server which is cloned from another server.
2. Run the following commands under <WAS_HOME>

        find . -name "*.properties" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'
        find . -name "*.xml" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'
        find . -name "*.conf" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'
        find . -name "*.sh" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'
        find . -name "*.xsl" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'
        find . -name "*.jks" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'
        find . -name "*.txt" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'
        find . -name "*.asl" |xargs perl -pi -e 's/<OLDSERVER_HOST>/<NEWSERVER_HOST>/g'

3. Search again if any references to the old server by this command and replace them with the above command.

       find . -exec grep -l "<OLDSERVER_HOST>" {}\;

4. Go to the <WAS_HOME>/profiles/<PROFILE_NAME>
                A) Remove the following folders wstemp, temp
                B) under tranlog  folder remove all the folders
                C) under config folder remove the temp directory
5. Repeat step 4 for all other profiles if any.

Here <WAS_HOME> is WAS installation folder like /opt/ibm/WebSphere/Application_Server
and <OLDSERVER_HOST> and <NEWSERVER_HOST> can be either hostname or ip address of the server.

Comments

Popular posts from this blog

Jenkins Dynmaic Parameter - List All Branches in a Git Repository

JMSWMQ2013: The security authentication was not valid that was supplied for QueueManager 'XYZ' with connection mode 'Client' and host name 'x.x.x.x(1415)'. Please check if the supplied username and password are correct on the QueueManager to which you are connecting.