You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
234 lines
5.2 KiB
ReStructuredText
234 lines
5.2 KiB
ReStructuredText
.. highlight:: rst
|
|
|
|
.. _scdumpcfg:
|
|
|
|
#########
|
|
scdumpcfg
|
|
#########
|
|
|
|
**Dump bindings or module configurations used by a specific module or global
|
|
for particular stations.**
|
|
|
|
|
|
Description
|
|
===========
|
|
|
|
scdumpcfg reads and prints the
|
|
:ref:`module or bindings configuration <concepts_configuration>`
|
|
for a specific module or for global. This command-line utility is useful for
|
|
debugging of configuration parameters.
|
|
|
|
Related to :program:`scdumpcfg` is :ref:`bindings2cfg` which dumps the bindings
|
|
configuration to :term:`SCML`.
|
|
|
|
Instead of printing parameters and values for stations, the option ``--nlsc``
|
|
allows printing the stream codes considered by the bindings. The output may be
|
|
used e.g. for filtering dumped streams in :ref:`scart`.
|
|
|
|
|
|
Examples
|
|
========
|
|
|
|
#. Dump the global bindings configuration for all stations which have global bindings.
|
|
|
|
.. code-block:: sh
|
|
|
|
scdumpcfg global -d mysql://sysop:sysop@localhost/seiscomp -B
|
|
|
|
#. Dump the bindings configuration for all stations which have bindings to a
|
|
:ref:`scautopick` profile. Additionally use *-G* as :ref:`scautopick` inherits global bindings.
|
|
|
|
.. code-block:: sh
|
|
|
|
scdumpcfg scautopick -d mysql://sysop:sysop@localhost/seiscomp -GB
|
|
|
|
#. Dump the module global module configuration specifcally searching for the map
|
|
zoom sensitivity and output the result in the format of the |scname| module
|
|
configuration.
|
|
|
|
.. code-block:: sh
|
|
|
|
scdumpcfg global -d mysql://sysop:sysop@localhost/seiscomp --cfg -P map.zoom.sensitivity
|
|
|
|
#. Dump the module configuration of scautopick and output in the format of the
|
|
|scname| module configuration.
|
|
|
|
.. code-block:: sh
|
|
|
|
scdumpcfg scautopick -d mysql://sysop:sysop@localhost/seiscomp --cfg
|
|
|
|
#. Dump the stream codes defined by global binding as a list of NET.STA.LOC.CHA:
|
|
|
|
.. code-block:: sh
|
|
|
|
scdumpcfg -d localhost -BG --nslc
|
|
|
|
|
|
.. _scdumpcfg_configuration:
|
|
|
|
Module Configuration
|
|
====================
|
|
|
|
| :file:`etc/defaults/global.cfg`
|
|
| :file:`etc/defaults/scdumpcfg.cfg`
|
|
| :file:`etc/global.cfg`
|
|
| :file:`etc/scdumpcfg.cfg`
|
|
| :file:`~/.seiscomp/global.cfg`
|
|
| :file:`~/.seiscomp/scdumpcfg.cfg`
|
|
|
|
scdumpcfg inherits :ref:`global options<global-configuration>`.
|
|
|
|
|
|
|
|
|
|
Command-Line Options
|
|
====================
|
|
|
|
.. program:: scdumpcfg
|
|
|
|
:program:`scdumpcfg [options]`
|
|
|
|
|
|
Generic
|
|
-------
|
|
|
|
.. option:: -h, --help
|
|
|
|
Show help message.
|
|
|
|
.. option:: -V, --version
|
|
|
|
Show version information.
|
|
|
|
.. option:: --config-file arg
|
|
|
|
Use alternative configuration file. When this option is
|
|
used the loading of all stages is disabled. Only the
|
|
given configuration file is parsed and used. To use
|
|
another name for the configuration create a symbolic
|
|
link of the application or copy it. Example:
|
|
scautopick \-> scautopick2.
|
|
|
|
.. option:: --plugins arg
|
|
|
|
Load given plugins.
|
|
|
|
.. option:: -D, --daemon
|
|
|
|
Run as daemon. This means the application will fork itself
|
|
and doesn't need to be started with \&.
|
|
|
|
.. option:: --auto-shutdown arg
|
|
|
|
Enable\/disable self\-shutdown because a master module shutdown.
|
|
This only works when messaging is enabled and the master
|
|
module sends a shutdown message \(enabled with \-\-start\-stop\-msg
|
|
for the master module\).
|
|
|
|
.. option:: --shutdown-master-module arg
|
|
|
|
Set the name of the master\-module used for auto\-shutdown.
|
|
This is the application name of the module actually
|
|
started. If symlinks are used, then it is the name of
|
|
the symlinked application.
|
|
|
|
.. option:: --shutdown-master-username arg
|
|
|
|
Set the name of the master\-username of the messaging
|
|
used for auto\-shutdown. If \"shutdown\-master\-module\" is
|
|
given as well, this parameter is ignored.
|
|
|
|
|
|
Verbosity
|
|
---------
|
|
|
|
.. option:: --verbosity arg
|
|
|
|
Verbosity level [0..4]. 0:quiet, 1:error, 2:warning, 3:info,
|
|
4:debug.
|
|
|
|
.. option:: -v, --v
|
|
|
|
Increase verbosity level \(may be repeated, eg. \-vv\).
|
|
|
|
.. option:: -q, --quiet
|
|
|
|
Quiet mode: no logging output.
|
|
|
|
.. option:: --component arg
|
|
|
|
Limit the logging to a certain component. This option can
|
|
be given more than once.
|
|
|
|
.. option:: -s, --syslog
|
|
|
|
Use syslog logging backend. The output usually goes to
|
|
\/var\/lib\/messages.
|
|
|
|
.. option:: -l, --lockfile arg
|
|
|
|
Path to lock file.
|
|
|
|
.. option:: --console arg
|
|
|
|
Send log output to stdout.
|
|
|
|
.. option:: --debug
|
|
|
|
Execute in debug mode.
|
|
Equivalent to \-\-verbosity\=4 \-\-console\=1 .
|
|
|
|
.. option:: --log-file arg
|
|
|
|
Use alternative log file.
|
|
|
|
|
|
Database
|
|
--------
|
|
|
|
.. option:: --db-driver-list
|
|
|
|
List all supported database drivers.
|
|
|
|
.. option:: -d, --database arg
|
|
|
|
The database connection string, format:
|
|
service:\/\/user:pwd\@host\/database.
|
|
\"service\" is the name of the database driver which
|
|
can be queried with \"\-\-db\-driver\-list\".
|
|
|
|
.. option:: --config-module arg
|
|
|
|
The config module to use.
|
|
|
|
.. option:: --inventory-db arg
|
|
|
|
Load the inventory from the given database or file, format:
|
|
[service:\/\/]location .
|
|
|
|
.. option:: --config-db arg
|
|
|
|
Load the configuration from the given database or file,
|
|
format: [service:\/\/]location .
|
|
|
|
|
|
Dump
|
|
----
|
|
|
|
.. option:: -P, --param arg
|
|
|
|
Specify parameter name to filter for.
|
|
|
|
.. option:: -B, --bindings arg
|
|
|
|
Dump bindings instead of module configuration.
|
|
|
|
.. option:: -G, --allow-global arg
|
|
|
|
Print global bindings if no module binding is avaible.
|
|
|
|
.. option:: --cfg
|
|
|
|
Print output in .cfg format.
|
|
|