1833184 Members
2878 Online
110051 Solutions
New Discussion

Top output

 
Barry Deevey
Occasional Contributor

Top output

Hi all, after reading a number of threads in this forum regarding system performance. I decided to extract certain system statistics at various times during the day, so that I could load them into excel and analyze them. I know I'm being stupid, but when I pipe 'top' output to a file there are control characters everywhere. I've not been able to figure out how to get this to work properly. Could anybody point me in the right direction??

Also,I'd just like to say that being a relative novice, I find that reading discussions in forums is a good way of learning, and I'd just like to say that this is the best one by far that I've come across.

Thanks again, Barry.
3 REPLIES 3
Kofi ARTHIABAH
Honored Contributor

Re: Top output

Barry:

There was an ealier post with a suggestion to use the -f (undocumented flag) on top:
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x59c1119c3420d411b66300108302854d,00.html

good luck
nothing wrong with me that a few lines of code cannot fix!
federico_3
Honored Contributor

Re: Top output



use:

top -f /tmp/top_file

and all the informations will be stored in /tmp/top_file!


Federico
John Palmer
Honored Contributor

Re: Top output

The problem with 'top' is that it's supposed to be an interactive utility.

sar, vmstat, iostat and uptime are all much easier to get tabular information from.

I should also mention that scopeux which comes as part of the Glance+PAK/Measureware add-on product is also worth the investment on a production system. It allows you to export just about every metric that you've heard of - and a lot that you haven't!

Regards,
John