Search This Blog

Monday, May 16, 2011

How to schedule a particular server to restart in BOE XI 3.1?

Many times there is a need to restart a particular service (server) to clean the cache / temporary data on file system / release memory. Please find below steps on how to achieve it on Windows and Unix.


WINDOWS

Workaround 1:

Create a different node either through CCM or CMC and add only those particular servers in this node which you would like to restart on a regular basis. For Ex. we'll name as CRPROC

Go to Start >> Run >> services.msc

Look for Server Intelligence Agent (CRPROC) >> right click and go to properties of this service.

On the General tab, look for Service Name. In this case, it should be BOE120SIACRPROC.

Open up notepad and copy-paste the below lines in it.

sc stop BOE120SIACRPROC
sc start BOE120SIACRPROC

Save this notepad as Restart_CRPROC.bat

Now you can use the Windows Task Scheduler or BO's Program Job Server service to start / stop these particular servers. If you are going for BO's Program Job Server service, you'll need to upload this program object (Restart_CRPROC.bat) to Enterprise and set a recurring schedule.

Note: You can create two different files if you just want to stop / start a particular service.

Workaround 2:

Open a notepad and add the following lines to it:

"<PATH TO CCM.EXE>\ccm.exe" -managedstop/managedstart SIANAME.SERVERNAME -cms CMSNAME:PORT -username <Admin user> -password <PASSWORD> -authentication <Authentication being used>

Eg.
To Stop:

"C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\ccm.exe" -managedstop SIA.WebIntelligenceProcessingServer -cms servername:6400 -username Administrator -password password123 -authentication secEnterprise

To start:

"C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\ccm.exe" -managedstart SIA.WebIntelligenceProcessingServer -cms servername:6400 -username Administrator -password password123 -authentication secEnterprise


UNIX:
Create a .sh file as below.

To Stop:
/apps/boxi31/bobje/ccm.sh -managedstop SIA.WebIntelligenceProcessingServer -cms servername:6400 -username Administrator -password password123 -authentication secEnterprise

To start:
/apps/boxi31/bobje/ccm.sh -managedstart SIA.WebIntelligenceProcessingServer -cms servername:6400 -username Administrator -password password123 -authentication secEnterprise


You can save this .sh file as Restart_WEBIPROC.sh

You can create a daemon service for this Restart_WEBIPROC.sh file and use it for scheduling the restart for selected services.

Note: You can create two different files if you just want to stop / start a particular service.

Hope this helps!!

You may refer to CCM help or SAP KB Article # 1286926 - How to start/stop or enable/disable individual XI3.x servers from command line

~The One

1 comment:

  1. Your adept guidance on scheduling a specific server is invaluable. The meticulous steps you've outlined ensure seamless operation and resource optimization. How Share Games Your expertise in managing server schedules enhances efficiency.

    ReplyDelete