Environment: We have DataStage 7.5.2 and IS DataStage 8.0.1 installed on the same server with IS Multi_Client Manager.
Issue: When we execute our shut down script it will shut down IS DataStage 8.0.1. The question is how do we shutdown DataStage 7.5.2. The shut down script references the IS 8.0.1 dsenv file.
IS DataStage 8.0.1 Mult Client Shut Down w DataStage 7.5.2
Moderators: chulett, rschirm, roy
IS DataStage 8.0.1 Mult Client Shut Down w DataStage 7.5.2
Pete Cundy
Leawood, Kansas
Leawood, Kansas
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Version 7.5.2 does not have an active client, so would not need its client to be shut down.
But then you confuse me by referring to dsenv, which is a file on the server. What's really happening here?
If both versions are running on the server, then your shutdown script ought to shut down both. And they would do so in version 7.5.2 by referring to a file called ds.rc rather than dsenv (or by referring to the appropriate uv -admin -stop command).
But then you confuse me by referring to dsenv, which is a file on the server. What's really happening here?
If both versions are running on the server, then your shutdown script ought to shut down both. And they would do so in version 7.5.2 by referring to a file called ds.rc rather than dsenv (or by referring to the appropriate uv -admin -stop command).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
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
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
Pete Cundy
Leawood, Kansas
Leawood, Kansas