COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => COGNOS 8 Administration => Topic started by: Ricky@MDPD on 23 Oct 2008 11:27:16 AM

Title: Starting Cognos Services from Command line!!
Post by: Ricky@MDPD on 23 Oct 2008 11:27:16 AM
I have cognos 8.3 BI installed on Windows.

I need the DOS command for starting the Cognos services, so I can include it in a .bat file i'm working on
Title: Re: Starting Cognos Services from Command line!!
Post by: kolonell on 23 Oct 2008 11:45:06 AM
Hi Ricky

You can silently start the Cognos service by calling the cogconfig.bat  script (located in the c8/bin folder) with the -s option. eg <c8_ROOT>/bin/cogconfig.bat -s to start and <c8_ROOT>/bin/cogconfig.bat -stop to stop the service.
Title: Re: Starting Cognos Services from Command line!!
Post by: prikala on 24 Oct 2008 04:22:56 AM
Another option is to control windows services:
    net start "Cognos 8:9302"
    net stop "Cognos 8:9302"
(replace name with your C8 service name).


Title: Re: Starting Cognos Services from Command line!!
Post by: Ricky@MDPD on 24 Oct 2008 07:38:05 AM
Hi Kolonell

Thank you for your reply. Is it important to include the port number? Is it a disadvantage if I leave it out???
Title: Re: Starting Cognos Services from Command line!!
Post by: kolonell on 24 Oct 2008 01:03:56 PM
I guess you're referring to the reply from Prikala when you mention the ports, I think.  The 'net start Cognos 8:9302' command needs the Service Name in order to start it. eg net start "Service Name". You'll need to verify what your service name for C8 is and modify the command appropriately.  The default (if you left the port numbers in Cognos Configuration as is) would be:  net start "Cognos 8".