Linux 2.6.18-194.el5PAE – Linux kernel version of the system.To look for a specific day, add “-f /var/log/sa/saXX” at the end of the sar command.Īll the sar command will have the following as the 1st line in its output. In all the examples below, we are going to explain how to view certain performance data for the current day. This will report the performance data for that particular day. sar followed by an option, and additionally specifying a saXX data file using -f option.This will look for the current day’s saXX data file and report the performance data that was recorded until that point for the current day. sar followed by an option (without specifying a saXX data file).So, write a quick shell script that runs every week to copy the /var/log/sa/* files to some other directory to do historical sar data analysis. This will also remove saXX files that are older than a week.This sarXX file created by sa2 is an ascii file that you can view it in a text editor. sa2 creates /var/log/sa/sarXX file (Note that this is different than saXX file that is created by sa1). ![]() This runs close to midnight (at 23:53) to create the daily summary report of the sar data.In the above crontab example: sa1 1 1 means that sa1 collects sar data 1 time with 1 second interval (for every 10 mins).You can pass two parameters to sa1: interval (in seconds) and count. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |