1834660 Members
2734 Online
110069 Solutions
New Discussion

SAR question

 
SOLVED
Go to solution
Prashant Zanwar_4
Respected Contributor

SAR question

Hi,

I want sar to collect data under /var/adm/sa..I forgot it how to do it unfortunately..

Can some one tell me please urgently..I will assign points.
Thanks and regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: SAR question

You need the sadc command. Man sadc; the man pages will step your through the entire process.
If it ain't broke, I can fix that.
Navin Bhat_2
Trusted Contributor

Re: SAR question

"man sa1" and you should get all the info you need.
hari jayaram_1
Frequent Advisor

Re: SAR question

Prashant,

Man sadc.

example in your crontab

0 * * * * /usr/lbin/sa/sa1 1200 3 &
Sundar_7
Honored Contributor
Solution

Re: SAR question

Hi Prashant,

Add the following entries to root's crontab.

0 * * * 0,6 /usr/lbin/sa/sa1
0 8-17 * * 1-5 /usr/lbin/sa/sa1 1200 3
0 18-7 * * 1-5 /usr/lbin/sa/sa1

Sundar
Learn What to do ,How to do and more importantly When to do ?