Sunday, June 29, 2014

Automation - KSAR report generation

Currently in most organizations people use Oracle Enterprise Manager(OEM) to analyze/monitor the CPU,Memory,IO utilization of Linux machines in pictorial representation. But think of a situation where you have no such tools to analyze the trends of Memory/CPU/IO. And that is moment KSAR is going to very handy.

Do you know that interesting trick? Now with the graphical SAR tool called KSAR, it’s easy to automate the report generation by just following the below steps.

Step 1:-

At the end of 23:59 minute generate the system activity report and redirect it to text file.

[thiru@localhost kSar-5.0.6]$ LC_ALL=C sar -A -f /var/log/sa/sa13 > sar13.txt

Step 2:-

Just download the KSAR from the following site http://sourceforge.net/projects/ksar/. And unzip it to some directory, now you can go ahead and execute this following command to generate SAR report in PDF format.

[thiru@localhost kSar-5.0.6]$ java -jar kSar.jar  -input sar13.txt -outputPDF sar13.pdf

time to parse: 1022ms number of line: 4357 line/msec: 4.0

And I do believe it helps you at some point, where you don’t have tools like Oracle Enterprise Manager(OEM) to monitor all this stuff!

No comments:

Post a Comment