Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CPU Peak and Average utilization

Status
Not open for further replies.

tech005

MIS
Dec 11, 2003
36
0
0
US
I'm looking for a command to get the peak and average cpu utilization for a month which can be read thru excel.Thanks in adv...
 
Using sar or smc? or capturing prstat or mpstat data?
 
I'm looking for the cmd with the flags to get the data
 
I'm not seeing anything in sar to specify the start and end date.I'm looking for a month worth of data
 
You have to save the sar data and then you will have to manipulate it using a shell script or however you want to do it.

Is accounting turned on?
 
Would nmon help in this? It offers a facility to create Excel files too.
 
Run nmon with the -f flag. See nmon -h for the details. But as an example, try to run nmon for an hour capturing data snapshots every 30 seconds by using:
nmon -f -s 30 -c 120
nmon -fT -s 30 -c 120

The second line also captures the top processes (-T). Both of these create the output file in the current directory called:
<hostname>_date_time.nmon"

The nmon file can be analysed with nmon analyser. This will create excel sheet.

-> Utilities ->nmon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top