이 콘텐츠는 선택한 언어로 제공되지 않습니다.

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

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.