2012年10月22日星期一

310-012 exam study materials

3.Given this entry from the /etc/syslog.conf file: mail.debug ifdef ('LOGHOST', /var/adm/authlog.current, @loghost) Which statement about syslogd behavior is true if a remote host is aliased as loghost? 

A.The messages will be logged in /var/adm/authlog.current. 

B.The messages will be remotely logged in /var/adm/authlog.current. 

C.The messages will be forwarded to the syslogd on the remote host loghost and not recorded locally. 

D.The messages will be logged locally in /var/adm/authlog.current and forwarded to by the loghost. 

Correct:A 

4.You want to enable the logging of every failed login attempt. To do this you must change the syslogd configuration file from its installation defaults. Which facility should you change? 

A.auth 

B.kern 

C.user 

D.notice 

E.emerg 

F.daemon 

Correct:A 

5.You have written a start script to launch application XXX when the system starts. You decide to add a command to the script. If the application does not launch, it logs a message with syslog with the appropriate severity. Which command accomplishes this? 

A.logger XXX failed to start 

B.syslog -s 7 XXX failed to start 

C.logger -p user.err XXX failed to start 

D.logger -F user -s err XXX failed to start 

E.echo XXX failed to start, severity=7 >>/var/adm/messages 

Correct:C 

没有评论:

发表评论