Thursday, October 2, 2014

Start Scripts


$ "vi start_cell01_Cluster.sh
"start_cell01_Cluster.sh" 18 lines, 520 characters
echo "Starting Server $srv"
nohup /app/IBM/Profiles/appserver01/bin/startServer.sh $srv >> /dev/null 2>&1 &
echo "tail the startup log /logs/$srv/SystemOut.log for more details \n"
fi
done
done
fi
#!/bin/ksh
echo "\n################################################"
echo "Starting servers for Cluster in cell01"
echo "################################################"
echo
echo "Do you want to continue... y/n "
read input
if [ $input = "y" ]
then
echo "\n********************************************"
echo "  Starting servers on ***01*** box.. "
echo "********************************************\n"
/app/scripts/start01_ics.sh
~/scripts/archive_logs.ksh $srv
echo "Starting Server $srv"
nohup /app/IBM/Profiles/appserver01/bin/startServer.sh $srv >> /dev/null 2>&1 &
echo "tail the startup log /logs/$srv/SystemOut.log for more details \n"
sleep 3
else
echo "Please select \"y\" to continue exiting.. \n"
exit
fi













$ "more start_cell01_Cluster.sh
#!/bin/ksh
echo "\n################################################"
echo "Starting servers for Cluster in cell01"
echo "################################################"
echo
echo "Do you want to continue... y/n "
read input
if [ $input = "y" ]
then
echo "\n********************************************"
echo "  Starting servers on ***01*** box.. "
echo "********************************************\n"
/app/scripts/startICS01_ics.sh
~/scripts/archive_logs.ksh $srv
echo "Starting Server $srv"
nohup /app/IBM/Profiles/appserver01/bin/startServer.sh $srv >> /dev/null 2>&1 &
echo "tail the startup log /logs/$srv/SystemOut.log for more details \n"
sleep 3
else
echo "Please select \"y\" to continue exiting.. \n"
exit
fi






















No comments: