Operating System - HP-UX
1834434 Members
2862 Online
110067 Solutions
New Discussion

Spaces/extra line in sar output

 
SOLVED
Go to solution
Geoff Wild
Honored Contributor

Spaces/extra line in sar output

Made a small change to sar on some of my servers - on one - output looks like this:

05:50:00 38 10 33 19
06:00:00 22 11 49 18
0 0 100 0
06:10:00 36 13 39 12
06:20:01 36 13 38 14
06:30:01 18 11 53 19
06:40:00 19 19 56 6
25 50 25 0
06:50:00 18 12 60 11
50 25 25 0
07:00:00 14 10 55 22
29 43 29 0
07:10:00 28 14 47 11
07:18:20 18 10 43 29
07:20:00 27 18 48 8
07:30:00 26 15 46 13
20 40 20 20
07:40:01 25 18 41 16
40 40 20 0

Average 24 11 45 20


Why the spaces? IE extra line after 7:30?

# crontab -l |grep sa1
0 * * * * /usr/lib/sa/sa1
10,20,30,40,50 * * * * /usr/lib/sa/sa1

# crontab -l |grep sa2
5 19 * * * /usr/lib/sa/sa2 -s 5:00 -e 19:01 -i 600 -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.
5 REPLIES 5
Geoff Wild
Honored Contributor

Re: Spaces/extra line in sar output

Looks beeter in a txt attachement....

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.
John Waller
Esteemed Contributor
Solution

Re: Spaces/extra line in sar output

Geoff,
Could somebody else be trying to run sar but don'y know what thney are doing, As well as the entry at 7:30, whats this entry at 7:18:20 ?? as well as extra enteries at 01:00 and 02:00. Might be an idea to go to /var/spool/cron/crontabs and see if another user has put some sar stuff in their crontab
John Waller
Esteemed Contributor

Re: Spaces/extra line in sar output

Geoff,
Could somebody else be trying to run sar but don't know what they are doing, As well as the entry at 7:30, whats this entry at 7:18:20 ?? as well as extra enteries at 01:00 and 02:00 amongst others. Might be an idea to go to /var/spool/cron/crontabs and see if another user has put some sar stuff in their crontab
Geoff Wild
Honored Contributor

Re: Spaces/extra line in sar output

The 7:18 was me - just running it manually - to see the output...but - you were right - seems the adm id also was running sa1 at the same time! The adm cron was legacy - from when I had a 11.0 machine - and migrated to the current machine - crontabs were just copied over - and not reviewed...

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.
Geoff Wild
Honored Contributor

Re: Spaces/extra line in sar output

add user was running sa1 at same time as root.

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.