Sponsored Content
Top Forums Shell Programming and Scripting help with a script to have monthly sar reports Post 302611707 by methyl on Friday 23rd of March 2012 10:33:06 AM
Old 03-23-2012
Worth reading the "sa2" script in case it deletes files before you have saved them. If you need to analyse a month's worth, you'll need a script to save the sa<nn> files daily smewhere where they don't get deleted and with a name (or directory name) containing the month and year.

You seem to be 9/10 there already. The trick is to get "sar" to do the maths and then just plot the average line.

There's a lot of interesting statistics in those files which can give you early warning of overload.

Good luck.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

creating reports using shell schell script

please advise..very urgent. purpose of my script is that it should generate a report by running a sql script which is stored in a directory and pull the information from DB.script shld be in such a way that I just need to pass a parameter and it shld generate the report and store it in a... (1 Reply)
Discussion started by: complicated
1 Replies

2. Shell Programming and Scripting

Integate two reports - bash script

I wrote script in bash which generates this report "first.csv": I wrote script in bash which generates this report "second.csv": I want to integate two reports: "first.csv" and "second.csv". I want like so that "result.csv": Thx (2 Replies)
Discussion started by: patrykxes
2 Replies

3. Shell Programming and Scripting

How to insert variable date (monthly) from SQL script

Hi Guys, Can someone please help me on adding/inserting a variable to an sql scipt? Basically I want to generate data on monthly (i.e. July 01, 2011 to July 31, 2011) basis. As shown below.. set head off; set linesize 300; set pagesize 200; spool /opt/oracle/temp/output.txt select... (1 Reply)
Discussion started by: pinpe
1 Replies

4. Shell Programming and Scripting

Writing a script to run weekly/monthly - check for weekday or day-of-the-month

Hi all, I currently have a UNIX file maintenance script that runs daily as a cron job. Now I want to change the script and create functions/sub inside it that runs on a weekly or monthly basis. To run all the scripts' daily maintenance, I want to schedule it in cron as simply maint.sh... (1 Reply)
Discussion started by: newbie_01
1 Replies

5. AIX

script to get user id reports

Dear Friends, Can Any one provide me script to generate list of username with the gecos field. (cat /etc/passwd | cut -d: -f1,5) Please note i have to run this command from nim server and i have password less ssh access.(ssh hostname command) and i want a file to be generated on nim... (0 Replies)
Discussion started by: vinodchauhan123
0 Replies

6. Shell Programming and Scripting

script to get user id reports korn shell

Dear Friends, Can Any one provide me script to generate list of username with the gecos field. (cat /etc/passwd | cut -d: -f1,5) Please note i have to run this command from nim server and i have password less ssh access.(ssh hostname command) and i want a file to be generated on nim... (1 Reply)
Discussion started by: vinodchauhan123
1 Replies

7. UNIX for Dummies Questions & Answers

Tracking the script(.sh) files triggered on daily or monthly basis from source

Hi Gurus, Is there any solution for tracking the script(.sh) files triggered on daily or monthly basis from source - Datastage (Routines) Needs to find out if this scripts are running on daily just want to know that is there anything to track Thanks in Advance (2 Replies)
Discussion started by: SeenuGuddu
2 Replies

8. Shell Programming and Scripting

Using kSar for short sar reports , failed to parse

Hello i try to run sar short periods of time like 5 minutes , using sar -ALL 2 > test.all.txt then i try to load this file off line in kSar , and kSar failing to parse the file . what i mean is it do read the file but doesn't present the data . i can see clearly that the file is full of... (2 Replies)
Discussion started by: umen
2 Replies
SA2(8)								Linux User's Manual							    SA2(8)

NAME
sa2 - Write a daily report in the /var/log/sa directory. SYNOPSIS
/usr/lib/sa/sa2 DESCRIPTION
The sa2 command is a shell procedure variant of the sar command which writes a daily report in the /var/log/sa/sardd file, where the dd parameter indicates the current day. The sa2 command handles all of the flags and parameters of the sar command. The sa2 command is designed to be started automatically by the cron command. EXAMPLES
To run the sa2 command daily, place the following entry in your root or adm crontab file: 5 19 * * 1-5 /usr/lib/sa/sa2 -A & This will generate a daily report called /var/log/sa/sardd It will also remove reports more than one week old. FILES
/var/log/sa/sardd Indicate the daily report file, where the dd parameter is a number representing the day of the month. AUTHOR
Sebastien Godard <sebastien.godard@wanadoo.fr> SEE ALSO
sar(1), sadc(8), sa1(8), mpstat(1), iostat(1), vmstat(8) http://perso.wanadoo.fr/sebastien.godard/ Linux DECEMBER 1999 SA2(8)
All times are GMT -4. The time now is 07:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy