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.

576 lines
33 KiB
HTML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html >
<head>
<meta charset="utf-8" />
<title>scxmldump &#8212; SeisComP Release documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/seiscomp.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css" />
<script type="text/javascript" src="../_static/seiscomp.js"></script>
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/language_data.js"></script>
<link rel="shortcut icon" href="../_static/favicon.ico"/>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="scxmlmerge" href="scxmlmerge.html" />
<link rel="prev" title="scvoice" href="scvoice.html" />
</head>
<body>
<div class="header">
<div class="container">
<div class="brand">
<img class="logo" src="../_static/brands/seiscomp/text/white.svg"/>
<!-- span class="title">SeisComP Release</span -->
<span class="version">5.3.0</span>
</div>
</div>
</div>
<div class="nav">
<div class="container">
<div class="content"><a class="pull-right" id="sidebar-toggle">TOC</a>
<div class="related" role="navigation" aria-label="related navigation">
<ul>
<li class="right">
<a href="../genindex.html" title="General Index"
accesskey="I">
index
</a>
</li>
<li class="right">
<a href="scxmlmerge.html" title="scxmlmerge"
accesskey="N">
next
</a>
</li>
<li class="right">
<a href="scvoice.html" title="scvoice"
accesskey="P">
previous
</a>
</li>
<li class="nav-item nav-item-0">
<a href="../index.html">Home</a>
</li>
<li class="nav-item nav-item-1">
<a href="../modules.html" >Modules</a>
</li>
<li class="nav-item nav-item-2">
<a href="../toc/utilities.html" accesskey="U">Utilities</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="fitted content" id="anchors-container">
<div class="body" role="main">
<div class="section" id="scxmldump">
<span id="id1"></span><h1>scxmldump<a class="headerlink" href="#scxmldump" title="Permalink to this headline"></a></h1>
<p><strong>Dump database objects to XML files.</strong></p>
<div class="section" id="description">
<h2>Description<a class="headerlink" href="#description" title="Permalink to this headline"></a></h2>
<p>To get event information from the database without using SQL is an important
task for the user. <a class="reference internal" href="#scxmldump"><span class="std std-ref">scxmldump</span></a> queries the database and transforms that
information into XML. The result can be converted into a bulletin with
scbulletin or imported into another database with <a class="reference internal" href="scdb.html#scdb"><span class="std std-ref">scdb</span></a>.</p>
<p>An XSD schema of the XML output can be found under
<code class="file docutils literal notranslate"><span class="pre">$SEISCOMP_ROOT/share/xml/</span></code>.</p>
<div class="section" id="examples">
<h3>Examples<a class="headerlink" href="#examples" title="Permalink to this headline"></a></h3>
<p>Export inventory</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>scxmldump -fI -o inventory.xml -d mysql://sysop:sysop@localhost/seiscomp
</pre></div>
</div>
<p>Export configuration</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>scxmldump -fC -o config.xml -d mysql://sysop:sysop@localhost/seiscomp
</pre></div>
</div>
<p>Export full event data incl. the relevant journal entries</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>scxmldump -fPAMFJ -E test2012abcd -o test2012abcd.xml <span class="se">\</span>
-d mysql://sysop:sysop@localhost/seiscomp
</pre></div>
</div>
<p>Export summary event data</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>scxmldump -fap -E test2012abcd -o test2012abcd.xml <span class="se">\</span>
-d mysql://sysop:sysop@localhost/seiscomp
</pre></div>
</div>
<p>Create bulletin</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>scxmldump -fPAMF -E test2012abcd
-d mysql://sysop:sysop@localhost/seiscomp <span class="p">|</span> <span class="se">\</span>
scbulletin
</pre></div>
</div>
<p>Copy event</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>scxmldump -fPAMF -E test2012abcd <span class="se">\</span>
-d mysql://sysop:sysop@localhost/seiscomp <span class="p">|</span> <span class="se">\</span>
scdb -i - -d mysql://sysop:sysop@archive-db/seiscomp
</pre></div>
</div>
<p>Export the entire journal:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>scxmldump -fJ -o journal.xml <span class="se">\</span>
-d mysql://sysop:sysop@localhost/seiscomp
</pre></div>
</div>
</div>
</div>
<div class="section" id="module-configuration">
<span id="scxmldump-configuration"></span><h2>Module Configuration<a class="headerlink" href="#module-configuration" title="Permalink to this headline"></a></h2>
<div class="line-block">
<div class="line"><code class="file docutils literal notranslate"><span class="pre">etc/defaults/global.cfg</span></code></div>
<div class="line"><code class="file docutils literal notranslate"><span class="pre">etc/defaults/scxmldump.cfg</span></code></div>
<div class="line"><code class="file docutils literal notranslate"><span class="pre">etc/global.cfg</span></code></div>
<div class="line"><code class="file docutils literal notranslate"><span class="pre">etc/scxmldump.cfg</span></code></div>
<div class="line"><code class="file docutils literal notranslate"><span class="pre">~/.seiscomp/global.cfg</span></code></div>
<div class="line"><code class="file docutils literal notranslate"><span class="pre">~/.seiscomp/scxmldump.cfg</span></code></div>
</div>
<p>scxmldump inherits <a class="reference internal" href="global.html#global-configuration"><span class="std std-ref">global options</span></a>.</p>
</div>
<div class="section" id="command-line-options">
<h2>Command-Line Options<a class="headerlink" href="#command-line-options" title="Permalink to this headline"></a></h2>
<p><strong class="program">scxmldump [options]</strong></p>
<div class="section" id="generic">
<h3>Generic<a class="headerlink" href="#generic" title="Permalink to this headline"></a></h3>
<dl class="option">
<dt id="cmdoption-scxmldump-h">
<code class="sig-name descname">-h</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--help</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-h" title="Permalink to this definition"></a></dt>
<dd><p>Show help message.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-v">
<code class="sig-name descname">-V</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--version</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-v" title="Permalink to this definition"></a></dt>
<dd><p>Show version information.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-config-file">
<code class="sig-name descname">--config-file</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-config-file" title="Permalink to this definition"></a></dt>
<dd><p>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 -&gt; scautopick2.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-plugins">
<code class="sig-name descname">--plugins</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-plugins" title="Permalink to this definition"></a></dt>
<dd><p>Load given plugins.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-d">
<code class="sig-name descname">-D</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--daemon</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-d" title="Permalink to this definition"></a></dt>
<dd><p>Run as daemon. This means the application will fork itself
and doesnt need to be started with &amp;.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-auto-shutdown">
<code class="sig-name descname">--auto-shutdown</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-auto-shutdown" title="Permalink to this definition"></a></dt>
<dd><p>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).</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-shutdown-master-module">
<code class="sig-name descname">--shutdown-master-module</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-shutdown-master-module" title="Permalink to this definition"></a></dt>
<dd><p>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.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-shutdown-master-username">
<code class="sig-name descname">--shutdown-master-username</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-shutdown-master-username" title="Permalink to this definition"></a></dt>
<dd><p>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.</p>
</dd></dl>
</div>
<div class="section" id="verbosity">
<h3>Verbosity<a class="headerlink" href="#verbosity" title="Permalink to this headline"></a></h3>
<dl class="option">
<dt id="cmdoption-scxmldump-verbosity">
<code class="sig-name descname">--verbosity</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-verbosity" title="Permalink to this definition"></a></dt>
<dd><p>Verbosity level [0..4]. 0:quiet, 1:error, 2:warning, 3:info,
4:debug.</p>
</dd></dl>
<dl class="option">
<dt id="id2">
<code class="sig-name descname">-v</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--v</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#id2" title="Permalink to this definition"></a></dt>
<dd><p>Increase verbosity level (may be repeated, eg. -vv).</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-q">
<code class="sig-name descname">-q</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--quiet</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-q" title="Permalink to this definition"></a></dt>
<dd><p>Quiet mode: no logging output.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-component">
<code class="sig-name descname">--component</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-component" title="Permalink to this definition"></a></dt>
<dd><p>Limit the logging to a certain component. This option can
be given more than once.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-s">
<code class="sig-name descname">-s</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--syslog</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-s" title="Permalink to this definition"></a></dt>
<dd><p>Use syslog logging backend. The output usually goes to
/var/lib/messages.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-l">
<code class="sig-name descname">-l</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--lockfile</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-l" title="Permalink to this definition"></a></dt>
<dd><p>Path to lock file.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-console">
<code class="sig-name descname">--console</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-console" title="Permalink to this definition"></a></dt>
<dd><p>Send log output to stdout.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-debug">
<code class="sig-name descname">--debug</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-debug" title="Permalink to this definition"></a></dt>
<dd><p>Execute in debug mode.
Equivalent to verbosity=4 console=1 .</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-log-file">
<code class="sig-name descname">--log-file</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-log-file" title="Permalink to this definition"></a></dt>
<dd><p>Use alternative log file.</p>
</dd></dl>
</div>
<div class="section" id="messaging">
<h3>Messaging<a class="headerlink" href="#messaging" title="Permalink to this headline"></a></h3>
<dl class="option">
<dt id="cmdoption-scxmldump-u">
<code class="sig-name descname">-u</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--user</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-u" title="Permalink to this definition"></a></dt>
<dd><p>Overrides configuration parameter <a class="reference internal" href="global.html#confval-connection.username"><code class="xref std std-confval docutils literal notranslate"><span class="pre">connection.username</span></code></a>.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-host">
<code class="sig-name descname">-H</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--host</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-host" title="Permalink to this definition"></a></dt>
<dd><p>Overrides configuration parameter <a class="reference internal" href="global.html#confval-connection.server"><code class="xref std std-confval docutils literal notranslate"><span class="pre">connection.server</span></code></a>.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-t">
<code class="sig-name descname">-t</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--timeout</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-t" title="Permalink to this definition"></a></dt>
<dd><p>Overrides configuration parameter <a class="reference internal" href="global.html#confval-connection.timeout"><code class="xref std std-confval docutils literal notranslate"><span class="pre">connection.timeout</span></code></a>.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-g">
<code class="sig-name descname">-g</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--primary-group</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-g" title="Permalink to this definition"></a></dt>
<dd><p>Overrides configuration parameter <a class="reference internal" href="global.html#confval-connection.primaryGroup"><code class="xref std std-confval docutils literal notranslate"><span class="pre">connection.primaryGroup</span></code></a>.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-subscribe-group">
<code class="sig-name descname">-S</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--subscribe-group</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-subscribe-group" title="Permalink to this definition"></a></dt>
<dd><p>A group to subscribe to.
This option can be given more than once.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-content-type">
<code class="sig-name descname">--content-type</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-content-type" title="Permalink to this definition"></a></dt>
<dd><p>Overrides configuration parameter <a class="reference internal" href="global.html#confval-connection.contentType"><code class="xref std std-confval docutils literal notranslate"><span class="pre">connection.contentType</span></code></a>.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-start-stop-msg">
<code class="sig-name descname">--start-stop-msg</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-start-stop-msg" title="Permalink to this definition"></a></dt>
<dd><p>Set sending of a start and a stop message.</p>
</dd></dl>
</div>
<div class="section" id="database">
<h3>Database<a class="headerlink" href="#database" title="Permalink to this headline"></a></h3>
<dl class="option">
<dt id="cmdoption-scxmldump-db-driver-list">
<code class="sig-name descname">--db-driver-list</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-db-driver-list" title="Permalink to this definition"></a></dt>
<dd><p>List all supported database drivers.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-database">
<code class="sig-name descname">-d</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--database</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-database" title="Permalink to this definition"></a></dt>
<dd><p>The database connection string, format:
<a class="reference external" href="service://user:pwd&#64;host/database">service://user:pwd&#64;host/database</a>.
“service” is the name of the database driver which
can be queried with “db-driver-list”.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-config-module">
<code class="sig-name descname">--config-module</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-config-module" title="Permalink to this definition"></a></dt>
<dd><p>The config module to use.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-inventory-db">
<code class="sig-name descname">--inventory-db</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-inventory-db" title="Permalink to this definition"></a></dt>
<dd><p>Load the inventory from the given database or file, format:
[<a class="reference external" href="service://]location">service://]location</a> .</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-config-db">
<code class="sig-name descname">--config-db</code><code class="sig-prename descclassname"> arg</code><a class="headerlink" href="#cmdoption-scxmldump-config-db" title="Permalink to this definition"></a></dt>
<dd><p>Load the configuration from the given database or file,
format: [<a class="reference external" href="service://]location">service://]location</a> .</p>
</dd></dl>
</div>
<div class="section" id="dump">
<h3>Dump<a class="headerlink" href="#dump" title="Permalink to this headline"></a></h3>
<dl class="option">
<dt id="cmdoption-scxmldump-listen">
<code class="sig-name descname">--listen</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-listen" title="Permalink to this definition"></a></dt>
<dd><p>Enable server mode which listens to the message server for
incoming events and dumps each received add/update.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-i">
<code class="sig-name descname">-I</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--inventory</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-i" title="Permalink to this definition"></a></dt>
<dd><p>Dump the inventory.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-without-station-groups">
<code class="sig-name descname">--without-station-groups</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-without-station-groups" title="Permalink to this definition"></a></dt>
<dd><p>Remove all station groups from inventory.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-stations">
<code class="sig-name descname">--stations</code><code class="sig-prename descclassname"> sta-list</code><a class="headerlink" href="#cmdoption-scxmldump-stations" title="Permalink to this definition"></a></dt>
<dd><p>If inventory is exported filter the stations to export where
each item is in format net[.{sta|*}].</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-c">
<code class="sig-name descname">-C</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--config</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-c" title="Permalink to this definition"></a></dt>
<dd><p>Dump the configuration database.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-j">
<code class="sig-name descname">-J</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--journal</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-j" title="Permalink to this definition"></a></dt>
<dd><p>Dump the journal. In combination with -E only corresponding
journal entries are included.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-r">
<code class="sig-name descname">-R</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--routing</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-r" title="Permalink to this definition"></a></dt>
<dd><p>Dump the routing database.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-y">
<code class="sig-name descname">-Y</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--availability</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-y" title="Permalink to this definition"></a></dt>
<dd><p>Dump data availability information.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-with-segments">
<code class="sig-name descname">--with-segments</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-with-segments" title="Permalink to this definition"></a></dt>
<dd><p>Dump individual data segments.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-o">
<code class="sig-name descname">-O</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--origin</code><code class="sig-prename descclassname"> ID</code><a class="headerlink" href="#cmdoption-scxmldump-o" title="Permalink to this definition"></a></dt>
<dd><p>Origin public ID(s) to dump. Multiple origins may be specified
as a comma-separated list.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-e">
<code class="sig-name descname">-E</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--event</code><code class="sig-prename descclassname"> ID</code><a class="headerlink" href="#cmdoption-scxmldump-e" title="Permalink to this definition"></a></dt>
<dd><p>Event public ID(s) to dump. Multiple events may be specified
as a comma-separated list.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-p">
<code class="sig-name descname">-P</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--with-picks</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-p" title="Permalink to this definition"></a></dt>
<dd><p>Dump associated picks along with origins.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-a">
<code class="sig-name descname">-A</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--with-amplitudes</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-a" title="Permalink to this definition"></a></dt>
<dd><p>Dump associated amplitudes along with magnitudes.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-m">
<code class="sig-name descname">-M</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--with-magnitudes</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-m" title="Permalink to this definition"></a></dt>
<dd><p>Dump station magnitudes.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-f">
<code class="sig-name descname">-F</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--with-focal-mechanism</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-f" title="Permalink to this definition"></a></dt>
<dd><p>Dump focal mechanisms of events.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-ignore-arrivals">
<code class="sig-name descname">-a</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--ignore-arrivals</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-ignore-arrivals" title="Permalink to this definition"></a></dt>
<dd><p>Do not dump arrivals part of origins.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-ignore-magnitudes">
<code class="sig-name descname">--ignore-magnitudes</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-ignore-magnitudes" title="Permalink to this definition"></a></dt>
<dd><p>Do not export (network) magnitudes of origins. This
option is most useful in combination with -O to only
export the location information.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-preferred-only">
<code class="sig-name descname">-p</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--preferred-only</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-preferred-only" title="Permalink to this definition"></a></dt>
<dd><p>When exporting events only the preferred origin, the preferred
magnitude and the preferred focal mechanism will be dumped.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-all-magnitudes">
<code class="sig-name descname">-m</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--all-magnitudes</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-all-magnitudes" title="Permalink to this definition"></a></dt>
<dd><p>If only the preferred origin is exported, all magnitudes for
this origin will be dumped.</p>
</dd></dl>
</div>
<div class="section" id="output">
<h3>Output<a class="headerlink" href="#output" title="Permalink to this headline"></a></h3>
<dl class="option">
<dt id="cmdoption-scxmldump-formatted">
<code class="sig-name descname">-f</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--formatted</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-formatted" title="Permalink to this definition"></a></dt>
<dd><p>Use formatted XML output. Otherwise all XML is printed
on one line.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-output">
<code class="sig-name descname">-o</code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname">, </code><code class="sig-name descname">--output</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-output" title="Permalink to this definition"></a></dt>
<dd><p>The output file. Default is stdout.</p>
</dd></dl>
<dl class="option">
<dt id="cmdoption-scxmldump-prepend-datasize">
<code class="sig-name descname">--prepend-datasize</code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-scxmldump-prepend-datasize" title="Permalink to this definition"></a></dt>
<dd><p>Prepend a line with the length of the XML data.</p>
</dd></dl>
</div>
</div>
</div>
<div id="anchors-bottom"></div>
</div>
<div class="sidebar" role="navigation" aria-label="main navigation">
<div id="anchors-top"></div>
<div id="anchors" class="content">
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script>$('#searchbox').show(0);</script>
<h3><a href="../index.html">Table of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">scxmldump</a><ul>
<li><a class="reference internal" href="#description">Description</a><ul>
<li><a class="reference internal" href="#examples">Examples</a></li>
</ul>
</li>
<li><a class="reference internal" href="#module-configuration">Module Configuration</a></li>
<li><a class="reference internal" href="#command-line-options">Command-Line Options</a><ul>
<li><a class="reference internal" href="#generic">Generic</a></li>
<li><a class="reference internal" href="#verbosity">Verbosity</a></li>
<li><a class="reference internal" href="#messaging">Messaging</a></li>
<li><a class="reference internal" href="#database">Database</a></li>
<li><a class="reference internal" href="#dump">Dump</a></li>
<li><a class="reference internal" href="#output">Output</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="scvoice.html"
title="previous chapter">scvoice</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="scxmlmerge.html"
title="next chapter">scxmlmerge</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/apps/scxmldump.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<div class="horizontal layout content">
<a class="fade-in" href="https://www.gempa.de" target="_blank">
<img class="brand" src="../_static/brands/gempa.svg"/>
</a>
<div class="stretched align-center fitted content">
<div>
Version <b>5.3.0</b> Release
</div>
<div class="copyright">
Copyright &copy; gempa GmbH, GFZ Potsdam.
</div>
</div>
<a class="fade-in" href="https://www.gfz-potsdam.de" target="_blank">
<img class="brand" src="../_static/brands/gfz.svg"/>
</a>
</div>
</div>
</div>
</body>
</html>