If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

start and Stop Cognos Services

Started by vivek_cyno, 15 Dec 2011 03:29:22 AM

Previous topic - Next topic

vivek_cyno

Hi,

Can someone help how to start and stop cognos services in Windows box.We need to schedule it every day.

Thanks in advance.

venkys4u_

this is for cognos 7 series..

If using Series 7, You can create a batch process (I used a DOS BAT file) to stop the services with the following entries:
@ECHO.
@ECHO. -- Stopping the Access Manager Server to prevent user access via WEB.
NET STOP "Cognos Access Manager Server (cer4)"
REM
@ECHO.
@ECHO. -- Stopping the Cognos IWR Service Manager service.
NET STOP "Cognos IWR Service Manager (cer4)"
@ECHO.
@ECHO. -- Stopping the Enterprise Server service.
NET STOP "Cognos PowerPlay Enterprise Server (cer4)"
@ECHO.
@ECHO. -- Stopping the Upfront Administration service.
NET STOP "Cognos Upfront Administration Service (cer4)"
@ECHO.
@ECHO. -- Stopping the Upfront Data Store service.
NET STOP "Cognos Upfront Data Store (cer4)"
@ECHO.
@ECHO. -- Stopping the Upfront Dispatcher service.
NET STOP "Cognos Upfront Dispatcher (cer4)" Then I've created another BAT file to start the processes: @ECHO.
@ECHO. -- Starting the Upfront and Enterprise Server services.
NET START "Cognos PowerPlay Enterprise Server (cer4)"
NET START "Cognos Upfront Administration Service (cer4)"
NET START "Cognos Upfront Data Store (cer4)"
NET START "Cognos Upfront Dispatcher (cer4)"
@ECHO.
@ECHO. -- Starting the COGNOS services.
NET START "Cognos IWR Service Manager (cer4)"
@ECHO.
@ECHO. -- Starting the Access Manager Server to enable user access via WEB
NET START "Cognos Access Manager Server (cer4)"

u can also use batch files( for cognos 8)

Start and stop cognos service using bat file
startcognos.bat
%ECHO OFF
echo "Starting Cognos 8"
net start "Cognos 8"
stopcognos.bat
%ECHO OFF
ECHO "Stopping Cognos 8"
net stop "Cognos 8"

FYI: these info's are not mine.. i found it somewhere and collected..

good luck dude!
thanks
venky

venkys4u_

#2
when i mentioned cognos8 and closed it using ),  it displayed  8)

LOL!

@ the topic..
however,

I think , there is squence and standard procedure how cognos should be started..!

could anyone brief more on this?
I just aware content manager service should be started first. Usually after testing content manager i use to start the service in cognos configuration.. I am not clear on this when it comes to distributed environment or multi server environment..

i just found now some more article dude..
http://www.cognoise.com/community/index.php?topic=5068.0

gud luck!
venky

jeffowentn

Here you go:

REM  --- stop order for servers ---
REM  all planning servers can be stopped at the same time
REM     EP App Server (primary)
REM     EP App Server (secondary)
REM     EP Job Server (primary)
REM     EP Job Server (secondary)
REM     EP Job Server (secondary)
REM     Planning Web Server
REM     Planning Web Server
REM  BI App Server only
REM     BI App Server
REM  standby content manager
REM     Standby Content Manager / BI App Server
REM  active content manager
REM     Primary Content Manager

REM  --- recycle IIS ---
REM  stop w3svc
REM     gateway server
REM     gateway server
REM  start w3svc
REM     gateway server
REM     gateway server

REM  --- start order for servers ---
REM  active content manager
REM     Primary Content Manager
REM  standby content manager
REM     Standby Content Manager / BI App Server
REM  BI App Server only
REM     BI App Server
REM  all planning servers can be started at the same time
REM     EP App Server (primary)
REM     EP App Server (secondary)
REM     EP Job Server (primary)
REM     EP Job Server (secondary)
REM     EP Job Server (secondary)
REM     Planning Web Server
REM     Planning Web Server

REM  --- on individual server with both services ---
REM  stop IBM Cognos 8
REM  stop IBM Cognos 8 Planning 8.4
REM  start IBM Cognos 8 Planning 8.4 (IBM Cognos 8 service is started automatically by starting Planning 8.4)

Hope this helps!

Jeff

venkys4u_

Hi  Jeff,
I have seen ur thread in a forum

http://www.computerhope.com/forum/index.php?topic=118636.0

I have doubt here.. is it really need of ensuring whether the service is stopped/started??

it sounds good to ensure the service status however ur code is very  big :)

I just tried to start/stop "IIS Admin" using batch file.. however the service is started, I could not go ahead with working localhost\cognos8
and I can see the service is not started in the IIS web site but in the service manager the status is started..

Is it because of dependencies of IIS? Did anyone faced this issue? or is there any other procedure/steps to start IIS using batch file/command mode?


thanks for ur time
venky


jeffowentn

Venky,

I'm having a hard time understanding your question.  My code is big because I have 12 servers, and we are running BI and Planning...there are dependencies that require the different servers and services to be started and stopped in a particular order, which is what I posted earlier in this thread.

The rest of the code is to determine whether the service has been appropriately stopped or started before moving on to the next piece of the code (stop service before stopping next service, etc.).

Jeff

venkys4u_

sorry for confusing u!  :D
I just came to say after reading full of ur post  I really felt it is more informative than I imagined but the code is lenghty(because of many servers and services)

What I asked finally is,

I used batch file to  start "IIS Admin" service using batch file but eventhough the service status seems to be started in service manager(by batch file) , I was not able to work with cognos since the web site in IIS is not started. But when I started manually then only I got cognos connection page. Do u have any idea on this? Is it because of dependency of the service?

Also,
I used net start "IIS Admin" ..  Am i using the right service??

but from ur code I can see it as

REM  --- recycle IIS ---
REM  stop w3svc
REM     gateway server
REM     gateway server
REM  start w3svc
REM     gateway server
REM     gateway server


Thanks in advance
venky

jeffowentn

Venky,

How many servers do you have and what role is each playing in your environment?

Is this BI-only or for Planning?

I see you are on Series 7, which should be much easier.  In fact, all I did for Series 7, when we were on that, was to simply reboot the servers and make sure the services are set to automatically start using the service account credentials.  The script you referenced of mine, earlier, is for a Cognos 8.4.1 environment, which is quite a bit different than Cognos 7.

Jeff

venkys4u_

Haa..

I just have a set up of BI 8.3 in stand alone for learning purpose.. as a developer, I dont get chance to work with server so training my self with the knowledge base docs and forum via since I have passion in admin work.. 

in the service manager, I can see the service as only "IIS Admin" which has two dependent in it.. Also i think I have IIS 5. version
thats why i used like net start "IIS Admin" to kick start IIS... whats the IIS version that u working with?

thanks for ur time jeff..
venky