RHEL7: Produce and deliver reports on system utilization (processor, memory, disk, and network).

Share this link

Note: This is an RHCE 7 exam objective.

Producing Report

Install the sysstat package if it’s not already the case:

# yum install -y sysstat

Activate the sysstat service at boot (if it’s not already the case):

# systemctl enable sysstat

Produce a report for a given day (here the 11th) (-u for CPU usage, -r for memory usage, -dp for disk activity, -n DEV for network activity):

# sadf -d /var/log/sa/sa11 -- -u -r -dp -n DEV

Additional Resources

Performance analysis starts with the top command that displays the current activity (CPU, memory) on a server.
glances, available through the EPEL repository, is a less known command that displays even more information than top (network usage, disk I/O, filesystem usage).

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...
6 comments on “RHEL7: Produce and deliver reports on system utilization (processor, memory, disk, and network).
  1. Peatross says:

    This spits out a very large wall of text, that’s all that’s required?

    A question like, “Identify at what times CPU utilization peaks” or similar, I wouldn’t be able to answer.

  2. itninja says:

    Maybe a little bit more of the background will be better for overall understanding.
    So in the essence, once sar utility is present on the system by installing sysstat package, cron job will be created under /etc/cron.d/sysstat
    This cron job will collect data about the system every 10 minutes and put the data into /var/log/sa , sar command will use this data to generate the reports, meaning if cron job didn’t kick and collected data, you will not be able to produce any report. Another tunable is stored at /etc/sysconfig/sysstat – here we can change retention, meaning for how long will sar keep the data.

  3. smstong says:

    Has anyone ever known this objective appeared in real EX300?

Leave a Reply

Upcoming Events (Local Time)

There are no events.

RHCSA7: Task of the day

Allowed time: 5 minutes.
Create two users "tom" and "engine". "tom" has the UID/GID 3000 and "engine" the UID/GID 4000. "engine" doesn't have an interactive shell.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a default secure MariaDB database called maria with a user named muser with all privileges.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...