Product:
Cognos BI 10.1.1
AIX
Java 1.5
Problem:
How do I set Cognos BI Service to start automatic on a AIX server after a reboot of the AIX server ?
Background:
AIX will run scripts that are placed in folder /etc/rc.d/rc2.d
The name of the script tells AIX when to run it.
S scripts are executed with ‘start’ option during the boot of the machine in the order of next 2 digits (00 to 99).
K scripts are executed during shutdown with ‘stop’ parameter added automatically.
It is simpler to have one script that you copy and name it S99Cognos.sh and K99Cognos.sh.
Solution:
Open notepad or other text editor
Enter below into the text editor…………………………………………………….
#!/bin/bash
##################################################
# name: S99Cognos
# purpose: script that will start or stop the cognos application.
##################################################
case “$1” in
start )
su – cogservice -c ‘/opt/IBM/cognos/c10_64/bin64/cogconfig.sh -s’
;;
stop )
su – cogservice -c ‘/opt/IBM/cognos/c10_64/bin64/cogconfig.sh -stop’
;;* )
echo “Usage: $0 (start | stop)”
exit 1
esac
………………………………………………………………………………………………………………
Save the file as S99Cognos.sh and
Save the file as K99Cognos.sh
You need to update the path in above file to reflect your installations paths.
You need to replace cogservice with your account that run the Cognos service.
Ensure the files are saved in folder /etc/rc.d/rc2.d
as the root user (the folder to use depends on the AIX setup).
To start IBM HTTPServer:
Open vi or other AIX text editor
Enter below into the text editor…………………………………………………….
#!/bin/bash
##################################################
# name: S99HTTPServer
# purpose: script that will start or stop the apache application.
##################################################
start )
export LIBPATH=/opt/IBM/cognos/c10_64/cgi-bin:$LIBPATH
/opt/IBM/HTTPServer/bin/apachectl -k start
;;
stop )
export LIBPATH=/opt/IBM/cognos/c10_64/cgi-bin:$LIBPATH
/opt/IBM/HTTPServer/bin/apachectl -k stop
;;
* )
echo “Usage: $0 (start | stop)”
exit 1
esac
………………………………………………………………………………………………………………
Save the file as S99HTTPServer.sh and
Save the file as K99HTTPServer.sh
Ensure the files are saved in folder /etc/rc.d/rc2.d
as the root user.
Test the scripts carefully before you use them on your production AIX server.