Next Topic

Previous Topic

Home

Book Contents

Book Index

Icon Text - Topic Parent
How to use MonTel service console commands

Topic creation date: 2008-11-25

MonTel Service Commands

As well as operating as a windows service, these applications include some command line options which allow them to be operated as console applications. The following commands can be used with and MonTel service application in a DOS box (or to command prompt). Open the command prompt and navigate to a mapped drive that is the MonTel application folder. On the command line enter the service name followed by one of the following:

INSTALL

Install the service. For more information see:

REMOVE

Remove or delete this service.

RECOVERY

Adds recovery information for this service, so that it can run LogSvc.exe on a service failure. See How the LogScv (Log Service Failures) application works.

UNRECOVERY

Removes recovery information this service.

START

Start the service after installation.

STOP

To Stop this running service.

INTERROGATE

Updates and returns the current status.

QUERY

Displays the current status. The DOS errorlevel variable contains the service status. An error is a value of 0, which usually indicate success.

SERVICE_STOPPED 1

SERVICE_START_PENDING 2

SERVICE_STOP_PENDING 3

SERVICE_RUNNING 4

SERVICE_CONTINUE_PENDING 5

SERVICE_PAUSE_PENDING 6

SERVICE_PAUSED 7

STATUS

Displays the current status (as above but returns any errors in errorlevel).

CONFIG

Returns the SCM service configuration.

CONSOLE

Run as a console application.

AUTO

Start the service when the computer starts.

MANUAL

Start the service manually only.

DISABLED

Disable the service (MANUAL to enable).

HELP

An abbreviated reminder of the above items.

------------------------------