Starting and stopping the Service Desk Manager services on Windows (manually, automatically, locally, remotely)

Document ID : KB000050057
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

When the Windows command, sc.exe is available in your installation, it can be a convenient means of starting and stopping the primary and secondary Service Desk Server services remotely, either manually or via an automated batch method. The commands to run and procedure are described in the Solution.

Solution:

When you want to start, stop, or recycle Service Desk Manager (SDM) services, especially when the SDM configuration includes secondary SDM servers, the Windows sc.exe can be used. Use of sc.exe enables the procedures to be automated, for example in a batch script.

The example in this solution is for a SDM configuration that contains 1 primary SDM server and 1 secondary SDM server. The procedure can be extended for multiple secondary SDM servers. In this example, the hostname of the primary is SD1Pri and the hostname of the secondary is SD1Sec.

To start SDM, open a Windows command prompt window and run these commands in the order listed (all secondaries must be started first):

sc.exe \\SD1Sec start pdm_daemon_proctor
sc.exe \\SD1Sec query pdm_daemon_proctor
Note: re-run the sc query command until the STATE in the returned message changes to RUNNING
sc.exe \\SD1Pri start pdm_daemon_manager

To stop SDM, open a Windows command prompt window and run these commands in the order listed (primary must be stopped first):

sc.exe \\SD1Pri stop pdm_daemon_manager
sc.exe \\SD1Pri query pdm_daemon_manager
Note: re-run the sc query command until the STATE in the returned message changes to STOPPED
sc.exe \\SD1Sec stop pdm_daemon_proctor

Additional Notes:

  1. If you are recycling SDM, then after stopping, be sure to query the pdm_daemon_proctor before running the sc start command.

  2. If you want to start, stop or query the SDM ODBC services, use the relevant service name in the sc command. For example, to query the status of these services, issue:

    sc.exe \\SD1Sec query "CA Service Desk Manager ODBC Data Access"
    sc.exe \\SD1Sec query "CA Service Desk Manager ODBC Agent"