SeisComP3

Table Of Contents

Previous topic

scbulletin

Next topic

scconfig

This Page

scchkcfg

Checks a module configuration.

Description

scchkcfg checks for case-sensitivity issues of parameter names of a module configuration. It reads all defined stages (see Modules) and checks for each parameter read if it exists again with a different spelling.

Examples

$ scchkcfg scautopick
Read configuration files OK
No possible conflict detected

scchkcfg checks only for possible conflicts since it does not know what parameters a module will read eventually.

$ scchkcfg scautopick
Read configuration files OK
Conflict #1
 connection.server    /home/sysop/seiscomp3/etc/global.cfg:8
 connection.Server    /home/sysop/.seiscomp3/scautopick.cfg:1
1 conflict detected

In this case everything is ok and the conflict needs to be fixed. connection.Server is not a valid parameter name (but connection.server is) in /home/sysop/.seiscomp3/scautopick.cfg and thus will not be used.

$ scchkcfg scautopick
Read configuration files OK
Conflict #1
 module.trunk.global.amplitudes.mb.signalEnd    \
      /home/sysop/.seiscomp3/scautopick.cfg:1
 module.trunk.global.amplitudes.mB.signalEnd    \
      /home/sysop/.seiscomp3/scautopick.cfg:2
1 conflict detected

In this case the configuration is OK and this is an example why the case-sensitivity has changed from previous versions: mb != mB. scchkcfg detects a possible conflicts but does not know that this case is well defined. But it helps the user to decide whether it needs a fix or not.

Command-line

scchkcfg {mod-name} [standalone]

Reads the configuration of {mod-name} and checks for case-sensitivity issues. If standalone is not given, it checks all 6 configurations files (including global.cfg), 3 otherwise.