03-23-2012
Please post what Operating System and version you have and what Shell you are using.
Please post the "sa1" and "sa2" entries from you crontab and any special changes you might have made such that these scripts keep more than a rolling month's worth of data. On most systems "sa1" and "sa2" are scripts which you can read. Beware that the "sa" files can get very large if you snapshot too frequently. Have a look at you "sa" directory and see what range of data you have available.
Check check and double check that your "sa" scripts are set up correctly and that one "sa" file only contains one day's data.
Always have in mind why you are producing the report(s), what the output report(s) should look like, and what you are going to analyse.
We once found that a simple analysis of the day-by-day CPU usage average for one key system was meaningless because it was dominated by an overnight backup. Restricting the analysis to core hours was more interesting but a lot more work.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
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
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
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) BSD System Manager's Manual sa2(8)
NAME
sa2 -- Generate a system activity daily report file.
SYNOPSIS
/usr/lib/sa/sa2 [-dgpu] [-n mode] [-e time] [-f filename] [-i seconds] [-s time]
DESCRIPTION
The sa2 command is a shell script used to invoke the system activity reporter sar for purposes of generating the standard default daily
report file. The report file generated is, /var/log/sa/sardd where the dd represents the current day of the month. The sa2 options are the
same as those documented in sar(1).
When sa2 runs, it will also remove data and report files, found in /var/log/sa, that are more than one week old.
The sa2 command is intended to be started by cron.
EXAMPLE CRON ENTRY
# Starting at 8am collect system activity records
# every 20 minutes for 12 hours
# 20 minutes = 1200 seconds
# 12 hours with 3 samples each hour = 36 loops
0 8 * * 1-5 /usr/lib/sa/sa1 1200 36
# After the 12 hour period,
# collect a system activity report
30 20 * * 1-5 /usr/lib/sa/sa2 -A
FILES
/var/log/sa/sardd Default daily report file.
/var/log/sa/sadd Default daily data file.
dd are digits that represent the day of the month.
SEE ALSO
crontab(1), fs_usage(1), netstat(1), sar(1), sc_usage(1), top(1), vm_stat(1), crontab(5), iostat(8), sa1(8), sadc(8)
Mac OS X Jul 25 2003 Mac OS X