Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

28.3. Using the Command-Line Interface


Problem data saved by abrtd can be viewed, reported, and deleted using the command-line interface.
General usage of the abrt-cli tool can be described using the following syntax:
 abrt-cli [--version] command [args] 
…where args stands for a problem data directory and/or options modifying the commands, and command is one of the following sub-commands:
  • list — lists problems and views the problem data.
  • report — analyzes and reports problems.
  • rm — removes unneeded problems.
  • info — provides information about a particular problem.
To display help on particular abrt-cli command use:
 abrt-cli command --help  
The rest of the commands used with abrt-cli are described in the following sections.

28.3.1. Viewing Problems

To view detected problems, enter the abrt-cli list command:
~]# abrt-cli list
Directory:      /var/spool/abrt/ccpp-2011-09-13-10:18:14-2895
count:          2
executable:     /usr/bin/gdb
package:        gdb-7.2-48.el6
time:           Tue 13 Sep 2011 10:18:14 AM CEST
uid:            500

Directory:      /var/spool/abrt/ccpp-2011-09-21-18:18:07-2841
count:          1
executable:     /bin/bash
package:        bash-4.1.2-8.el6
time:           Wed 21 Sep 2011 06:18:07 PM CEST
uid:            500
  • Directory — Shows the problem data directory that contains all information about the problem.
  • count — Shows how many times this particular problem occurred.
  • executable — Indicates which binary or executable script crashed.
  • package — Shows the name of the package that contains the program that caused the problem.
  • time — Shows the date and time of the last occurrence of the problem.
  • uid — Shows the ID of the user which ran the program that crashed.
The following table shows options available with the abrt-cli list command. All options are mutually inclusive so you can combine them according to your need. The command output will be the most comprehensive if you combine all options, and you will receive the least details if you use no additional options.
Table 28.2. The abrt-cli list command options
Option Description
With no additional option, the abrt-cli list command displays only basic information for problems that have not been reported yet.
-d, --detailed Displays all stored information about problems listed, including a backtrace if it has already been generated.
-f, --full Displays basic information for all problems including the already-reported ones.
-v, --verbose Provides additional information on its actions.
If you want to view information just about one particular problem, you can use the command:
 abrt-cli info directory 
…where directory stands for the problem data directory of the problem that is being viewed. The following table shows options available with the abrt-cli info command. All options are mutually inclusive so you can combine them according to your need. The command output will be the most comprehensive if you combine all options, and you will receive the least details if you use no additional options.
Table 28.3. The abrt-cli info command options
Option Description
With no additional option, the abrt-cli info command displays only basic information for the problem specified by the problem data directory argument.
-d, --detailed Displays all stored information for the problem specified by the problem data directory argument, including a backtrace if it has already been generated.
-v, --verbose abrt-cli info provides additional information on its actions.
Red Hat logoGithubRedditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

© 2024 Red Hat, Inc.