1834260 Members
4184 Online
110066 Solutions
New Discussion

Re: CPU utilization

 
SOLVED
Go to solution
SKR_1
Trusted Contributor

CPU utilization

Hi All,

Can somebody let me know any script ot any idea how to take out cpu utilization from a server having two cpu's for last 24 hours. I am having only top, glance and sar utility on the server.

Thanks

SKR
3 REPLIES 3
TwoProc
Honored Contributor
Solution

Re: CPU utilization

The "extract" command is exactly what you're looking for.

Look in /opt/perf/bin/ for the "extract" command. It allows you to make a file out of that collected by mwa agent for glance. It runs all of the time, and collects data and stores it.

see "man extract" for instructions on how to use.
We are the people our parents warned us about --Jimmy Buffett
Emil Velez
Honored Contributor

Re: CPU utilization

from the sa1 man page you can create the following cron jobs to collect the data then you use sar without any numbers to read the data

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
5 18 * * 1-5 /usr/lbin/sa/sa2 -s 8:00 -e 18:01 -i 3600 -u
5 18 * * 1-5 /usr/lbin/sa/sa2 -s 8:00 -e 18:01 -i 3600 -b
5 18 * * 1-5 /usr/lbin/sa/sa2 -s 8:00 -e 18:01 -i 3600 -q
SKR_1
Trusted Contributor

Re: CPU utilization

Thanks