From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Generate reports on system utilization

Generate reports on system utilization

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Generate reports on system utilization

- [Instructor] Now that we have systat gathering data for us let's create some reports from it. We use the sabf command to create a report. Let's see if we have any data files to process. In our terminal, type in: ls /var/log/sa and hit enter. If there is a file in there, then specify that for the next command. In my case, I have a file named sa10. This is for the 10th day of the month. Depending on when you're watching this video, your files will be named differently. Since I have a file named sa10, I'd type in: sudo sadf -is 00:00:00, which is the start time, -e 23:59:59, which is the end time, space /var/log/sa/sa10 and hit enter. This will consider all data from midnight to 11:59pm in the sa10 file. It will then create a report and output it to the screen. By default, the data is created in a format ingestible by awk. If we wanted an XML file, we could just add the -x option. Bring your line back, and append a - x to the end and hit enter. If we specify the -d option, it makes it…

Contents