Exploring the Future Potential of AI-Enabled Smartphone Processors
How To Install and Use ABRT CLI on RHEL 7
1. How to Install and Use ABRT CLI
i | P a g e
Contents
Overview.......................................................................................................................................................1
Verify Installed Status ...................................................................................................................................1
Install Package...........................................................................................................................................1
Check Service Status .................................................................................................................................2
Start Service..............................................................................................................................................2
ABRT Default Configuration..........................................................................................................................3
Enable Auto Reporting..................................................................................................................................3
Configure SELinux – ABRT.............................................................................................................................4
Listing Dump Files .....................................................................................................................................4
View SELinux Setting.................................................................................................................................5
Modify SELinux Setting .............................................................................................................................5
ABRT CLI Commands.....................................................................................................................................5
ABRT Issue – Listing...................................................................................................................................6
ABRT Issue – Detailed Listing ....................................................................................................................7
ABRT Issue – Reporting.............................................................................................................................7
ABRT Issue – Info.......................................................................................................................................8
ABRT Issue – Status...................................................................................................................................8
ABRT Issue – Remove................................................................................................................................8
ABRT Issue – Process.................................................................................................................................8
2. How to Install and Use ABRT CLI
1 | P a g e
Overview
The Automatic Bug Reporting Tool or ABRT, consists of the abrtd daemon is a daemon that watches for
application crashes and stores them into core dump file and takes according to the defined configuration
“abrt.conf”.
The daemon runs silently in the background most of the time, and springs into action when an application
crashes or a kernel oops is detected.
The daemon then collects the relevant problem data such as a core file if there is one, the crashing
application's command-line parameters, and other data of forensic utility.
Verify Installed Status
Before you install the “abrt-cli” package, verify if the package is already installed, to verify package
installation status, run the command;
yum list installed abrt-cli
Install Package
After verification and if the “abrt-cli” package is not installed; install the package, to install run the
command;
yum install abrt-cli -y -q
3. How to Install and Use ABRT CLI
2 | P a g e
Check Service Status
After installing the package check the abrtd service status, run the command;
systemctl status abrtd
Start Service
Next step is to start the service to start, run the command;
systemctl start abrtd && systemctl status abrtd -l
4. How to Install and Use ABRT CLI
3 | P a g e
ABRT Default Configuration
ABRT Configuration file “/etc/abrt/abrt.conf”, with default setting can be retrieved with the below
command;
egrep -v '^#|^$|^;' /etc/abrt/abrt.conf
Attribute Default
MaxCrashReportsSize 1000 MB
DumpLocation /var/spool/abrt
DeleteUploaded no
AutoreportingEvent report_uReport
AutoreportingEnabled no
PrivateReports yes
Enable Auto Reporting
Next, step is the enable auto reporting, run the command;
abrt-auto-reporting enabled
5. How to Install and Use ABRT CLI
4 | P a g e
Configure SELinux – ABRT
Only when the default “DumpLocation” in the configuration is changed, SELinux has to be configured. In
case you change the “DumpLocation” is changed, SELinux has to be reconfigured to enable write.
Default directory is “/var/spool/abrt”; and by default its comment in the configuration file.
egrep -i -B2 "#DumpLocation" /etc/abrt/abrt.conf
Listing Dump Files
To list the dump files generated, in the default folder, run the command;
ls -la /var/spool/abrt
Note: Files in this directory will generated automatically when a dump is created.
6. How to Install and Use ABRT CLI
5 | P a g e
View SELinux Setting
To view the current SELinux configured for “abrt” run the command below;
getsebool -a | grep abrt
Modify SELinux Setting
To modify SELinux attribute for “abrt”, run the command below;
setsebool -P abrt_anon_write 1 && getsebool -a | grep abrt
ABRT CLI Commands
List of abrt-cli commands are listed in the below table with its purpose.
Argument Purpose
list Lists problems and views the problem data.
report Analyzes and reports problems.
rm Removes unneeded problems.
info Provides information about a particular problem.
status Short info about issues (count), if any.
7. How to Install and Use ABRT CLI
6 | P a g e
ABRT Issue – Listing
To lists problems, run the command;
abrt-cli list
8. How to Install and Use ABRT CLI
7 | P a g e
ABRT Issue – Detailed Listing
To retrieve detailed information about the aborted issue(s), run the command;
abrt-cli list -vn –detailed
ABRT Issue – Reporting
To retrieve detailed information about the aborted issue(s), run the command;
abrt-cli report /var/spool/abrt/oops-2016-04-29-00:05:02-1148-0
9. How to Install and Use ABRT CLI
8 | P a g e
ABRT Issue – Info
To retrieve issue info, run the command;
abrt-cli info /var/spool/abrt/oops-2016-04-29-00:05:02-1148-0
ABRT Issue – Status
To retrieve issues short info, run the command;
abrt-cli status
ABRT Issue – Remove
To remove a specific issue, run the command;
abrt-cli remove /var/spool/abrt/oops-2016-04-29-00:05:02-1148-0
Note: Once you remove the dump file and directory is deleted automatically.
ABRT Issue – Process
To process issue(s), run the command;
abrt-cli process
Note: you can remove, report, get information or skip for each issue created and stored.