1824218 Members
3522 Online
109669 Solutions
New Discussion юеВ

SA1 and SA2 scripts

 
Shankar_6
Regular Advisor

SA1 and SA2 scripts

Hi all,

I just heard that system will check sar activity periodically whose scripts are named as SA1 and SA2.I dont have access to the server to check these scripts.

can anyone helps me in getting these scripts..i want to know what it actually contains..!!

Thanks
Shankar
5 REPLIES 5
Kent Ostby
Honored Contributor

Re: SA1 and SA2 scripts

Shankar --

You can check this certified document which discusses the sa1 and sa2 scripts:

UPERFKBRC00010252

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Pete Randall
Outstanding Contributor

Re: SA1 and SA2 scripts

Shankar,

Do a man on sa1.


Pete

Pete
Shankar_6
Regular Advisor

Re: SA1 and SA2 scripts

Thanks for your reply..!!!
Geoff Wild
Honored Contributor

Re: SA1 and SA2 scripts

Here's what is in sa1:

# more /usr/lbin/sa/sa1
#! /usr/bin/sh
# sa1.sh

DATE=`date +%d`
ENDIR=/usr/lbin/sa
DFILE=/var/adm/sa/sa$DATE
cd $ENDIR
if [ $# = 0 ]
then
exec $ENDIR/sadc 1 1 $DFILE
else
exec $ENDIR/sadc $* $DFILE
fi



But, you need to setup sar from root's cron - something like:

# SAR
0 * * * 0,6 /usr/lib/sa/sa1
0 5-19 * * 1-5 /usr/lib/sa/sa1 1200 3
0 20-4 * * 1-5 /usr/lib/sa/sa1
5 19 * * 1-5 /usr/lib/sa/sa2 -s 5:00 -e 19:00 -i 3600 -A


Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Shankar_6
Regular Advisor

Re: SA1 and SA2 scripts

Thanks a lot..!!!

I am not getting the option to assign points.I am assigning 10 points..:)

Thanks
Shankar