Functional Specification
Start, stop and display the status of Relay Server.
The actual services displaying the start, stop and the status are as follows:
SWDTiSDSVWebService (MDM profile distribution service for Windows/iOS)
SWDT_APNsClient (APNs connection function)
SWDT_MDMServer (MDM function)
SWDTiSDSVService (Relay Server services for iOS)
SWDTKSDSVService (Relay Server services for Windows/Android)
Command Format
SDSVService.bat {-STATUS | -START | -STOP } [-times <TIME>]
Option
Specify to display the status of the service.
Specify to start the service.
Specify to stop the service.
Specify the monitoring time period at the time of stopping the service in seconds. You can specify the numeric value between 1 and 99999.
Valid only when -STOP is specified.
Unless the service ends within the specified monitoring time period at the time of ending the service, command ends due to error.
While describing the numeric value, add 0 at the beginning.
When omitted, the monitoring time period is of 300 seconds.
Return Value
Ended successfully (when the value other than STATUS is specified)
Service unable to start
Service unable to stop
Option error
Other error
- When STATUS is specified and no error occurs, the value calculated according to the operation status of the following services is returned by considering 100 as the standard.
- While executing MDM profile distribution service for Windows/iOS +1
- While executing APNs connection function +2
- While executing MDM function +4
- While executing Relay Server Service for iOS +8
- While executing Relay Server Service for Windows/Android +16
<Example of operating status and ERRORLEVEL of the services>
Relay Server Services | ERROR LEVEL | |||||
Service name | MDM profile distribution service for Windows/iOS | APNs connection service | MDM service | Relay Server Service for iOS | Relay Server Service for Windows/Android | |
Added value | +1 | +2 | +4 | +8 | +16 | |
Service status | Stopping | Stopping | Stopping | Stopping | Stopping | 100 |
Starting | Starting | Starting | Starting | Starting | 131 | |
Starting | Starting | Starting | Starting | Stopping | 115 | |
Starting | Stopping | Stopping | Stopping | Starting | 117 |
Location for Saving Commands
<Relay Server installation folder>\bin
Authority Required For Execution/Execution Environment
Execute with a user that belongs to the Administrators group of the local computer or a user that belongs to the Domain Admins group of the domain.
Execute the command on Relay Server.
Note
Stopping the service by specifying -STOP may take up some time to stop the service. If the error occurs frequently at the time of stopping the service, set a longer monitoring time period in -times option.
When executing this command in the environment of Windows Server 2008, Windows Server 2012, or Windows Server 2016, it is necessary to open the command prompt with "Run as Administrator".
When coexisting with SS of Systemwalker Desktop Patrol, the following four services to be started or stopped are commonly used. Execute the command after confirming that there are no issues arising regarding starting or stopping the service.
SWDTiSDSVWebService
SWDT_APNsClient
SWDT_MDMServer
SWDTiSDSVService
Example of Use/Execution Results/Output Format
[When query of service status (-STATUS) is performed]
C:\Program Files (x86)\Fujitsu\Systemwalker Desktop Keeper\SDSV\bin>SDSVService.bat -STATUS Tue 01/17/2017-11:40:58.87 -SDSVSERVICE-------------------------------------------- Tue 01/17/2017-11:40:58.88 [The Service of relay server situation display (STATUS)] Tue 01/17/2017-11:40:58.88 -------------------------------------------------------- Tue 01/17/2017-11:40:59.94 The service of MDM profile distribution service for Windows/iOS :operating Tue 01/17/2017-11:41:00.30 The service of APNs connection function :operating Tue 01/17/2017-11:41:01.43 The service of MDM function :operating Tue 01/17/2017-11:41:01.90 The service of Service of relay server for iOS :operating Tue 01/17/2017-11:41:03.24 The service of Service of relay server for Windows/Android :operating Tue 01/17/2017-11:41:03.24 The service inquiry of the management server ended.
[When service is stopped (-STOP)]
C:\Program Files (x86)\Fujitsu\Systemwalker Desktop Keeper\SDSV\bin>SDSVService.bat -STOP Tue 01/17/2017-11:39:20.76 -SDSVSERVICE------------------------------------------------- Tue 01/17/2017-11:39:20.76 [ Service termination processing of the relay server (STOP) ] Tue 01/17/2017-11:39:20.77 ------------------------------------------------------------- Tue 01/17/2017-11:39:21.19 The service of MDM profile distribution service for Windows/iOS :operating Tue 01/17/2017-11:39:21.35 The service of APNs connection function :operating Tue 01/17/2017-11:39:21.52 The service of MDM function :operating Tue 01/17/2017-11:39:21.77 The service of Service of relay server for iOS :operating Tue 01/17/2017-11:39:21.96 The service of Service of relay server for Windows/Android :operating Tue 01/17/2017-11:39:21.96 The service inquiry of the relay server ended. Tue 01/17/2017-11:39:24.71 The service of the MDM profile distribution service for Windows/iOS is stopped. Tue 01/17/2017-11:39:24.22 The service of the MDM profile distribution service for Windows/iOS was stopped. Tue 01/17/2017-11:39:24.98 The service of relay server for iOS is stopped. Tue 01/17/2017-11:39:26.02 The service of relay server for iOS was stopped. Tue 01/17/2017-11:39:26.81 The MDM function is stopped. Tue 01/17/2017-11:39:26.94 The MDM function was stopped. Tue 01/17/2017-11:39:27.10 The APNs connection function is stopped. Tue 01/17/2017-11:39:27.10 The APNs connection function was stopped. Tue 01/17/2017-11:39:30.21 The service of relay server for Windows/Android is stopped. Tue 01/17/2017-11:39:30.28 The service of relay server for Windows/Android was stopped. Tue 01/17/2017-11:39:47.30 The service of MDM profile distribution service for Windows/iOS :halt condition Tue 01/17/2017-11:39:47.59 The service of APNs connection function :halt condition Tue 01/17/2017-11:39:47.80 The service of MDM function :halt condition Tue 01/17/2017-11:39:48.02 The service of Service of relay server for iOS :halt condition Tue 01/17/2017-11:39:48.16 The service of Service of relay server for Windows/Android :halt condition Tue 01/17/2017-11:39:48.16 Service stopped.
[When the service is started (-START) while the services have stopped]
C:\Program Files (x86)\Fujitsu\Systemwalker Desktop Keeper\SDSV\bin>SDSVService.bat -START Tue 01/17/2017-11:40:06.81 -SDSVSERVICE--------------------------------------- Tue 01/17/2017-11:40:06.82 [ relay server service start processing (-START) ] Tue 01/17/2017-11:40:06.82 --------------------------------------------------- Tue 01/17/2017-11:40:07.16 The service of MDM profile distribution service for Windows/iOS :halt condition Tue 01/17/2017-11:40:07.33 The service of APNs connection function :halt condition Tue 01/17/2017-11:40:07.51 The service of MDM function :halt condition Tue 01/17/2017-11:40:07.69 The service of Service of relay server for iOS :halt condition Tue 01/17/2017-11:40:07.83 The service of Service of relay server for Windows/Android :halt condition Tue 01/17/2017-11:40:07.85 The relay server service inquiry end was done. Tue 01/17/2017-11:40:07.85 The APNs connection function is started. Tue 01/17/2017-11:40:10.29 The MDM function is started. Tue 01/17/2017-11:40:12.51 The service of relay server for iOS is started. Tue 01/17/2017-11:40:12.91 The service of MDM profile distribution service for Windows/iOS is started. Tue 01/17/2017-11:40:34.46 The service of relay server for Windows/Android is started. Tue 01/17/2017-11:40:37.33 The service of MDM profile distribution service for Windows/iOS :operating Tue 01/17/2017-11:40:37.69 The service of APNs connection function :operating Tue 01/17/2017-11:40:39.66 The service of MDM function :operating Tue 01/17/2017-11:40:40.46 The service of Service of relay server for iOS :operating Tue 01/17/2017-11:40:41.40 The service of Service of relay server for Windows/Android :operating Tue 01/17/2017-11:40:41.40 Service was started.