Starting and Monitoring the Server, Setting up the Server for Network Access
Monitoring the Server Status and Stopping the Server via Command Prompts

You can use a command line (Start > Run) to query the status of the Chromeleon Server or stop the Server via a command prompt.

To query the status of the Chromeleon Server

  1. Type cmd  in the Run dialog box.

  2. Enter the CmMon /status command in the Command Prompt window.

 

Depending on the current server status, one of the following values is reported:

Value

Description

0

Chromeleon Server is not running.

 

 

1

Chromeleon Server is either idle, starting/stopping or updating the configuration.

 

 

2

Chromeleon Server is active or needs attention.

 

 

 

To automate the query, you can create a batch file (.bat file) that autoexecutes the cmMon /status command for you. Such a batch file (serverstatus.bat) could look as follows:


@echo off rem serverstatus.bat cmmon /status if errorlevel 2 goto act if errorlevel 1 goto idle if errorlevel 0 goto down :act echo Chromeleon Server is active goto end :idle echo Chromeleon Server is idle goto end :down echo Chromeleon Server is down goto end :end

To stop the Chromeleon Server

If needed, the Server can be stopped via a command prompt.  

  1. Type cmd  in the Run dialog box.

  2. Enter the CmReg /stopsafely command in the Command Prompt window.

 

To prevent that the Server is stopped during processing a batch, you can create a batch file that autoexecutes the cmReg /stopsafely command for you when it is safe to stop the Server. Such a batch file (stopsafely.bat) could look as follows:


@echo off rem stopsafely.bat cmreg /stopsafely if errorlevel 1 goto isactive if errorlevel 0 goto stoprequested :isactive echo The Chromeleon Server is active and cannot be stopped right now goto end :stoprequested echo A stop request has been sent to the Chromeleon Server goto end :end

Also, refer to:

 Identifying the Server Status