Product Documentation and Knowledge Base - HomeDocumentation


Charon-VAXCharon-AXPCharon-PDPCharon-SSPCharon-PAR

CHARON Log Monitor and Dispatcher

Table of Contents

Back to Table of Contents

General Description

The Log Monitor & Dispatcher is a special program which monitors a guest LOG file produced byĀ CHARON and executes a customizable script when it detects removal of a license.

It runs in the background (as a program or as a service) and periodicallyĀ scans a specified LOG file. When it detects a message with the code 0000002A or 00000351 ("Detected removal of a license") it submits the NOLICENSE.BAT procedure (this BAT file must be created manually).

The Log Monitor & Dispatcher service is installed as EmulatorLogMonitor. By default it is installedĀ in such a way that requires explicit actions to be started (either through a command lineĀ interface or using the standard ways of service management). For unattended execution, change the serviceā€™s configuration so that Windows starts the service automatically.

(info)Ā The tool requires a specific file "NOLICENSE.BAT" containing some specific instructions to be taken in situation of license absence. It is recommendedĀ you create this file in the folder (presumably) containing the LOG file.

When it is invoked by the ā€œLog Monitor & Dispatcherā€, the current directory of the batch processĀ is set to the same folder from which the ā€œLog Monitor & Dispatcherā€ was previously installedĀ as a service or from which it was started as a background process. This means that theĀ user action file may, in principle, operate with relative paths and relocate (as part of the wholeĀ configuration, i.e. together with accompanying LOG file).

Ā 

The user action file will not invoke interactive applications as it may run in an environment where interactive services do not work, for example: when ā€œLog Monitor & Dispatcherā€ is installed as a service.

Prerequisites

Before starting the Log Monitor & Dispatcher make sure that CHARON log is correctly specified in your configuration file:Ā it must be free of "-" symbols.

Note that this "-" sign may be also introduced to the name of the log file from the "configuration_name" parameter (in case of rotating log usage):

Not correct specification:

set session configuration_name="AS1000-AXPVMS"

CorrectĀ specification:

set session configuration_name="AS1000_AXPVMS"

Starting in background mode

In order to start the Log Monitor & Dispatcher as a background application:

  1. Open "cmd.exe" from the "Start" menu.
  2. Change current directory to the folder (presumably) containing the CHARON configuration file.
  3. Start the Log Monitor & Dispatcher using the following command line as an example:

    For single log file:Ā 
...> ā€œC:\Program Files\CHARON\Utilities_X.X.XXXXX\x86\logmondā€ C:\my_charon.log

Ā For rotating log file:Ā 

...> ā€œC:\Program Files\CHARON\Utilities_X.X.XXXXX\x86\logmondā€ -l <log-directory> -p <log-prefix>

where:

  • <log-directory> is the directory where the rotating log files are stored
  • <log-prefix> is the same as the "configuration_name" value in corresponding CHARON configuration file (or "hw_model", if "configuration_name" is not specified).

Example:

...> ā€œC:\Program Files\CHARON\Utilities_1.0.XXXXX\x86\logmondā€ -l "C:\My CHARON logs" -p "MY_VAX"

To stop the Log Monitor & Dispatcher application, open the Task Manager, find the ā€œlogmond.exeā€Ā process and terminate it.

Back to Table of Contents

Installing as a service

In order to install the Log Monitor & Dispatcher as a background application:

  1. Open "cmd.exe" from the "Start" menu in "Run as Administrator" mode.

  2. Install Log Monitor & Dispatcher service using the following command line as an example:
...> ā€œC:\Program Files\CHARON\Utilities_1.0.XXXXX\x86\logmondā€ -r
...> ā€œC:\Program Files\CHARON\Utilities_1.0.XXXXX\x86\logmondā€ -iĀ 

As result the "logmond" service has "Manual" service start type. Use Windows service management tools to change this mode to "Automatic" if it is required.

  • There will have one logmond father process that will scan the virtual machines services and one logmond process per log monitored.
  • The EmulatorLogMonitor service running the logmond processes will discover already installed CHARON virtual machines services. If a new virtual machine service is added, it's log file will be automatically discovered and monitored.
  • The nolicense.bat file has to be placed in the virtual machine "Home directory". This directory corresponds to the configuration file folder when the service is installed, however it will not change if the configuration file is relocated and the service is updated. To find this "Home directory", open the "CHARON Service Manager" utility, right click on the corresponding service and select "View configuration"

Ā 

Starting the Log Monitor and Dispatcher service

In order to start the Log Monitor & Dispatcher as a background application:

  1. Open "cmd.exe" from the "Start" menu in "Run as Administrator" mode.

  2. Start the Log Monitor & Dispatcher service using the following command line as an example:
...> ā€œC:\Program Files\CHARON\Utilities_1.0.XXXXX\x86\logmondā€ -u

It is also possible to use Windows service management tools to start up the service.

As soon as "logmond" service is installed this way, and started, it monitors all CHARON instances (provided that these are installed as services).

It does NOT monitor emulator instances started from Launcher or manually from command line prompt, these cases can still be monitored with "logmond" invoked from command line prompt with name of the log file as an argument (see above).

Back to Table of Contents

Stopping the Log Monitor and Dispatcher service

In order to stop the Log Monitor & Dispatcher as a background application:

  1. Open "cmd.exe" from the "Start" menu in "Run as Administrator" mode.

  2. Stop the Log Monitor & Dispatcher service using the following command line as an example
...> ā€œC:\Program Files\CHARON\Utilities_1.0.XXXXX\x86\logmondā€ -d

It is also possible to use Windows service management tools to stop the service.

Back to Table of Contents

Uninstalling the Log Monitor and Dispatcher service

In order to uninstall the Log Monitor & Dispatcher as a background application:

  1. Open "cmd.exe" from the "Start" menu in "Run as Administrator" mode.

  2. Uninstall the Log Monitor & Dispatcher service using the following command line as an example
...> ā€œC:\Program Files\CHARON\Utilities_1.0.XXXXX\x86\logmondā€ -r



© Stromasys, 1999-2024  - All the information is provided on the best effort basis, and might be changed anytime without notice. Information provided does not mean Stromasys commitment to any features described.