Operating System - HP-UX
1835113 Members
2039 Online
110076 Solutions
New Discussion

Script for shutting down application

 
Ku
Occasional Contributor

Script for shutting down application

Hi I Am looking for ascript which will help me in shutting down the sap and DB in all servers from a central point at the same time. I dont have any idea about script writing so expecting a help from you geniuses.
My requiremtn is this.
1) All servers have script called /SCRIPT/shut.sh ( which will bringdown sap and oracle)
2) Script should be executed as root
3) I need this script to run from one server and the shutdown process happens on all servers in parallel.
4) 3 servers are using diffrent scripts for shutting down. /SCRIPT/pre.sh , /SCRIPT/ov.sh, /SCRIPT/post.sh respectively.
I need these servers also go down at the same time.

Please help me with this.
Thanks in advance
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Script for shutting down application

Shalom,

If the application does not come up with its own start/shut script.

cd /sbin/init.d

cp template appshut (give it a better name)

Modify this template to do the work you want it to do.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Deepak Kr
Respected Contributor

Re: Script for shutting down application

Ku,

>>shutting down the sap and DB in all servers from a central point at the same time?<<

do you have any scheduling product running in your environement e.g. TWS (Tivoli Work scheduler)

This can help you to initiate script centrally...through scheduler..
"There is always some scope for improvement"