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...

3
Leave a Reply

Please Login to comment
2 Comment threads
1 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
CertDepotitninjaPeatross Recent comment authors
  Subscribe  
newest oldest
Notify of
Peatross
Member
Peatross

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.

itninja
Member
itninja

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… Read more »

RHCSA7: Task of the day

Allowed time: 8 minutes.
Find all files bigger than 100MB and write their names into the /root/results.txt file.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a NFS server that exports the /opt directory in read-only mode.

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 ...