Sorry for the confusion; we have DataStage 7.5.2 and IIS DataStage 8.0.1 installed on the same server each having their own dsenv file.
We have developed the following scripts (start/stop) in conjunction with our mid-range staff for dataStage 7.5.2, IIS DataStage 8.0.1,
ASBagent, Websphere Application Server and Websphere Setup.
DataStage v7.5.2:
auriga:/home/dsadm$
dsadm_start.ksh
#! /bin/ksh
###########################################################################
# Script to start up the dsadm processes. The script is owned by root,
# but user "dsadm" is given sudo rights to execute this.
###########################################################################
cd /u01/dstage/Ascential/DataStage/DSEngine
. ./dsenv to set the environment
/usr/bin/sudo ./bin/uv -admin -start
dsadm_stop.ksh
#! /bin/ksh
###########################################################################
# Script to stop up the dsadm processes. The script is owned by root,
# but user "dsadm" is given sudo rights to execute this.
###########################################################################
cd /u01/dstage/Ascential/DataStage/DSEngine
. ./dsenv to set the environment
/usr/bin/sudo ./bin/uv -admin -stop
IIS v8.0.1:
ds801_start.ksh
#! /bin/ksh
###########################################################################
# Script to start up the 8.0.1 dsadm processes. The script is owned by root,
# but user "dsadm" is given sudo rights to execute this.
###########################################################################
# cd /u01/dstage/Ascential/DataStage/DSEngine
# Update 08/27/2007
cd /IBM/InformationServer/Server/DSEngine
. ./dsenv to set the environment
/usr/bin/sudo ./bin/uv -admin -start
ds801_stop.ksh
#! /bin/ksh
###########################################################################
# Script to stop the 8.0.1 dsadm processes. The script is owned by root,
# but user "dsadm" is given sudo rights to execute this.
###########################################################################
# cd /u01/dstage/Ascential/DataStage/DSEngine
# Updated 08/27/2007
cd /IBM/InformationServer/Server/DSEngine
. ./dsenv to set the environment
/usr/bin/sudo ./bin/uv -admin -stop
ASBagent:
asbagent_start.ksh
#!/usr/bin/ksh
#
/IBM/InformationServer/ASBNode/bin/NodeAgents.sh start
#
exit 0
asbagent_stop.ksh
#!/usr/bin/ksh
#
/IBM/InformationServer/ASBNode/bin/NodeAgents.sh stop
#
exit 0
Websphere_setup.ksh
export PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.:${PATH}
set -o vi
stty erase ^?
alias l='ls -als'
alias lm='ls -als | more'
alias dsprojs='cd /dsprojs;pwd;ls -als'
alias dsparat='cd /dspara;pwd;ls -als'
alias dbldt='cd /dbload01/test; pwd ; ls -als'
alias dblds='cd /dbload01/systest; pwd ; ls -als'
alias dbldp='cd /dbload01/prod; pwd ; ls -als'
alias dshmk='cd /dshmk; pwd ; ls -als'
alias dsscripts='cd /dsscripts; pwd ; ls -als'
export DSFRM=/dbload01/test/FinRdMap
alias go7=". /dstage/Ascential/DataStage/DSEngine/dsenv"
alias go8=". /IBM/InformationServer/Server/DSEngine/dsenv"
export PATH=${PATH}:/home/dsadm/scripts:/dshmk/SCRIPTS
CVSROOT=:pserver:
buildonly@solhome.hallmark.com:/usr/cvsroot
export CVSROOT
Websphere Application Server:
antares:/home/wasadmin>
was_start.ksh
#!/usr/bin/ksh
#
#
/IBM/WebSphere/AppServer/bin/startServer.sh server1
#
exit 0
was_stop.ksh
#!/usr/bin/ksh
#
echo "password.: \c"
read WASPASS
#
/IBM/WebSphere/AppServer/bin/stopServer.sh server1 -username wasadmin -password $WASPASS
#
exit 0