Unix questions - total amount of seconds CPU time spent in the system for the different CPU states

This is Interesting: Free IT Magazines  
Home > Archive > Unix questions > December 2004 > total amount of seconds CPU time spent in the system for the different CPU states





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author total amount of seconds CPU time spent in the system for the different CPU states
zekos muslu

2004-12-18, 7:47 am

Hello All,

I am using Sun-Fire-V240 and Solaris 5.9.

I am testing SNMP agent on this server. By using SNMP, I can get the
system performance counters, i.e. "CPU Utilization in User Mode" and
"CPU Utilization in Kernel".

I need to verify this values by some unix commands/tools/utilities.

As far as I know these counters provide us the information of "total
amount of seconds CPU time spent in the system for the different CPU
states".

So, How can I check/verify these counter values?
Which unix command or script helps me for this subject.

If you reply me today, I will be very happy.

Thanks in advance,

and Best Regards,
zekos muslu
bbrock@gmail.com

2004-12-21, 8:48 pm

For CPU performance information in Solaris, take a look at the man page
for "mpstat" and "sar".

$ mpstat 5 3 # 5 samples, one every 3 seconds
$ sar 5 2 # 5 samples, one every 2 seconds

You'll may also find vmstat, prstat, iostat, and /usr/ucb/ps useful.

Also see:
http://developers.sun.com/solaris/a...ng_solaris.html and
http://www.oreilly.com/catalog/spt2/index.html

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com