Test 4 Unit 11-14 Flashcards
Define systemd-journald and rsyslog. How are they related to each other?
Journald collects messages from -the kernel, early stages of the boot process, standard output and error of daemaons as they start up and run, syslog, does not persist between reboots. Rsyslog sorts messages by type and priority, and writes them to persistent files in the /var/log directory
Define the purpose of each log
a. /var/log/messages
b. /var/log/secure
a. most syslog messages are logged here
b. syslog messages related to security and authentication
Define the purpose of each log
c. var/log/maillog
d. /var/log/cron
e. /var/log/boot.log
c. syslog related to mail server
d. syslog related to schedules job execution
e. Non-syslog console messages related to system startup
What is the absolute path to the rsyslogd configuration file?
/etc/rsyslog.conf
List in order and define the eight levels of priority/severity in the rsyslog system.
- emerg- system is unusable
- Alert- Action must be taken immediately
- Crit- Critical condition
- ErrNon- critical error condition
- Warning- Warning condition
- Notice- Normal but significant event
- Info- Informational event
- Debug- Debugging-level message
Write the line that would need to be added to the rsyslog.conf file that would capture all of the log messages for the local4 facility in the /var/log/chapter10.log file.
/etc/rsyslog.d
How long are log files saved on a RHEL8 server by default?
4 weeks
What program controls the rotation of RHEL8 logs? How often are logs rotated by default?
The logrotate utility controls rhel8 logs. They are rotated after four weeks.
Describe the four things that are included in each rsyslog entry
The time stamp it was recorded, host from which message sent, program or process name and PID number that sent the message, the actual message sent
What does the tail –f /var/log/maillog.log do?
Outputs new lines as they get written to the monitored file.
What does the logger command do?
Sends messages to the rsysog service, default the factility is user and the severity is notice (user.notice)
Describe what the journalctl command does. How is journalctl different that rsyslog?
Used to view all messages in the journal, or to search specific events, if you run the command as root, you have full access to the journal.
Why would an administrator need to configure NTP?
To correct the synchronized system time.
What does the command timedatectl do?
Shows an overview of the current time-related system settings.
What is the name of the Linux time zone that Greenville Tech is located in?
America/New_York
What is the command to change the default time zone on a RHEL8/CentOS8 server?
Timedatectl set-timezone (timezone)
What is the absolute name of the file to configure the NTP server in RHEL8?
/etc/cohrony.conf
What is the command on a RHEL8/CentOS8 server to see the verbose output of the NTP server time sources?
Timedatectl set-ntp
Explain the four-layer TCP/IP model covered in Unit 12.
Application- specifies communication so that clients and servers may communicate across platforms. Transport-TCP and UDP, tcp is a reliable connection-oriented communication, while UDP is a connectionless datagram protocol. The service port 80 and the IP address forms a socket. Internet- carries data from the source host to the destination host. Each host has an ip address and a prefix used to determine network addresses. Routers are used to connect networks. Link- provides the connection to physical media.
Explain the difference in an IPv4 host address and an IPv4 network address. How are the two addresses determined in a 32-bit number?
the network park identifies the subnet, host part identifies a particular host
What is a broadcast address?
The highest possible address on a subnet
What is the purpose of the routing table on a Linux server?
It shows where the different subnets will be routed to.
Explain the difference in automatic IP configuration of a Linux client (DHCP) as compared to static IP configuration
Automatic IP configuration occurs with DHCP by rewriting the /etc/resolv.conf file. Static IP configuration is selected at will, and are stored in the /etc/sysconfig/network-scripts/ifcfg-* configuration file.
What is the purpose of the gateway in IP configuration?
This allows multiple sets of values to be assigned to the interface. The gateway has a number at the end in the static setting.
Explain how Linux uses network interfaces as compared to network devices.
Linux uses network interfaces as a layer to provide connections to physical media. This allows the physical device to have a MAC address, or hardware address.