Appendix A. Set up scripts 359
for i in `ipcs -s | grep siebsupp | awk '{print $2}'`
do
ipcrm -s $i 2>/dev/null
done
for i in `ipcs -m | grep siebsupp | awk '{print $2}'`
do
ipcrm -m $i 2>/dev/null
done
A.3.7 stop_siebel
#!/bin/ksh
###########################################################################
################
## Script is used to stop the siebel during HACMP failover
## Script tries to stop the siebel with stop_server if it does not work
then
## Kill the siebsvc processes
###########################################################################
#################
# Get the name of the enterprise and server name
enterprise=`ls /siebel/siebsrvr/enterprises`
server_name=`ls /siebel/siebsrvr/enterprises/$enterprise`
echo "Stopping the siebel Server\n" ...