How do we extract CPU usage in server?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How do we extract CPU usage in server?
# 1  
Old 01-15-2010
How do we extract CPU usage in server?

We are using linux OS. I want to extract the CPU usage on specific time for last one week. The information i need is,

date, CPU, %user , %nice , %system , %iowait, %idle

Is there anyway, i can pull these info... Any help is highly appreciated.
# 2  
Old 01-15-2010
Hi,

look at the sar (system activity reporter) package.

Cheers,
Loïc.
# 3  
Old 01-15-2010
It helps... But how can i bring history informaton. I mean, i need to find, what is the CPU usage on specic date or last one week
# 4  
Old 01-16-2010
Normally, you set-up a cron that collects data with sa1, and performs daily a report with sa2. Something along the lines:
Code:
root# cat /etc/cron.d/sysstat 
# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A

The activity reports are then located at /var/log/sadd (assuming the default location) where dd ist the current day of the month. Then you can read a particular report using sar -f.

Eventually, a similar cron job might already be active on your system. In this case, check your manpage for the default report location, and use sar to read the activity at a given day.

Cheers,
Loïc.
# 5  
Old 01-20-2010
Thank you... I thought, we have some commands to pull this kind of reports..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Server showing high Sys% CPU usage

Hi Fellas, Not sure how I can dig in even further but we notice that one of our DB servers is showing high Sys% CPU usage even though when I execute the following command : I can see that postgres is the only one using the CPU. So if anyone can advise me what would be the best way to... (3 Replies)
Discussion started by: arizah
3 Replies

2. Solaris

Total CPU usage on a server

hi, i am using solaris server. I want to find the total CPU usage on a server. Top command will give that result, but here that command is not working. So anyone can help me to find the total CPU usage. (2 Replies)
Discussion started by: Arasu123
2 Replies

3. UNIX for Dummies Questions & Answers

Cpu usage of UNIX server

I want to know the total cpu usage(in %ge)of unix server like windows (NOTE :-not each process cpu usage) Its urgent...plzzzz help me.... (1 Reply)
Discussion started by: rohit kataria
1 Replies

4. Shell Programming and Scripting

Identify CPU usage on the Linux server

We are using linux server. We have below script running on the crontab and it send the alert if the cpu usage is above 90%. My question is, the below script tells the CPU usage for one CPU or all CPU in the server? sar 1 1 | sed '$!d' | awk '{printf("%d", $8)}' > $SAR_LOG Please let me... (4 Replies)
Discussion started by: govindts
4 Replies

5. BSD

How to find the usage of Individual cpu core in FreeBsd server?

Hi, If anyone know Please answer me the following question : How to find the usage of individual core cpu usage in FreeBsd server? What command is used for that? Thanks, Maruthu (2 Replies)
Discussion started by: maruthu
2 Replies

6. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

7. Solaris

Multi CPU Solaris system shows 100% CPU usage.

Hello Friends, On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization. ========================================================================= $ prstat -a ... (4 Replies)
Discussion started by: mahive
4 Replies

8. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

9. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

10. UNIX for Dummies Questions & Answers

How check the overall CPU usage of the unix server

Hi All, Can anyone help me.. I want to know the command to check the overall CPU usage of the server. Note: I don't want the CPU usge of each and every process. I just want to know thw aggregate CPU utilization of the server. (2 Replies)
Discussion started by: Selva_Kumar
2 Replies
Login or Register to Ask a Question