unix controlm/em startup and shutdown scripts

Several scripts
Post Reply
kches

unix controlm/em startup and shutdown scripts

Post by kches » 29 Nov 2007 6:09

Hi, I am trying to locate some examples of startup and shutdown scrips for controlm and EM. I have reviewed the manuals.

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 29 Nov 2007 9:58

Hi

Here is existing information on that topic for Control-EM

And here is an example for Control-M Server 6.1.03
You need to replace /controlm/ by your own path.

#!/bin/sh
# start/stop CONTROL-M
SYBASE=/controlm/sybase; export SYBASE
DSLISTEN=CTRLM; export DSLISTEN
DSQUERY=CTRLM; export DSQUERY
case "$1" in
'start')
# start sybase dataserver at boot
if [ -f /controlm/sybase/install/RUN ]; then
echo "Starting SQL server for CONTROL-M"
su - controlm -c "sleep 120 ; /controlm/ctm/scripts/start-sybase &"
sleep 10
fi
# start CONTROL-M at boot
if [ -f /controlm/ctm/scripts/start-ctm ]; then
echo "Starting CONTROL-M application"
su - controlm -c "sleep 120 ; /controlm/ctm/scripts/start-ctm &"
sleep 10
fi
;;
'stop')
if [ -f /controlm/ctm/scripts/shut-ctm ]; then
su - controlm -c "/controlm/ctm/scripts/shut-ctm &"
fi
if [ -f /controlm/ctm/scripts/shut-sybase ]; then
su - controlm -c "/controlm/ctm/scripts/shut-sybase &"
fi
;;

*)
echo "Usage: /etc/init.d/Controlm { start | stop }"
;;
esac
exit 0


To Control-M Server 6.2.01 and above
replace:

shut-ctm by shut_ctm
start-ctm by start_ctm
shut-sybase by shutdb same to oracle
start-sybase by startdb

To Control-M 6.3.01 you must add command followin command to manage Configuration Agent.
shut_ca and start_ca


And if it's for Control-M version 6.3.01 /ctm/ has been replace by /ctm_server/

TRAVO

AIX controlm/em startup and shutdown scripts for CTM server

Post by TRAVO » 29 Jul 2008 6:01

Do you happen to have the startup and shutdown scripts for Control M server 6.2.01?

Thanks

TRAVO

TRAVO

AIX controlm/em startup and shutdown scripts for CTM server

Post by TRAVO » 29 Jul 2008 6:06

I assuem there is two different scripts one for Control M EM and one for Control M server???

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 30 Jul 2008 7:41

Hi,

Everything is here

TRAVO

Post by TRAVO » 30 Jul 2008 8:07

Thanks for the help.

Travo

Post Reply