### Execute Setup Script Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=codw-enabling-failover-in-multiple-node-oracle-rac-database-cluster-windows This command executes the `setupfiles.sh` script located in the `/bin` directory. This script is part of the installation and configuration process for the system. ```bash cd /bin ./setupfiles.sh ``` -------------------------------- ### Setup Files Script Execution Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=deployment-moving-colonies-upgrade-environment Runs a setup script to configure installation files. This script needs to be executed after database parameter changes in the sandbox.cfg file. It supports both Linux/UNIX and Windows operating systems. ```shell /bin/setupfiles.sh ``` ```powershell \bin\setupfiles.cmd ``` -------------------------------- ### Example JBoss Startup Script with Properties Source: https://www.ibm.com/docs/en/configurepricequote/9.5_topic=ear-configuring-jboss-application-server Demonstrates how to pass various system properties, including vendor and vendorFile, as command-line arguments to the JBoss run.sh script. This allows for flexible configuration without directly editing standalone.conf. ```shell run.sh -c yantra_domain -Djboss.partition.name=yantraPartition -b host -Dvendor=shell -DvendorFile=/servers.properties -DLOGFILE=logs/JBOSS_sci.log -DSECURITY_LOGFILE=logs/JBOSS_security.log ``` -------------------------------- ### Example: Install JAR to agent dynamic classpath Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=utilities-installing-third-party-jar-files Demonstrates how to use the `install3rdParty.sh` script to install a specific JAR file (`wlclient.jar`) to the agent's dynamic classpath. This example shows the command structure, including vendor details, the JAR file path, and the target JVM. ```shell /bin/install3rdParty.sh weblogic 12.1.2 -j /wlserver_12.1.2/server/lib/wlclient.jar -targetJVM AGENT ``` -------------------------------- ### Execute setupfiles Command Source: https://www.ibm.com/docs/en/configurepricequote/9.5_topic=websphere-defining-jax-ws-web-service Navigate to the bin directory and execute the setupfiles command to apply configuration changes. This script is crucial for updating the necessary files for web service enablement. Ensure the build user has write permissions to relevant subdirectories. ```shell # For UNIX/Linux: /bin/setupfiles.sh # For Windows: \bin\setupfiles.cmd ``` -------------------------------- ### Start MQ Queue Manager Listener Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=mq-creating-jms-bindings-in-websphere This command starts the MQ listener for a specified Queue Manager on a server. It requires the installation directory of MQ, the Queue Manager name, and the TCP port. Ensure the MQ installation path and Queue Manager name are correctly provided. ```bash /bin/runmqlsr -m -t TCP -p ``` -------------------------------- ### Run setupfiles Script (Shell) Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=configuring-move-from-non-sharded-mode-sharded-mode This snippet demonstrates how to execute the `setupfiles` script, which is necessary for re-creating runtime property files with updated values, including multi-schema configurations. This script is available for both UNIX/Linux and Windows environments. ```shell # For UNIX or Linux /bin/setupfiles.sh # For Windows /bin/setupfiles.cmd ``` -------------------------------- ### Start Integration Server on Windows Source: https://www.ibm.com/docs/en/configurepricequote/9.5_topic=tasks-starting-integration-server This command starts the Sterling Application Platform Integration Server on Windows systems. Ensure you replace the placeholder with the actual installation directory. ```batch @echo off SET INSTALL_DIR=C:\path\to\your\installation %INSTALL_DIR%\bin\startIntegrationServer.cmd ``` -------------------------------- ### Build Application Image with Specific WAR Files and Options Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=images-building-docker This example demonstrates building only the application server image with a specified set of WAR files (Application Console, Sterling Business Center, System Management Administrator, and Commerce Call Center). It also shows how to disable development mode, prevent exporting tar.gz image files, and set custom repository and tag names for the application image. ```bash ./generateImages.sh --MODE=app --WAR_FILES=smcfs,sma,sbc,isccs --DEV_MODE=false --EXPORT=false --APP_REPO=xyzcorp-om-app --APP_TAG=v10 ``` -------------------------------- ### Start Db2 Instance with Keystore Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=encryption-migrating-existing-unencrypted-db2-database-encrypted-database Command to start the Db2 instance, enabling it to use the specified keystore and password for operations. ```shell db2start open keystore USING Str0ngPassw0rd ``` -------------------------------- ### Simulating GET Request with Large Parameters using X-HTTP-Method-Override Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=services-specifying-http-headers This example shows how to use X-HTTP-Method-Override to send GET request parameters that exceed URL length limits. A POST request is made with Content-Type set to 'application/x-www-form-urlencoded', and the X-HTTP-Method-Override header is set to 'GET'. ```HTTP POST http://host:port/contextRoot/restapi/resource Header: Content-Type: application/x-www-form-urlencoded Header: X-HTTP-Method-Override: GET Body: param1=value1¶m2=very_long_value... ``` -------------------------------- ### WebLogic JSP Pre-compilation Setup and Execution (Shell Script) Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=recommendations-weblogic-tuning-jsp-pre-compilation This snippet outlines the environment variable configuration and the Java command to pre-compile JSP pages using WebLogic's `weblogic.appc` utility. It requires setting `JAVA_HOME`, `INSTALL_DIR`, and `WL_HOME`, then constructing the classpath and executing the compilation for the `smcfs.ear` file. Ensure to adapt the paths to your specific installation directories. ```shell export JAVA_HOME= export INSTALL_DIR= export WL_HOME= # For WebLogic 12.2.1.3 WLS_JARS=${JAVA_HOME}/lib/tools.jar:${WL_HOME}/lib/weblogic.jar:${WL_HOME}/lib/ojdbc8.jar:${JAVA_HOME}/jre/lib/rt.jar STERLING_CLASSPATH="${WLS_JARS}:${CLASSPATH}" APPC_CLASSPATH=${WL_HOME}/lib/weblogic.jar:${JAVA_HOME}/lib/tools.jar ${JAVA_HOME}/bin/java -Xms1024m -Xmx1024m -Djava.io.tmpdir=${INSTALL_DIR}/tmp -classpath "${APPC_CLASSPATH}" weblogic.appc ${INSTALL_DIR}/external_deployments/smcfs.ear -forceGeneration -O -verbose -classpath ${YANTRA_CLASSPATH} ${INSTALL_DIR}/external_deployments/smcfs.ear ``` -------------------------------- ### Build All Images with Custom Tags, Export Directory, and Base Dockerfile Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=images-building-docker This example shows how to build all three types of images (base, agent, app) with a common tag. It demonstrates exporting the tar.gz image files to a specified directory, overriding the default WAR files to include only the Sterling Store application, and specifying a custom Dockerfile for building the base runtime image. Other image types will use their default Dockerfiles unless specified. ```bash ./generateImages.sh --OM_TAG=v10 --EXPORT_DIR=/opt/dockertar --WAR_FILES=wsc --BASE_DF=/opt/dockerfiles/Dockerfile.base ``` -------------------------------- ### Install Third-Party Dependencies (Windows/Linux) Source: https://www.ibm.com/docs/en/configurepricequote/9.5_topic=tasks-post-localization-task-client-side-literals These commands are used to install necessary third-party dependencies, such as `jsmin.jar`, required for the minification process. They should be run from the `/bin` folder. ```windows install3rdParty.cmd ``` ```linux install3rdParty.sh ``` -------------------------------- ### Create Resource JAR using deployer command Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=encryption-configuring-secure-sockets-layer-ssl-db2-websphere These commands demonstrate how to create a resource JAR file using the deployer utility. Separate commands are provided for Windows and Unix/Linux environments. ```batch \bin\deployer.cmd -t resourcejar ``` ```bash /bin/deployer.sh -t resourcejar ``` -------------------------------- ### Start Sterling OMS Schedule Agent and WebLogic Server JVMs Source: https://www.ibm.com/docs/en/configurepricequote/10.0_topic=jvm-heap-memory-garbage-collection These examples demonstrate how to start the Sterling Order Management System Software Schedule agent and a WebLogic application server with recommended heap sizes. For AIX systems, specific environment variables (PSALLOC, NODISCLAIM) are also shown to be set. The `-verbose:gc` flag is included for monitoring garbage collection. ```shell export PSALLOC=EARLY # AIX Only export NODISCLAIM=TRUE # AIX Only java -Xms384m -Xmx384m \ -verbose:gc \ com.yantra.integration.adapter.IntegrationAdapter java -Xms1024m -Xmx1024m \ -verbose:gc \ weblogic.Server ```