topas -P output to file | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

topas -P output to file

AIX


Tags
output, topas

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-13-2009
jtmartins jtmartins is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 18 November 2009, 7:07 AM EST
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Error topas -P output to file

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  
Old 08-13-2009
zxmaus's Avatar
zxmaus zxmaus is offline Forum Advisor  
Event Manager
 
Join Date: May 2008
Last Activity: 2 July 2014, 9:40 PM EDT
Location: in a putty session :)
Posts: 806
Thanks: 19
Thanked 69 Times in 61 Posts
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  
Old 08-14-2009
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 28 August 2014, 2:14 AM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 4,199
Thanks: 44
Thanked 799 Times in 630 Posts
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  
Old 08-14-2009
jtmartins jtmartins is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 18 November 2009, 7:07 AM EST
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:

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 ...

I hope this helps,
kind regards
zxmaus
could you give me a little help on this? i can import it on windows so i can go further in my analysis?

thx in advance.

jtmartins
Sponsored Links
    #5  
Old 08-14-2009
zxmaus's Avatar
zxmaus zxmaus is offline Forum Advisor  
Event Manager
 
Join Date: May 2008
Last Activity: 2 July 2014, 9:40 PM EDT
Location: in a putty session :)
Posts: 806
Thanks: 19
Thanked 69 Times in 61 Posts
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  
Old 08-14-2009
jtmartins jtmartins is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 18 November 2009, 7:07 AM EST
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
so let me try to understand, i run topasrec -L -c 5 -s 60
then i run the nmon analyzer?
Sponsored Links
    #7  
Old 08-14-2009
zxmaus's Avatar
zxmaus zxmaus is offline Forum Advisor  
Event Manager
 
Join Date: May 2008
Last Activity: 2 July 2014, 9:40 PM EDT
Location: in a putty session :)
Posts: 806
Thanks: 19
Thanked 69 Times in 61 Posts
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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



All times are GMT -4. The time now is 03:05 AM.