The liserver Monitoring Center Simulator Script

The liserver script runs a Monitoring Centre Simulator. It starts a TCP or SFTP server and stores the records received as files in a useful hierarchical directory structure. The files can then be decoded with the lidecode script. In addition, decoded data can be printed out for each record received. The IP and Port can then be configured as a delivery endpoint on the Mediation system.

The GUI

Run liserver to launch the GUI:

liserver

Typically, you will want to use the default configuration file. You can override many of the options (host, port, etc) using the remaining fields in the GUI.

Press start to start the server.

Basic CLI Usage

To run with the default configuration from command line:

liserver -c
Storing output files in C:\Users\username\AppData\Roaming\LIMC\data
Serving TCP Server on 0.0.0.0:4000

The default port is 4000 and the server will start on all available IP addresses. To start on a specific host and/or port, use the -H and -P options:

liserver -H 127.0.0.1 -P 5000

Use the -d option to automatically stop the server after a certain number of seconds:

liserver -d60

Config Files

A more detailed configuration can be achieved using yaml configuration files. The default configuration file is shown in the output of:

liserver -h

To specify a different configuration file when running liserver:

liserver test_server.conf

You can check the default conf directory for more conf files that you can use as a basis for your own configuration.

The default conf directory also contains a default configuration for an SFTP server:

liserver conf/sftp_server.yaml

Output Format

The same output format options as with lidecode and lishark scripts are supported. By default, the full decoded record of each is printed out. There is also a -q (quiet) option to not print anything about messages received:

liserver -q

Help

Use the -h option to get the full list of command line options:

liserver -h

Or -e to see some examples usages:

liserver -e