Operating System - HP-UX
1834747 Members
2586 Online
110070 Solutions
New Discussion

cpu performance monitoring or caputring

 
siva baskaran
Regular Advisor

cpu performance monitoring or caputring

hi,
how to capture or measure cpu performance for past three days or one week. in hpux 11.23

thanks
siva
5 REPLIES 5
RAC_1
Honored Contributor

Re: cpu performance monitoring or caputring

Do you have mwa and glance installed? If yes, you can customize (take backup of file first) /var/opt/perf/reptall and use extract command.

extract -xp -v -s "start_date" -e "end_date" -r "customized_file" -f stdout

man extract for details.
There is no substitute to HARDWORK
Victor Fridyev
Honored Contributor

Re: cpu performance monitoring or caputring

Hi

You can use

top -d 1 -f file.out

and cut the strings related to CPU

HTH
Entities are not to be multiplied beyond necessity - RTFM
KapilRaj
Honored Contributor

Re: cpu performance monitoring or caputring

Enable sar to run contineously and collects the stats on a file for each day. Later analyse it using shell scripts

Kaps
Nothing is impossible
Michael Steele_2
Honored Contributor

Re: cpu performance monitoring or caputring

Set up a 15 minute cron for 'sar -u 5 5 >> /home/user/CRON_RPTS/outfile 2>&1' as well as other 'sar' reports like, -d, -q, etc, and also vmstat, UNIX95, etc. Save this outfile to outfile_old once or twice a week and delete outfile_old once a week. This will give you the last 7 days of important data for those nasty SAP memory leaks that always seem to follow SAP admins. around from server to server. :0
Support Fatherhood - Stop Family Law
Mel Burslan
Honored Contributor

Re: cpu performance monitoring or caputring

insert these two lines into root's crontab

0 * * * * /usr/lbin/sa/sa1 300 12
59 23 * * * /usr/lbin/sa/sa2 -s 0:00 -e 23:59 -i 300 -A

Then visit this link

http://www.mayoxide.com/sargraph/

download the hpux version of the sargrapher.
you will need a few more GNU tools to be installed like gnuplot. After that you can analyze your systems performance in colorful graphs.

Hope this hepls

PS. If you want to pay some money for this, try googling the term sargraph. It is a fine tool but needs licensing and I do not know anything about the cost.
________________________________
UNIX because I majored in cryptology...