nerdexam
IBM

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.

Troubleshooting and Problem Determination

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)
  • A
    76% (41)
  • B
    7% (4)
  • C
    4% (2)
  • D
    13% (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.

Aerrclear 0Correct

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.

Berrpt-c 0

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.

Cerrlogger-c 0

errlogger is used to write administrator-defined informational entries into the error log; it has no capability to clear or remove log entries.

Derrdemon-c 0

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

#error log#errclear#errpt#log management

Community Discussion

No community discussion yet for this question.

Full 000-221 Practice