|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I need to output to a file, what will be ftp'ed to windows the output of a topas -P command in AIX. I can't install anything in the server (because it's the bank AIX server) but i need to control and keep the history of the % cpu that my processes use. I tried to use topas -R >> test.txt but it didn't work. When i use cat test.txt it seems fine, but when i use cat test.txt | more shows a lot of characters that i can't have in my file. Any help ? Thx in advance, JTMartins |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Hi, try rather topasrec or smitty performance / smitty topas ... To start a report that runs for 5 minutes and collects metrics every 1 minute, enter the following command: Code:
topasrec -L -c 5 -s 60 ... the file will be in the directory you were in when starting the record and in the format servername_timestamp.topas ... data will be binary and you can run it through nmon analyzer or generate a report via smitty topas panel. Code:
topas -R collects data as well and the data is stored automatically in /etc/perf/** but as far as I know there is no possibility to define any values like count or intervals - all you get is the default - and you would need to run it as well through either topasout or nmon analyzer or the smitty panel to really have useful data ... There was a webinar last year from the AIX virtual usergroup about topas recording - have a look into '2008-9-25_Topas_Recording.wmv' that can be found here: ftp://ftp.software.ibm.com/systems/p...l-VUG-Replays/ I hope this helps, kind regards zxmaus |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
If you are only interested in some cpu% values you could configure and use "sar" (man sar). It was designed for exactly this purpose.
If you want to keep the topas-output and only want to get rid of the odd characters (they are steering characters responsible for the nicely formatted output of topas in the terminal) use a simple sed script to only collect into your results file what you are interested in. Post a sample and what you want to keep (in the "Shell Programming and Scripting" section, please) and I'm sure you have a solution within hours. I hope this helps. bakunin |
|
#4
|
|||
|
|||
|
Quote:
thx in advance. jtmartins |
| Sponsored Links | |
|
|
#5
|
||||
|
||||
|
Hi,
sure - smitty topas is an AIX smit panel that will perform the work for you and prepare a formatted output that you can put everywhere - i.e. onto your pc. If you simply copy the raw data, you can take the file and make nmon analyzer read the data and prepare the report for you ... nmon analyzer is an excel macro and can be found here: IBM developerWorks: Wikis - AIX - nmonanalyser Kind regards zxmaus |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
so let me try to understand, i run topasrec -L -c 5 -s 60
then i run the nmon analyzer? |
| Sponsored Links | |
|
|
#7
|
||||
|
||||
|
Yes, you run Code:
topasrec -L -c5 -s60 and you get a file called servername_date.topas. Once it's created, you move this file to your pc - with winscp or ftp or whatever is your choice, than you open nmon analyzer and choose the .topas file ... the macro will do its job and produce a nice formatted output in excel (including grafics) about the data that topasrec did collect for you. Obviously you need excel installed on your pc. Kind regards zxmaus Kind regards zxmaus |
| Sponsored Links | ||
|
![]() |
| Tags |
| output, topas |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to redirect output of topas? | ashokd001 | AIX | 2 | 01-02-2009 04:35 PM |
| topas -P save output | zedex | AIX | 0 | 10-06-2008 02:11 AM |
| using TOPAS | pasion | AIX | 2 | 12-24-2007 02:20 PM |
| nmon vs topas | pascalbout | AIX | 0 | 09-13-2006 03:42 AM |
| Topas | cgatrader | UNIX for Advanced & Expert Users | 1 | 04-15-2004 08:22 PM |
|
|