1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 This file is part of systemd.
8 Copyright 2012 Zbigniew Jędrzejewski-Szmek
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 <refentry id="systemd-coredumpctl">
27 <title>systemd-coredumpctl</title>
28 <productname>systemd</productname>
32 <contrib>Developer</contrib>
33 <firstname>Zbigniew</firstname>
34 <surname>Jędrzejewski-Szmek</surname>
35 <email>zbyszek@in.waw.pl</email>
41 <refentrytitle>systemd-coredumpctl</refentrytitle>
42 <manvolnum>1</manvolnum>
46 <refname>systemd-coredumpctl</refname>
47 <refpurpose>Retrieve coredumps from the journal</refpurpose>
52 <command>systemd-coredumpctl <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="req">COMMAND</arg> <arg choice="opt" rep="repeat">PID|COMM|EXE|MATCH</arg></command>
57 <title>Description</title>
59 <para><command>systemd-coredumpctl</command> may be used to
60 retrieve coredumps from
61 <citerefentry><refentrytitle>systemd-journald</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
65 <title>Options</title>
67 <para>The following options are understood:</para>
71 <term><option>--help</option></term>
72 <term><option>-h</option></term>
74 <listitem><para>Print a short help
75 text and exit.</para></listitem>
79 <term><option>--version</option></term>
81 <listitem><para>Print a short version
82 string and exit.</para></listitem>
86 <term><option>--output=FILE</option></term>
87 <term><option>-o FILE</option></term>
89 <listitem><para>Write the core to
90 <option>FILE</option>.</para></listitem>
94 <term><option>--no-pager</option></term>
96 <listitem><para>Do not pipe output of
97 <command>list</command> into a
98 pager.</para></listitem>
103 <para>The following commands are understood:</para>
107 <term><command>list</command></term>
109 <listitem><para>List coredumps captured in the journal
110 matching specified characteristics.</para></listitem>
114 <term><command>dump</command></term>
116 <listitem><para>Extract the last coredump
117 matching specified characteristics.
118 Coredump will be written on stdout, unless
119 an output file is specified with
120 <option>-o/--output</option>.
129 <title>Matching</title>
131 <para>Match can be:</para>
135 <term><option>PID</option></term>
137 <listitem><para>Process ID of the
139 core. An integer.</para></listitem>
143 <term><option>COMM</option></term>
145 <listitem><para>Name of the executable
146 (matches <option>COREDUMP_COMM=</option>).
147 Must not contain slashes.
152 <term><option>EXE</option></term>
154 <listitem><para>Path to the executable
155 (matches <option>COREDUMP_EXE=</option>).
156 Must contain at least one slash.
161 <term><option>MATCH</option></term>
163 <listitem><para>General journalctl predicates
164 (see <citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>).
165 Must contain an equals sign.
172 <title>Exit status</title>
173 <para>On success 0 is returned, a non-zero failure
174 code otherwise. Not finding any mathing coredumps is treated
180 <title>See Also</title>
182 <citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>