搜索

此内容没有您所选择的语言版本。

28.3. Using the Command-Line Interface

download PDF
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

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.