Wednesday, 3 October 2012

Silently installing WebSphere Application Server Network Deployment 8.5 - no GUIs here

In this article, I'll add to my knowledge of response-file driven silent software installations by installing the newly released WebSphere Application Server 8.5 product. As almost always, I'm using Red Hat Enterprise Linux rather than, say, Microsoft Windows.

So I've written a series of articles about silent / response-file driven installations, including: -


This time around, I'm installing the latest version 8.5 release of WAS, which was announced in April 2012 and released the following June.

As ever, I'm using Red Hat Enterprise Linux 6.3 ( x86-64 ), installed under VMware Fusion 5, on my trusty Apple MacBook Pro.

As ever, my notes do NOT NOT NOT replace the most excellent Information Centre, which has a great section on installation here. These are my notes, they work for me, and will hopefully work for you. However, remember, your mileage may vary.

Commands look like $this.
Output and script looks like this.

I've also included a few semi-optional steps, including how to check the version of IBM Installation Manager.

(i)

Download WAS 8.5 - this is described in great detail here: -


(ii) Unpack the images

IBM Installation Manager

$ mkdir /tmp/IIM
cd /tmp/IIM
unzip /mnt/hgfs/Software/WAS85/InstalMgr1.5.2_LNX_X86_WAS_8.5.zip 

WAS 8.5 ( including ND, Supplements and SDK )

mkdir /tmp/WAS85
cd /tmp/WAS85
unzip /mnt/hgfs/Software/WAS85/WAS_ND_V8.5_1_OF_3.zip 
unzip /mnt/hgfs/Software/WAS85/WAS_ND_V8.5_2_OF_3.zip 
unzip /mnt/hgfs/Software/WAS85/WAS_ND_V8.5_3_OF_3.zip 

(ii) Set up the hard and soft file limits

vi /etc/security/limits.conf

- append: -

*      soft    nofile          65535
*      hard    nofile          65535


- Note that these numbers worked for me - they MAY NOT WORK FOR YOU

(iii) Check the OS pre-requisites

Again, the documentation covers this rather well: -


and covers the pre-requisite Linux libraries and RPMs.

(iv) Install IBM Installation Manager (IIM)

cd /tmp/IIM/
./installc -acceptLicense -nosplash

(v) Check IIM version

/opt/IBM/InstallationManager/eclipse/IBMIM -version -silent -nosplash

Installation Manager (installed)
Version: 1.5.2
Internal Version: 1.5.2000.20120223_0907


(vi) Update IBM Installation Manager ( this assumes Internet connectivity - I'll cover off-line updating later )

NB THis document was of immense use here: -


vi ~/setSearchForUpdates.xml

- append: -

<?xml version="1.0" encoding="UTF-8"?>
<agent-input>
<preference value='true' name='com.ibm.cic.common.core.preferences.searchForUpdates'/>
<preference value='true' name='offering.service.repositories.areUsed'/>
</agent-input>

/opt/IBM/InstallationManager/eclipse/tools/imcl input ~/setSearchForUpdates.xml -acceptLicense -nosplash

/opt/IBM/InstallationManager/eclipse/IBMIM -updateAll -silent -nosplash

WARNING: Running Installation Manager version 1.5.2 (internal version 1.5.2000.20120223_0907).
WARNING: Found Installation Manager version 1.6.0 (internal version 1.6.0.20120831_1216).


(vii) Check IIM version

/opt/IBM/InstallationManager/eclipse/IBMIM -version -silent -nosplash

Installation Manager (installed)
Version: 1.6.0
Internal Version: 1.6.0.20120831_1216

(viii) Record the Response File

$ /opt/IBM/InstallationManager/eclipse/IBMIM -record ~/install_WAS85.rsp -skipInstall /tmp

- Note that I added the currently available set of WAS 8.5 iFixes: -

-rwxr-xr-x 1 501 games  205117 Oct  3 13:20 8.5.0.0-ws-was-ifpm62795.zip
-rwxr-xr-x 1 501 games  304065 Oct  3 13:20 8.5.0.0-ws-was-ifpm63690.zip
-rwxr-xr-x 1 501 games  251862 Oct  3 13:20 8.5.0.0-ws-was-ifpm63827.zip
-rw-r--r-- 1 501 games  300831 Oct  3 13:20 8.5.0.0-ws-was-ifpm71296.zip
-rw-r--r-- 1 501 games 1561566 Oct  3 13:20 8.5.0.0-ws-wasihs-multios-ifpm72915.zip
-rwxr-xr-x 1 501 games 2252798 Oct  3 13:20 8.5.0.0-ws-wasnd-distexceptibmi-ifpm64890.zip
-rw-r--r-- 1 501 games  437441 Oct  3 13:20 8.5.0.0-ws-wasnd-distexceptibmi-ifpm66137.zip
-rwxr-xr-x 1 501 games  227880 Oct  3 13:20 8.5.0.0-ws-wasprod-ifpm64186.zip
-rwxr-xr-x 1 501 games  235550 Oct  3 13:20 8.5.0.0-ws-wasprod-multios-ifpm63479.zip


and that the code was located in /tmp/WAS85 and the iFixes were located in /tmp/WAS85/Fixes.

which results in: -

<?xml version="1.0" encoding="UTF-8"?>
<!--The "acceptLicense" attribute has been deprecated. Use "-acceptLicense" command line option to accept license agreements.-->
<agent-input acceptLicense='true'>
<server>
<repository location='/tmp/WAS85'/>
<repository location='/tmp/WAS85/Fixes/8.5.0.0-ws-was-ifpm62795.zip'/>
<repository location='/tmp/WAS85/Fixes/8.5.0.0-ws-was-ifpm63690.zip'/>
<repository location='/tmp/WAS85/Fixes/8.5.0.0-ws-was-ifpm63827.zip'/>
<repository location='/tmp/WAS85/Fixes/8.5.0.0-ws-was-ifpm71296.zip'/>
<repository location='/tmp/WAS85/Fixes/8.5.0.0-ws-wasihs-multios-ifpm72915.zip'/>
<repository location='/tmp/WAS85/Fixes/8.5.0.0-ws-wasnd-distexceptibmi-ifpm64890.zip'/>
<repository location='/tmp/WAS85/Fixes/8.5.0.0-ws-wasnd-distexceptibmi-ifpm66137.zip'/>
<repository location='/tmp/WAS85/Fixes/8.5.0.0-ws-wasprod-ifpm64186.zip'/>
<repository location='/tmp/WAS85/Fixes/8.5.0.0-ws-wasprod-multios-ifpm63479.zip'/>
</server>
<profile id='IBM WebSphere Application Server V8.5' installLocation='/opt/IBM/WebSphere/AppServer'>
<data key='eclipseLocation' value='/opt/IBM/WebSphere/AppServer'/>
<data key='user.import.profile' value='false'/>
<data key='cic.selector.os' value='linux'/>
<data key='cic.selector.arch' value='x86'/>
<data key='cic.selector.ws' value='gtk'/>
<data key='cic.selector.nl' value='en'/>
</profile>
<install modify='false'>
<offering id='8.5.0.0-WS-WAS-IFPM62795' version='8.5.0.20120503_1150' profile='IBM WebSphere Application Server V8.5' features='-'/>
<offering id='8.5.0.0-WS-WAS-IFPM63690' version='8.5.0.20120611_1318' profile='IBM WebSphere Application Server V8.5' features='-'/>
<offering id='8.5.0.0-WS-WAS-IFPM63827' version='8.5.0.20120503_1507' profile='IBM WebSphere Application Server V8.5' features='-'/>
<offering id='8.5.0.0-WS-WASND-DistExceptIBMi-IFPM64890' version='8.5.0.20120608_1634' profile='IBM WebSphere Application Server V8.5' features='-'/>
<offering id='8.5.0.0-WS-WASND-DistExceptIBMi-IFPM66137' version='8.5.0.20120615_0733' profile='IBM WebSphere Application Server V8.5' features='-'/>
<offering id='8.5.0.0-WS-WASProd-IFPM64186' version='8.5.0.20120611_1543' profile='IBM WebSphere Application Server V8.5' features='-'/>
<offering id='8.5.0.0-WS-WASProd-MultiOS-IFPM63479' version='8.5.0.20120613_2056' profile='IBM WebSphere Application Server V8.5' features='-'/>
<offering id='com.ibm.websphere.ND.v85' version='8.5.0.20120501_1108' profile='IBM WebSphere Application Server V8.5' features='core.feature,ejbdeploy,thinclient,embeddablecontainer,com.ibm.sdk.6_64bit,samples,liberty' installFixes='none'/>
</install>
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='/opt/IBM/IMShared'/>
<preference name='com.ibm.cic.common.core.preferences.connectTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.readTimeout' value='45'/>
<preference name='com.ibm.cic.common.core.preferences.downloadAutoRetryCount' value='0'/>
<preference name='offering.service.repositories.areUsed' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.ssl.nonsecureMode' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.http.disablePreemptiveAuthentication' value='false'/>
<preference name='http.ntlm.auth.kind' value='NTLM'/>
<preference name='http.ntlm.auth.enableIntegrated.win32' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.keepFetchedFiles' value='false'/>
<preference name='PassportAdvantageIsEnabled' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.searchForUpdates' value='false'/>
<preference name='com.ibm.cic.agent.ui.displayInternalVersion' value='false'/>
<preference name='com.ibm.cic.common.sharedUI.showErrorLog' value='true'/>
<preference name='com.ibm.cic.common.sharedUI.showWarningLog' value='true'/>
<preference name='com.ibm.cic.common.sharedUI.showNoteLog' value='true'/>
</agent-input>

(ix) Perform the installation

/opt/IBM/InstallationManager/eclipse/IBMIM -input ~/install_WAS85.rsp -log install_WAS85.log -silent -nosplash -acceptLicense

After four minutes ( installing on a RHEL 6.3 x86-64 VM on my Mac with SSD ), this results in: -

Installed 8.5.0.0-WS-WAS-IFPM62795_8.5.0.20120503_1150 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.0.0-WS-WAS-IFPM63690_8.5.0.20120611_1318 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.0.0-WS-WAS-IFPM63827_8.5.0.20120503_1507 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.0.0-WS-WASND-DistExceptIBMi-IFPM64890_8.5.0.20120608_1634 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.0.0-WS-WASND-DistExceptIBMi-IFPM66137_8.5.0.20120615_0733 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.0.0-WS-WASProd-IFPM64186_8.5.0.20120611_1543 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.0.0-WS-WASProd-MultiOS-IFPM63479_8.5.0.20120613_2056 to the /opt/IBM/WebSphere/AppServer directory.
Installed com.ibm.websphere.ND.v85_8.5.0.20120501_1108 to the /opt/IBM/WebSphere/AppServer directory.


(x) Validate the installation

$ /opt/IBM/WebSphere/AppServer/bin/versionInfo.sh

WVER0010I: Copyright (c) IBM Corporation 2002, 2012; All rights reserved.
WVER0012I: VersionInfo reporter version 1.15.1.48, dated 2/8/12

--------------------------------------------------------------------------------
IBM WebSphere Product Installation Status Report
--------------------------------------------------------------------------------

Report at date and time October 3, 2012 3:16:37 PM BST

Installation
--------------------------------------------------------------------------------
Product Directory        /opt/IBM/WebSphere/AppServer
Version Directory        /opt/IBM/WebSphere/AppServer/properties/version
DTD Directory            /opt/IBM/WebSphere/AppServer/properties/version/dtd
Log Directory            /var/ibm/InstallationManager/logs

Product List
--------------------------------------------------------------------------------
ND                       installed

Installed Product
--------------------------------------------------------------------------------
Name                  IBM WebSphere Application Server Network Deployment
Version               8.5.0.0
ID                    ND
Build Level           gm1218.01
Build Date            5/1/12
Package               com.ibm.websphere.ND.v85_8.5.0.20120501_1108
Architecture          x86-64 (64 bit)
Installed Features    IBM 64-bit WebSphere SDK for Java
                      WebSphere Application Server Full Profile
                      EJBDeploy tool for pre-EJB 3.0 modules
                      Embeddable EJB container
                      WebSphere Application Server Liberty Profile
                      Sample applications
                      Stand-alone thin clients and resource adapters

--------------------------------------------------------------------------------
End Installation Status Report
--------------------------------------------------------------------------------


$ /opt/IBM/WebSphere/AppServer/bin/ivt.sh dmgr Dmgr01

Server name is:dmgr
Profile name is:Dmgr01
Profile home is:/opt/IBM/WebSphere/AppServer/profiles/Dmgr01
Profile type is:dmgr
Cell name is:localhostCell01
Node name is:localhostCellManager01
Current encoding is:UTF-8
Server port number is:9060
IVTL0010I: Connecting to the localhost WebSphere Application Server on port: 9060
IVTL0015I: WebSphere Application Server localhost is running on port: 9060 for profile Dmgr01
IVTL0035I: The Installation Verification Tool is scanning the /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/SystemOut.log file for errors and warnings.
[10/3/12 14:19:45:970 BST] 00000001 ComponentMeta W   WSVR0174W: A duplicate component has been ignored. Ignore the WS_JaxWsCommonContainer com.ibm.ws.container.binding.ws.impl.WSEndPointManagerComponentImpl [8825] [processtypes:Adjunct] component for the com.ibm.wsspi.extension.applicationserver-startup extension point within the com.ibm.ws.soa.sca.container.ws bundle.
[10/3/12 14:19:47:688 BST] 00000001 WSKeyStore    W   CWPKI0041W: One or more key stores are using the default password.
[10/3/12 14:19:47:788 BST] 00000001 PMIImpl       W   CWPMI0032W: PMI Service is not available in the Deployment Manager process.
[10/3/12 14:19:54:113 BST] 00000001 ThreadPoolMgr W   WSVR0626W: The ThreadPool setting on the ObjectRequestBroker service is deprecated.
[10/3/12 14:19:54:621 BST] 00000001 HostNameMap   W   HMGR0064W: Resolution of IP Addresses for host name localhost found only the loopback address. The loopback address will be used. 
[10/3/12 14:19:55:617 BST] 00000001 TCPChannelCon W   TCPC0813W: TCP Channel TCPInboundChannel_jm.Default_JM_SSL_Port_Connector_Name has been constructed with incorrect configuration property, Property Name: alias  Value: default
[10/3/12 14:20:21:930 BST] 00000001 TcpTransport  W   ADMD0025W: In process discovery, the 127.0.0.1 IP address is used to advertise an endpoint. This usage might cause problems in a network environment.
[10/3/12 14:20:22:585 BST] 00000042 FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/ffdc/dmgr_9bd45707_12.10.03_14.20.22.2191926955198076716393.txt com.ibm.ws.management.discovery.DiscoveryService.sendQuery 189
[10/3/12 14:33:23:910 BST] 000000e8 webcontainer  E com.ibm.ws.webcontainer.internal.WebContainer handleRequest SRVE0255E: A WebGroup/Virtual Host to handle /favicon.ico has not been defined.
[10/3/12 14:33:23:924 BST] 000000e8 webcontainer  E com.ibm.ws.webcontainer.internal.WebContainer handleRequest SRVE0255E: A WebGroup/Virtual Host to handle /favicon.ico has not been defined.
IVTL0040I: 10 errors/warnings are detected in the /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/SystemOut.log file
IVTL0070I: The Installation Verification Tool verification succeeded.
IVTL0080I: The installation verification is complete.


( Note that, by the time I ran this, I'd already created a cell configuration with a Deployment Manager profile ( profile Dmgr01 instance dmgr ) and a server profile ( profile AppSrv01 instance server1 ).

It's all good :-)

No comments: