CreateIHSConfigurationScripts - cws-khuntly/WebSphere GitHub Wiki


date: 2025-05-08 15:21:56 created: 2025-05-08 15:21:51 categories:

  • WebSphere / Server Build / Customization Toolkit

Create configuration script

Login to the IHS host via SSH

Copy the PCT response file to the workspace:

cp  /nfs/software/WebSphere/Toolbox/responsefiles/${ENV}/${IHS_INSTANCE}.txt \

    ${HOME}/workspace/WebSphere/Toolbox/responsefiles/${IHS_INSTANCE}.txt

Update the file to match the environment

Change permissions on the response file:

chmod 600 ${HOME}/workspace/WebSphere/Toolbox/responsefiles/${IHS_INSTANCE}.txt

Generate the webserver configuration script:

${WAS_INSTALL_ROOT}/Toolbox/WCT/wctcmd.sh -tool pct \

    -defLocPathname ${WAS_INSTALL_ROOT}/Plugins -defLocName "IHSPlugins-v9.0.5.22" \

    -createDefinition -response ${HOME}/workspace/WebSphere/Toolbox/responsefiles/${IHS_INSTANCE}.txt

Permission the file:

chmod 700 ${WAS_INSTALL_ROOT}/Plugins/bin/configure${IHS_INSTANCE}IHS.sh

Copy the resultant script to the deployment manager:

scp ${WAS_INSTALL_ROOT}/Plugins/bin/configure${IHS_INSTANCE}IHS.sh ${LOGNAME}@${DMGR_HOSTNAME}:/var/tmp

SSH to the appropriate deployment manager and move the file to the bin/ directory

Source setupCmdLine.sh:

source /opt/IBM/WebSphere/profiles/dmgr/bin/setupCmdLine.sh

Copy the file:

cp /var/tmp/configure${IHS_INSTANCE}IHS.sh ${USER_INSTALL_ROOT}/bin/configure${IHS_INSTANCE}IHS.sh

Permission the file:

chmod 700 ${USER_INSTALL_ROOT}/bin/configure${IHS_INSTANCE}IHS.sh

Execute:

${USER_INSTALL_ROOT}/bin/configure${IHS_INSTANCE}IHS.sh

Remove the temporary file:

rm -f /var/tmp/configure${IHS_INSTANCE}IHS.sh

⚠️ **GitHub.com Fallback** ⚠️