Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert


It is possible to start/stop SMP services via Task Scheduler. I followed this discussion to try this out. Wanted to share my findings on this:

 

Note:

  • This was done just to test how SMP start/stop services could be planned for a given schedule.

  • If you are using a custom database with SAP Mobile Platform, starting and stopping SAP Mobile Platform Server has no effect on the database. Only the


default SAP SQL Anywhere database is automatically stopped and started in sync with SAP Mobile Platform Server (Ref. help.sap.com)


 

Pre-requisite: 1. SMP runtime should be installed on your machine (or should have remote access to the system)

2. Local Administrator role

3. SMP services should not be running and their Startup Type should be set to manual. (CTRL+R->services.msc)

 



 

Steps:

 

1. open 'Task Scheduler' (OR CTRL+R ->taskschd.msc )



 

2. Action->Create Basic Task



 

 

3. Since i just wanted to test how this would work, i triggered it with 'One time' option



 

4. Here, i had to give date-time to run this task (it may vary for the options selected in step# 3)

 



5. No more choice here, just select first option



 

6. Point to go-service.bat batch command SMP installation path)

 



7. Make sure to select checkbox



 

8. As you click on 'Finish', properties dialog box appears. Make sure to select 'Run with highest privileges' option



 

9. I could see command window appearing on my machine on the time as set during Step# 4 . It took a while to start SMP services.

 

 



 

Note: verify SMP Services again in services.msc

 



 

Note: There is a way to delete this schedule task, search your task under 'Active Tasks' list, double click on it ->Delete

(for modify schedule timing, look under Actions)



10. Same way, task can be created to STOP SMP services. Point to stop.bat file.

 



 

 



 

To confirm this, open services.msc->

 



 

 

 

Hope this helps.

 

Thanks wayne.smith for your inputs.

 

Regards,

JK

1 Comment