Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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?
Archunan 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
God is Artist, we are all just brushes
Archunan 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
God is Artist, we are all just brushes