Appendix A. Scripts used in the solution 179
UNIX scripts
In the following sections, we list the UNIX scripts and a configuration file used in
the ITWS/OnDemand integration solution.
Setup variables: tws_ondemand_env.sh
#!/bin/ksh
#
# Setup variables - tws_ondemand_env.sh
#
#
# TWS variables
#
WHOAMI=`whoami`
MAESTROHOME=`finger $WHOAMI | grep Directory | cut -d " " -f 2`
MAESTROHOME_STDLIST="$MAESTROHOME/stdlist"
MAESTROHOME_ONDEMAND="$MAESTROHOME_STDLIST/ondemand"
UNISON_STDLIST=$1
UNISON_JOBNUM=$2
UNISON_SCHED_DATE=$3
export WHOAMI MAESTROHOME MAESTROHOME_STDLIST MAESTROHOME_ONDEMAND
UNISON_STDLIST UNISON_JOBNUM UNISON_SCHED_DATE
#
# LOAD variables
#
LOAD_TYPE="REAL" # <<< ATTENTION: set to "REAL" (default) or "BATCH" >>>
export LOAD_TYPE
#
# ARSLOAD variables
#
ARSLOAD_CONVERT_OUTPUT="$PRODUCT_DIR/logs/ondemand/tws_ondemand_convert.out"
ARSLOAD_FAILED="$PRODUCT_DIR/logs/ondemand/tws_ondemand_arsload.failed"
ARSLOAD_OUTPUT="$PRODUCT_DIR/logs/ondemand/tws_ondemand_arsload.out"
ARSLOAD_REAL_OUTPUT="$PRODUCT_DIR/logs/ondemand/tws_ondemand_real.out"
ARSLOAD_TMP_OUTPUT="$PRODUCT_DIR/logs/ondemand/tws_ondemand_arsload_tmp.out"
ARSLOAD_SERVER="tws3.itsc.austin.ibm.com"
# <<< ATTENTION: set to ONDEMAND_SERVER_HOSTNAME >>>
ARSLOAD_TWS="stdlist"
ARSLOAD_TYPE=$OS

Get Integrating IBM Tivoli Workload Scheduler and Content Manager OnDemand to Provide Centralized Job Log Processing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.