BAtch script to automate Stop & Start of BO Services

Hi All,
Is there a single command or batch script to stop and restart all the BO Services in Windows Server BOXIR2?

I have tried NET STOP & SC STOP but WEBI services are throwing errors but if i stop from CCM it shutdown without error.

Case I)
If there are no users trying to retrieve the data using WEBI the stop command works fine.
Case II)
when a user is using WEBI then using either “NET Stop” or “SC Stop” throws error.

ERRORS are:

  • “THe Service is not responding to the control function”

  • Control Service Failed 1053:
    The service did not respond to the start or control request in a timely fashion.

Your help is appreciated to resolve this issue.
Thanks,.


coolguy (BOB member since 2006-05-24)

Please find the script

cls
echo off
echo .
echo .
echo Starting all the BOXIR2 services
echo .
echo .
net start “Central Management Server”

net stop “Connection Server”
net start “Connection Server”

net stop “Crystal Reports Cache Server”
net start “Crystal Reports Cache Server”

net stop “Crystal Reports Job Server”
net start “Crystal Reports Job Server”

net stop “Crystal Reports Page Server”
net start “Crystal Reports Page Server”

net stop “Desktop Intelligence Cache Server”
net start “Desktop Intelligence Cache Server”

net stop “Desktop Intelligence Job Server”
net start “Desktop Intelligence Job Server”

net stop “Desktop Intelligence Report Server”
net start “Desktop Intelligence Report Server”

net stop “Destination Job Server”
net start “Destination Job Server”

net stop “Event Server”
net start “Event Server”

net stop “Input File Repository Server”
net start “Input File Repository Server”

net stop “List of Values Job Server”
net start “List of Values Job Server”

net stop “Output File Repository Server”
net start “Output File Repository Server”

net stop “Program Job Server”
net start “Program Job Server”

net stop “Report Application Server”
net start “Report Application Server”

net stop “Web Intelligence Job Server”
net start “Web Intelligence Job Server”

net stop “Web Intelligence Report Server”
net start “Web Intelligence Report Server”

net stop “WinHTTP Web Proxy Auto-Discovery Service”
net start “WinHTTP Web Proxy Auto-Discovery Service”

echo .
echo .
echo All services has been restarted.
echo .
echo .
pause


Rajasekar :india: (BOB member since 2004-07-16)

Hi Raja,
I dont think you have gone through my post completely. When tried using NET START and STOP incase of WEBI servers i am getting these error:

ERRORS are:

  • “THe Service is not responding to the control function”

  • Control Service Failed 1053:
    The service did not respond to the start or control request in a timely fashion.

Any pointers on how to resolve this issue.
Thanks,


coolguy (BOB member since 2006-05-24)

Hi Raja,
Is there a reason why you didn’t stop the CMS first?
Thanks,
Ian


Skeygo (BOB member since 2006-12-01)

The procedure for starting should be:

  1. CMS
  2. Other BO Services
  3. IIS/Tomcat/etc…

for shutting down proceed in reverse order.

An easier way of doing this is to add dependencies to your services (i.e. make all the “Other BO Services” dependent on the CMS and then make IIS/Tomcat dependent on all the other services.

That way to start all you need to do is net start IIS/Tomcat and to stop all the services its simply a net stop CMS /y

Another benefit of this is that you don’t have services failing during boot-up due to the CMS not having started yet. And you can prevent users from logging on until ALL the other services are ready!

T.


Tom Wolniewicz (BOB member since 2007-03-19)

HI Rajasekhar,

please send me the script for deletion of log files on BO servers automatically using a .bat script, Likewise auto restart of BO server.

Thanks Inadvance


vk_0432 (BOB member since 2011-11-02)