1833237 Members
2553 Online
110051 Solutions
New Discussion

see log sa

 
SOLVED
Go to solution
Jairo Campana
Trusted Contributor

see log sa

as I can read the logs in:
/var/log or /var/log/adm/sa generated for cron

-rw-r--r-- 1 root root 246986 ene 21 04:22 sar20
-rw-r--r-- 1 root root 246986 ene 22 04:23 sar21

Thanks
legionx
4 REPLIES 4
Craig Rants
Honored Contributor

Re: see log sa

No comprende. Que es el questiones?

As you can see, my spanish is not very good.

C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Jairo Campana
Trusted Contributor

Re: see log sa

I can see logs with

vi /var/log/sa12

cat /var/log/sa14
??????????????????????????77???? lo??C ^??
1????! eth2?Y??G????{??C????
legionx
Michael Tully
Honored Contributor
Solution

Re: see log sa

From the man page, to view information from a
file at a later time:

examples:
Review disk and tape activity from that period later:

sar -d -f yourfile

Review cpu utilization on a multi-processor system later:

sar -u -M -f yourfile

-Michael
Anyone for a Mutiny ?
Craig Rants
Honored Contributor

Re: see log sa

As Michael said, the different sar variations will allow you to view your files in the proper format. If you ever have a question about how to read a file, type in:

file sa01
you get back
sa01: awk program text

You know that if it is not ascii test, you will not be able to properly read the file.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut