000-221 · Question #25
How can the administrator remove all entries from the error log?
The correct answer is A. errclear 0. The errclear command is the AIX utility for removing entries from the system error log, and passing 0 as the argument clears all entries.
Question
How can the administrator remove all entries from the error log?
Options
- Aerrclear 0
- Berrpt-c 0
- Cerrlogger-c 0
- Derrdemon-c 0
How the community answered
(54 responses)- A76% (41)
- B7% (4)
- C4% (2)
- D13% (7)
Why each option
The errclear command is the AIX utility for removing entries from the system error log, and passing 0 as the argument clears all entries.
The errclear command directly manipulates the AIX error log database located at /var/adm/ras/errlog. When called with the argument 0, it removes all entries regardless of age or sequence number, effectively wiping the entire error log. This is the correct and documented method for a complete error log cleanup.
errpt is the error report command used to display and format error log entries; it does not support a -c flag for clearing the log.
errlogger is used to write administrator-defined informational entries into the error log; it has no capability to clear or remove log entries.
errdemon is the background daemon that manages error logging; it does not accept a -c flag and cannot be used to clear log entries.
Concept tested: AIX error log management with errclear command
Source: https://www.ibm.com/docs/en/aix/7.2?topic=e-errclear-command
Topics
Community Discussion
No community discussion yet for this question.