Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
TopUtilPageTOCTopUtilPage
TOC
Include Page
KBCOMMON:KB-CSSstyle
KBCOMMON:KB-CSSstyle

...

Table of Contents
excludeTable of Contents

...

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

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.

...


Note

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.

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 LOG file.
    Start the Log Monitor & Dispatcher using the following command line as an example (for Windows x64; for Windows x86 use the following path: "C:\Program Files\CHARON\Utilities_X.X.XXXXX\x86"):

    For single log file:


    Div
    classsmall

    ...> "C:\Program Files\CHARON\Build_XXX\x86\logmond" my_charon.log 


    .
    For rotating log file: 


    Div
    classsmall

    ...> "C:\Program Files\CHARON\Build_XXX\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\Build_XXX\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

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

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\Build_XXX\x86\logmond" -r
    ...> "C:\Program Files\CHARON\Build_XXX\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.

Back to Table of Contents

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

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\Build_XXX\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. But 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

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

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\Build_XXX\x86\logmond" -d


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

Back to Table of Contents

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

Div
classpagebreak


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\Build_XXX\x86\logmond" -r
Back to Table of Contents

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

Log Monitor and Dispatcher best practice

Refer to this article in the Appendixes for proper configuration of the "nolicense.bat" file to establish needed actions on the dongle removal.

Back to Table of Contents

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc