Operating System - Tru64 Unix
1753460 Members
4499 Online
108794 Solutions
New Discussion юеВ

Re: getting cpu_idle and iowait percent

 
SOLVED
Go to solution
Simon Jespersen
Frequent Advisor

getting cpu_idle and iowait percent

Hi! im not that familiar with tru64, i want to be able to get the total cpu_idle. and the iowait on the box out to use in a script.
normally i would use the sar and collect the data with awk.
I think that i could use the collect tool to do this on tru64 but i dont know how, im a bit confused after reading the man pages ect..

So how do i get those overall performance data out.
with a cmd or more commands.
I need them in a performance trend analyse database.
3 REPLIES 3
Ivan Ferreira
Honored Contributor
Solution

Re: getting cpu_idle and iowait percent

You can use vmstat -w 1 2 to obtain these values. The first line is not relevant because is statistics since the startup of the system, the second line displayed will be the current usage.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Arch_Muthiah
Honored Contributor

Re: getting cpu_idle and iowait percent

Simon,

This has been discussed in this thread,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=969433


Archunan
Regards
Archie
Arch_Muthiah
Honored Contributor

Re: getting cpu_idle and iowait percent

Simon,

There is uitlity (Host Sensor)using which we can get complete CPU usage, iowait and other resouce utilizations in the system...

You can find Host sensing modules for Tu64 too here.
http://www.gridlab.org/WorkPackages/wp-11/monitor-manual/hostsensors.html


Archunan
Regards
Archie