Unix administration - top question

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > October 2007 > top question





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 top question
vaede.n@gmail.com

2007-10-31, 1:31 am

I am trying to do a top and then extract the data from this line:

CPU states: % idle, % user, % kernel, % iowait, %
swap

when you save this info to a file its never there. Does anyone know
how to capture this.
thanks

Doug Freyburger

2007-10-31, 7:22 pm

vaed...@gmail.com wrote:
>
> I am trying to do a top and then extract the data from this line:
> CPU states: % idle, % user, % kernel, % iowait, % swap


I use -
sar -u 1 10 | grep Average | awk ' { stuff } '

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com