This is a part of my start/stop script for cognos on Unix.
stop_ts () {
# Stop Ticket Server
if [ ! -x ${COGNOS_ROOT}/bin/TicketServerd ]; then
echo "Ticket Server does not appear to be installed - skipping"
return 1
elif [ `ps -ef | grep -v grep | grep TicketServerd | grep -c maxconn` -eq 0 ]; then
echo "Ticket Server not running - skipping"
return 1
elif [ ${USERID} -eq '0' ]; then
echo "Stopping Ticket Server as user ${COGNOS_USER}"
su - ${COGNOS_USER} -c "
cd ${COGNOS_ROOT}/bin
./rc.TicketServerd stop"
else
echo "Stopping Ticket Server"
old_dir=`pwd`
cd ${COGNOS_ROOT}/bin
./rc.TicketServerd stop
cd ${old_dir}
fi
another way is to run the ./configcp with an input document like this:
#stop all Cognos BI components with the configuration manager
echo "Stop BI components"
/home/report/cognos/cer4/bin/configure -t /home/report/stop.ccp
content of stop.ccp file:
version 7.1
opencurrent
stop
exit
with this script all the components are stopped by the configuration manager and works for windows as well.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.