Oracle
1Z0-403 · Question #3
You want to direct all the severity debug messages from the mail facility to the /var/log/syslog file if the local system is named loghost; otherwise to the machine loghost as defined in /etc/hosts…
The correct answer is B. Add the mail.debug ifdef ('LOGHOST', /var/log/syslog, @loghost) line to the /etc/syslog.conf file. See the full explanation below for the reasoning.
Question
You want to direct all the severity debug messages from the mail facility to the /var/log/syslog file if the local system is named loghost; otherwise to the machine loghost as defined in /etc/hosts, domain name server (DNS), or network information service (NIS). What would you do to achieve this objective?
Options
- AAdd the mail.debug ifdef ('@loghost', /var/log/syslog, loghost) line to the /etc/syslog.conf file.
- BAdd the mail.debug ifdef ('LOGHOST', /var/log/syslog, @loghost) line to the /etc/syslog.conf file.
- CAdd the mail.debug ifdef ('LOGHOST', /var/log/syslog, @loghost) line to the /etc/sysconfig/syslog file.
- DAdd the mail.crit;*.debug ifdef ('loghost', /var/log/syslog, @loghost) line to the /etc/syslog.conf file
- EAdd the mail.crit;*.debug ifdef ('LOGHOST', /var/log/syslog, @loghost) line to the /etc/sysconfig/syslog
How the community answered
(59 responses)- A17% (10)
- B69% (41)
- C2% (1)
- D7% (4)
- E5% (3)
Community Discussion
No community discussion yet for this question.