#!/bin/ksh

# 
# @HP_COPYRIGHT@
#
# HISTORY
# $NOHISTORY:$
# $EndNOHISTORY$
# 
# @(#)$RCSfile: sc_pre_upgrade,v $ $Revision: 1.6 $ (HP) $Date: 2003/10/21 23:12:57 $
# 

echo "Stopping rms on all nodes in the system..."

scrun -n all '/sbin/init.d/rms stop'



echo "Disabling rms on all head nodes..."

scrun -d all 'mv /sbin/init.d/rms /sbin/init.d/rms.disabled'



echo "Stopping sra on all headnodes..."

scrun -d all '/sbin/init.d/sra cluster_stop'



# The following command will back up the database

rmsbackup
