Saturday 21 November 2015

Install WAS 7 through silent mode

In this tutorial, let us see how to install websphere application server (WAS) in linux machine (RHEL) in silent mode.


1. Download Websphere Installer from the official IBM Site



2.  Extract the installer

[websphe@middleware was70]$ tar -xvf C1G32ML.tar

[websphe@middleware was70]$ ls -ltr
total 885272
-rwxr-xr-x  1 websphe dba      5440 Aug 31  2008 launchpad.sh
-rw-r--r--  1 websphe dba      1113 Aug 31  2008 launchpad.ini
-rw-r--r--  1 websphe dba       213 Sep  1  2008 Version.txt
-rw-r--r--  1 websphe dba     68224 Sep  1  2008 notices.txt
-rw-r--r--  1 websphe dba      4605 Sep  1  2008 non_IBM_license.txt
-rw-r--r--  1 websphe dba       334 Sep  1  2008 Copyright.txt
drwxr-xr-x  3 websphe dba      4096 Sep  1  2008 JDK
drwxr-xr-x 35 websphe dba      4096 Sep  1  2008 launchpad
-rw-r--r--  1 websphe dba 905512960 Sep  6  2013 C1G32ML.tar
drwxr-xr-x 11 websphe dba      4096 Nov 20 21:07 WAS

3. Customize that response file parameters according to your environment.

You can find the original response file (responsefile.nd.txt) inside WAS folder in wassetup. Take a backup of that file and open and edit the response file parameters according to your environment. The minimum lines required for installing websphere are given below.  


  -OPT silentInstallLicenseAcceptance="true"
-OPT allowNonRootSilentInstall="true"
 -OPT disableNonBlockingPrereqChecking="true"
 -OPT checkFilePermissions="true"
 -OPT installType="installNew"
  -OPT profileType="none"
 -OPT feature="languagepack.console.all"
  -OPT feature="languagepack.server.all"
 -OPT installLocation="/u05/local/opt/was/was70"

4. Execute that response file by using a command


[websphe@middleware WAS]$ ./install -options responsefile.nd.txt -silent

5. verify the installation

Check for a message INSTCONFSUCCESS in a log file called log.txt if the installation is completed successfully. the log.txt located in /WAS_HOME/ logs/install  

[root@middleware install]# pwd
/u05/local/opt/was/was70/logs/install

[root@middleware install]# ls -ltr
total 360
-rwxrwxrwx 1 websphe dba  41764 Nov 20 21:10 trace.xml.gz
-rwxrwxrwx 1 websphe dba  24412 Nov 20 21:10 trace.txt.gz
-rwxrwxrwx 1 websphe dba      0 Nov 20 21:10 relabel.out
-rwxrwxrwx 1 websphe dba 281792 Nov 20 21:10 log.txt
-rwxrwxrwx 1 websphe dba   7164 Nov 20 21:10 installconfig.log.gz
-rwxrwxrwx 1 websphe dba    985 Nov 20 21:10 installconfigCIM.log.gz

[root@middleware install]# tail -10 log.txt
(Nov 20, 2015 9:10:11 PM), Process, com.ibm.ws.install.ni.ismp.mediaspanning.InstallNIFMaintenanceMediaSpanning, msg1, Current install/uninstall process is successful. Process type is: install
(Nov 20, 2015 9:10:15 PM), Process, com.ibm.ws.install.ni.ismp.actions.SettleNIFRegistryAction, msg1, Current install/uninstall process is successful. Process type is: install
(Nov 20, 2015 9:10:15 PM), Process, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=0
(Nov 20, 2015 9:10:15 PM), Process, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFSUCCESS


The WAS ND product has installed successfully, then you can create profiles  according to your requirement.

Create a profile using command line

Below is the command for UNIX to create a “dmgr” profile:

/WAS_HOME/bin/manageprofiles.sh -create -profileName dmgr - profilePath /WAS_HOME/profiles/dmgr -templatePath /WAS_HOME/profileTemplates/dmgr -cellName CELLNAME -hostName FullDnsName -nodeName ServerShortNameManager


EX:
/u05/local/opt/was/was70/bin/manageprofiles.sh -create -profileName dmgr - profilePath /u05/local/opt/was/was70/profiles/dmgr -templatePath /u05/local/opt/was/was70/profileTemplates/dmgr -cellName wnd01 -hostName middleware.br.com -nodeName wnd01

Below is the command for UNIX to create a “custom” profile:

/WAS_HOME/bin/manageprofiles.sh -create -profileName node -profilePath /WAS_HOME/profiles/node -templatePath /WAS_HOME/profileTemplates/managed -hostName FullDnsName -nodeName ServerShortName -federateLater true

EX:

/u05/local/opt/was/was70/bin/manageprofiles.sh -create -profileName node1 -profilePath /u05/local/opt/was/was70/profiles/node1 -templatePath /u05/local/opt/was/was70/profileTemplates/managed -hostName middleware.br.com -nodeName wnode01 -federateLater true

No comments: