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:
- 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)
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.