IST 190 T4 QUESTIONS AND ANSWERS
List in order and define the eight levels of priority/severity in the rsyslog system. -
Answers - 0 emerg System is unusable
1 alert Action must be taken immediately
2 crit Critical condition
3 Err Non-critical error condition
4 Warning Warning condition
5 Notice Normal but significant event
6 Info Informational event
7 debug Debugging-level message
What is the absolute path to the rsyslogd configuration file? - Answers -
/etc/rsyslog.conf
How long are log files saved on a RHEL7 server by default? - Answers - typically for 4
weeks
What program controls the rotation of RHEL7 logs? How often are logs rotated by
default? - Answers - logrotate, most are rotated weekly
Describe the four things that are included in each rsyslog entry. - Answers - a. the time
stamp when the log entry was recorded
b. the host from which the log message was sent
c. the program or process that sent the log message
d. the actual message sent
What does the tail -f /var/log/maillog.log do? - Answers - it outputs the last 10 lines of
the file, and continues to output new lines as they get written
What does the logger command do? - Answers - the logger command can send
messages to the ryslog service
Describe what the journalctl command does - Answers - it shows the full system journal,
starting with the oldest log entry, when run as root user.
What is the equivalent command using journalctl as tail -f /var/log/logname? - Answers -
journalctl -f /var/log/logname
How long is the system journal (systemd-journald) normally stored by default? What
does an administrator have to do to permanently store the system journal? - Answers -
a month, to permanently store the system journal the root user needs to mkdir
/var/log/journaland set permissions to 2755
, What does the command timedatectl do? - Answers - it shows an overview of the
current time-related system settings, including current time, time zone, and NTP
synchronization settings of the system
What is the name of the Linux time zone that Greenville Tech is located in? - Answers -
America/New_York (EST, -0500)
What is the command to change the default time zone on a CentOS7 server? - Answers
- timedatectl
What is the absolute name of the file to configure the NTP server in RHEL7? - Answers
- /etc/chrony.conf
What is the command on a CentOS7 server to see the verbose output of the NTP
server time sources? - Answers - Chronyc sources -v
What is the command to lookup the IP configurationon a RHEL7 server? - Answers -
/sbin/ip
What is the RHEL7 command to troubleshoot routes? - Answers - traceroute or
tracepath
When using the tracepathcommand, what do each of the lines in the output tell us? -
Answers - a hop
What does theLinux command ssdo?How does sscompare to netstat? - Answers - The
ss command is used to display socket statistics. It is meant to replace netsat.
What is NetworkManagerin RHEL7? - Answers - It is a daemon that monitors and
manages network settings.
What does the Linux command nmclido? - Answers - It can show a list of connections,
and device status/details
What is the absolute reference to CentOS7 file that contains the configuration for eth1?
- Answers - /etc/sysconfig/network-scripts/ifcfg-eth1
displays or temporarily modifies the system's fully qualified host name - Answers -
hostname
used to modify this file and may be used to view the status of the system's fully qualified
host name - Answers - hostnamectl
this file is checked first when the stub revolverconverts host names to IP addresses -
Answers - /etc/hosts
List in order and define the eight levels of priority/severity in the rsyslog system. -
Answers - 0 emerg System is unusable
1 alert Action must be taken immediately
2 crit Critical condition
3 Err Non-critical error condition
4 Warning Warning condition
5 Notice Normal but significant event
6 Info Informational event
7 debug Debugging-level message
What is the absolute path to the rsyslogd configuration file? - Answers -
/etc/rsyslog.conf
How long are log files saved on a RHEL7 server by default? - Answers - typically for 4
weeks
What program controls the rotation of RHEL7 logs? How often are logs rotated by
default? - Answers - logrotate, most are rotated weekly
Describe the four things that are included in each rsyslog entry. - Answers - a. the time
stamp when the log entry was recorded
b. the host from which the log message was sent
c. the program or process that sent the log message
d. the actual message sent
What does the tail -f /var/log/maillog.log do? - Answers - it outputs the last 10 lines of
the file, and continues to output new lines as they get written
What does the logger command do? - Answers - the logger command can send
messages to the ryslog service
Describe what the journalctl command does - Answers - it shows the full system journal,
starting with the oldest log entry, when run as root user.
What is the equivalent command using journalctl as tail -f /var/log/logname? - Answers -
journalctl -f /var/log/logname
How long is the system journal (systemd-journald) normally stored by default? What
does an administrator have to do to permanently store the system journal? - Answers -
a month, to permanently store the system journal the root user needs to mkdir
/var/log/journaland set permissions to 2755
, What does the command timedatectl do? - Answers - it shows an overview of the
current time-related system settings, including current time, time zone, and NTP
synchronization settings of the system
What is the name of the Linux time zone that Greenville Tech is located in? - Answers -
America/New_York (EST, -0500)
What is the command to change the default time zone on a CentOS7 server? - Answers
- timedatectl
What is the absolute name of the file to configure the NTP server in RHEL7? - Answers
- /etc/chrony.conf
What is the command on a CentOS7 server to see the verbose output of the NTP
server time sources? - Answers - Chronyc sources -v
What is the command to lookup the IP configurationon a RHEL7 server? - Answers -
/sbin/ip
What is the RHEL7 command to troubleshoot routes? - Answers - traceroute or
tracepath
When using the tracepathcommand, what do each of the lines in the output tell us? -
Answers - a hop
What does theLinux command ssdo?How does sscompare to netstat? - Answers - The
ss command is used to display socket statistics. It is meant to replace netsat.
What is NetworkManagerin RHEL7? - Answers - It is a daemon that monitors and
manages network settings.
What does the Linux command nmclido? - Answers - It can show a list of connections,
and device status/details
What is the absolute reference to CentOS7 file that contains the configuration for eth1?
- Answers - /etc/sysconfig/network-scripts/ifcfg-eth1
displays or temporarily modifies the system's fully qualified host name - Answers -
hostname
used to modify this file and may be used to view the status of the system's fully qualified
host name - Answers - hostnamectl
this file is checked first when the stub revolverconverts host names to IP addresses -
Answers - /etc/hosts