Logfile Management

A command line interface for the management of log files.

Requires two configuration csv files detailed as following:

config_mosaiq_sql.csv

              , Timezone        , Mosaiq SQL Server (Hostname:Port)
a_centre      , Australia/Sydney, mosaiq:1433
another_centre, Australia/Sydney, another-mosaiq:1433

config_linac_details.csv

    , Centre        , IP
1234, a_centre      , 192.168.150.40
1236, a_centre      , 192.168.150.41
1238, another_centre, 10.0.0.40
usage: pymedphys logfile [-h] {orchestration} ...

Positional Arguments

logfile Possible choices: orchestration

Sub-commands:

orchestration

Manages the orchestration of Elekta Linac fetching logfiles from their backup directories and then indexing the collected files via Mosaiq SQL queries. Designed to be scheduled to run nightly or manually after an unscheduled backup. Requires two configuration csv files to be created, one for Mosaiq SQL configuration and the other for logfile configuration. See documentation for specification of the configuration files.

pymedphys logfile orchestration [-h] [-m MOSAIQ_SQL] [-l LINAC_DETAILS]
                                data_directory

Positional Arguments

data_directory The path for storing the indexed log files.

Named Arguments

-m, --mosaiq_sql
 Define a custom path for the Mosaiq SQL configuration file. Defaults to {data_directory}/config_mosaiq_sql.csv
-l, --linac_details
 Define a custom path for the Linac configuration file. Defaults to {data_directory}/config_linac_details.csv