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" conditional='ENABLE_COREDUMP'
25 xmlns:xi="http://www.w3.org/2001/XInclude">
28 <title>systemd-coredumpctl</title>
29 <productname>systemd</productname>
33 <contrib>Developer</contrib>
34 <firstname>Zbigniew</firstname>
35 <surname>Jędrzejewski-Szmek</surname>
36 <email>zbyszek@in.waw.pl</email>
42 <refentrytitle>systemd-coredumpctl</refentrytitle>
43 <manvolnum>1</manvolnum>
47 <refname>systemd-coredumpctl</refname>
48 <refpurpose>Retrieve coredumps from the journal</refpurpose>
53 <command>systemd-coredumpctl</command>
54 <arg choice="opt" rep="repeat">OPTIONS</arg>
55 <arg choice="req">COMMAND</arg>
56 <arg choice="opt" rep="repeat">PID|COMM|EXE|MATCH</arg>
61 <title>Description</title>
63 <para><command>systemd-coredumpctl</command> may be used to
64 retrieve coredumps from
65 <citerefentry><refentrytitle>systemd-journald</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
69 <title>Options</title>
71 <para>The following options are understood:</para>
75 <term><option>-F</option></term>
76 <term><option>--field=</option></term>
78 <listitem><para>Print all possible
79 data values the specified field
80 takes in matching coredump entries of the
81 journal.</para></listitem>
85 <term><option>-o</option></term>
86 <term><option>--output=FILE</option></term>
88 <listitem><para>Write the core to
89 <option>FILE</option>.</para></listitem>
93 <term><option>--no-legend</option></term>
95 <listitem><para>Do not print the column headers.
99 <xi:include href="standard-options.xml" xpointer="help" />
100 <xi:include href="standard-options.xml" xpointer="version" />
101 <xi:include href="standard-options.xml" xpointer="no-pager" />
104 <para>The following commands are understood:</para>
108 <term><command>list</command></term>
110 <listitem><para>List coredumps captured in the journal
111 matching specified characteristics.</para></listitem>
115 <term><command>dump</command></term>
117 <listitem><para>Extract the last coredump
118 matching specified characteristics.
119 The coredump will be written on standard output,
120 unless an output file is specified with
121 <option>-o/--output</option>.
127 <term><command>gdb</command></term>
129 <listitem><para>Invoke the GNU
130 debugger on the last coredump matching
131 specified characteristics.
140 <title>Matching</title>
142 <para>Match can be:</para>
146 <term><replaceable>PID</replaceable></term>
148 <listitem><para>Process ID of the
150 core. An integer.</para></listitem>
154 <term><replaceable>COMM</replaceable></term>
156 <listitem><para>Name of the executable
157 (matches <option>COREDUMP_COMM=</option>).
158 Must not contain slashes.
163 <term><replaceable>EXE</replaceable></term>
165 <listitem><para>Path to the executable
166 (matches <option>COREDUMP_EXE=</option>).
167 Must contain at least one slash.
172 <term><replaceable>MATCH</replaceable></term>
174 <listitem><para>General journalctl predicates
175 (see <citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>).
176 Must contain an equals sign.
183 <title>Exit status</title>
184 <para>On success, 0 is returned; otherwise, a non-zero failure
185 code is returned. Not finding any matching coredumps is treated
191 <title>See Also</title>
193 <citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
194 <citerefentry><refentrytitle>gdb</refentrytitle><manvolnum>1</manvolnum></citerefentry>