Skip to Content
0

BO 4.1 SP6 batch restart SIA And tomcat

Feb 22 at 04:23 PM

173

avatar image
Former Member

we are running a boxi restart jobs through windows batch file which is getting called by bmc control m tool.

the start and restart jobs are called parallel on both servers and we were facing issue where the sia and tomcat automatically restarts even though it was stopped on windows server.

This was working fine for year but has now causing this issue.


The BO server is clustered with server1 as main server and server 2 is server on windows bo 4.1 sp6


Commands used in the windows batch file

--SIA STOP
@echo off
NET STOP BOEXI40SIAserver1

--TOMCAT STOP
@echo off
NET STOP BOEXI40Tomcat

--SIA START
@echo off
NET START BOEXI40SIAserver1

--TOMCAT START
@echo off
NET START BOEXI40Tomcat

Please could you advise .
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Jawahar Konduru Feb 22 at 04:28 PM
0

Can you make sure after issuing the stop command, those services are not exists in task manager? if they still exists kill them, so it will stop completely. if you don't do that, sometimes, even though you execute the stop command, it will restart them automatically before issuing start command.

Share
10 |10000 characters needed characters left characters exceeded
Yogesh Patel
Feb 22 at 05:23 PM
0

Hello navin mahindroo,

Carefully looking at the script and you need to change order of your start and stop,

Stop - SIA

Stop - Tomcat

Start - Tomcat

Start - SIA

I would suggest to put wait between stoping/starting SIA and Tomcat

-Yogesh

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 23 at 09:45 AM
0

Hi Yogesh,

we have put the implemented these steps in the above order as you have mentioned and added wait time of around 10 mins after sia stop and 3 mins after tomcat stop.

But still have stopping the tomcat/sia automatically restarts in windows. after few secs

how do we prevent this .

This causes the issue in the batch as when we start tomcat/sia we get the message. the requested service has already been restarted.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hello,

You can try by setting the start up type to manual for both SIA (under services) and Tomcat (Configuration)

Regards,

Shreejith

0
avatar image
Former Member Feb 28 at 08:11 AM
0

Hi Navin,

Based on your explanation, there are two ways this can happen.

1. Task Scheduler of Windows (Assuming your BO server is on windows)

Check the Windows Task scheduler, if it has any event that listens on BO services. Its possible that someone has scheduled a task to restart BO services if they are not running.

2. BMC control-m scheduler

Check through the control-m jobs if there is any monitoring for BO services. Its possible that control-m job would be monitoring the BO services and if they are down, it would be scheduling a job to restart the BO services..

Is this just happening in PROD?

Regards,

Kunal Kharat

Share
10 |10000 characters needed characters left characters exceeded