ServiceManager

RunStatus(Host, ServiceName, IsRunning, Description)

Description
Arguments
[in] HostThe name of the host to be queried.
[in] ServiceNameThe name of the Service to be queried.
[out] IsRunningThe return will be one of the following:

  • 1 STOPPED
  • 2 START_PENDING
  • 3 STOP_PENDING
  • 4 RUNNING
  • 5 CONTINUE_PENDING
  • 6 PAUSE_PENDING
  • 7 PAUSED
[out] DescriptionA description of the service status.
Return Value Zero indicates success, any other value indicates failure.
Example See {installation directory}\Checks\VBScript\CheckService.vbs

ServiceStop(Host,ServiceName)

Description Attempts to stop a service.
Arguments
[in] HostHost on which the service is running
[in] ServiceNameThe name of the service to be stopped
Return Value Zero indicates success, any other value indicates failure.
Example See {installation directory}\Actions\VBScript\RestartService.vbs

ServiceStart(Host,ServiceName)

Description Attempts to start a service.
Arguments
[in] HostHost on which the service resides.
[in] ServiceNameThe name of the service to be started.
Return Value Zero indicates success, any other value indicates failure.
Example See {installation directory}\Actions\VBScript\RestartService.vbs

Sleep(Millisecs)

Description Causes the system to wait for a period of time.
Arguments
[in] MillisecsThe number of milliseconds the system will wait.
Return Value None
Example See {installation directory}\Actions\VBScript\RestartService.vbs

Copyright (c) Warren Flemmer 2006www.net-probe.com