Wednesday, April 3, 2013

Create WAS Profile with response file

Response file for deployment manager (dmgr.rsp)
=================================================================
create
templatePath=/opt/IBM/WebSphere/AppServer/profileTemplates/cell/dmgr
nodeProfilePath=/opt/IBM/WebSphere/AppServer/profiles/AppSrv01
profileName=Dmgr01
cellName=autotestCell01
nodeName=autotestCellManager01
appServerNodeName=autotestNode01
adminUserName=wasadmin
adminPassword=think4me
enableAdminSecurity=true


Response file for application server (appsvr.txt)
==================================================================
create
templatePath=/opt/IBM/WebSphere/AppServer/profileTemplates/cell/default
dmgrProfilePath=/opt/IBM/WebSphere/AppServer/profiles/Dmgr01
portsFile=/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/portdef.props
nodePortsFile=/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/nodeportdef.props
profileName=AppSrv01
cellName=autotestCell01
nodeName=autotestCellManager01
appServerNodeName=autotestNode01
hostname=autotest
adminUserName=wasadmin
adminPassword=think4me
enableAdminSecurity=true

Run below command to create profiles:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -response dmgr.rsp
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -response appsvr.rsp


Create/Configure Plugin and WebServer
# cd  /opt/IBM/WebSphere/Toolbox/WCT
./wctcmd.sh -tool pct -defLocPathname /opt/IBM/WebSphere/Plugins -defLocName aTestWebSvr01 -response /opt/IBM/SQLDBA/pctLocal.rsp

# cat  pctLocal.rsp
 configType=local_distributed
enableAdminServerSupport=true
enableUserAndPass=true
enableWinService=false
ihsAdminCreateUserAndGroup=true
ihsAdminPassword=xxxxxxxx
ihsAdminPort=8008
ihsAdminUnixUserGroup=root
ihsAdminUnixUserID=root
ihsAdminUserID=wasadmin
mapWebServerToApplications=true
profileName=aTestNode01
wasExistingLocation=/opt/IBM/WebSphere/AppServer
wasMachineHostName=sun.goweekend.ca
webServerConfigFile1=/opt/IBM/HTTPServer/conf/httpd.conf
webServerDefinition=aTestWebSvr01
webServerHostName=sun.goweekend.ca
webServerInstallArch=64
webServerPortNumber=80
webServerSelected=ihsconfigureaTestWebSvr01.sh
webServerType=IHS

# cd /opt/IBM/WebSphere/Plugins/bin
# ls -lrt
-rwxr-xr-x   1 root     root        2524 Apr 25 13:32 configureaTestWebSvr01.sh
# cp configureaTestWebSvr01.sh /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin
# cd  /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin
# ./configureaTestWebSvr01.sh



No comments:

Post a Comment