Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Creating Capacity Usage Reports

Reporting on capacity usage not only shows what is happening on a system at a given time, but it can also help administrators plan for future resource needs. In this hands-on lab, you are tasked with generating several resource usage reports that utilize the `sar`, `vmstat`, and `iostat` commands.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 13, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Install the monitoring and reporting utilities (sysstat).

    Use the yum command to install the sysstat package:

    yum install -y sysstat
    
  2. Challenge

    Start and enable the sysstat service so that sar will begin collecting system information.

    Start and enable the sysstat service using systemctl:

    systemctl start sysstat
    systemctl enable sysstat
    
  3. Challenge

    Update the cron file for sysstat so that the system activity accounting tool will run every thirty minutes.

    Open the sysstat cron file and change the duration for the system activity accounting tool from 10 minutes to 30 minutes:

    vim /etc/cron.d/sysstat
    
    Update the following line:
    */10 * * * * root /usr/lib64/sa/sa1 1 1
    
    To look like this:
    */30 * * * * root /usr/lib64/sa/sa1 1 1
    
    Save the file by running :wq
    
  4. Challenge

    Capture the results of the vmstat command in a file - /root/vmstat_report. The report should have a delay of one second with a count of ten and also include timestamps.

    Use the vmstat command to generate a report and redirect the output to /root/vmstat_report:

    vmstat -t 1 10 > /root/vmstat_report
    
  5. Challenge

    Capture the results of the iostat command in a file - /root/iostat_report. Only include statistics from the nvme0n1 device (cpu and average removed). It should have a one second delay and count of five.

    Use the iostat command to generate a report and redirect the output to /root/iostat_report:

    iostat -dy -p nvme0n1 1 5 > /root/iostat_report
    
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight