1834465 Members
2891 Online
110067 Solutions
New Discussion

Re: SAR

 
brian_31
Super Advisor

SAR

I had to run this script to get some SAR data..

more sar.sh
for i in `ls /var/adm/sa/sa??`
do
sar -f $i >> /tmp/sar.out
done

when i execute this, i get /var/adm/sa/sa?? not found. does that mean sar is not installed? i am able to execute sar -v 2 2 and i get nfiles info. Please Help

Thanks

brian
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: SAR

So do the files exist? They have to have been previously created before you can read them.


Pete

Pete
brian_31
Super Advisor

Re: SAR

THanks. i created the sa?? but still it does not generate any output.

Thanks

brian.
Aashique
Honored Contributor

Re: SAR

Hi,
after create the file change the ownership
chown sys:sys /var/adm/sa
chmod 700 /var/adm/sa


Thanks