Unix Technical Forum

topas output to file

This is a discussion on topas output to file within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi. I'm trying to run topas in a script and to write the output to a file. The problem ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 11:31 AM
flyzone@technologist.com
 
Posts: n/a
Default topas output to file

Hi.
I'm trying to run topas in a script and to write the output to a file.
The problem is that in the file appear many strange simbol, maybe
cause of the grafic and not-standard update of the value in
interactive mode.
There isn't a "non interactive mode" like in the "top -b" command in
linux?

I need to have the CPU busy/idle and all the process with the
occupation in the cpu, but i can't run other commands cause they'll
give the ouput in different moment and just with a difference of 1
second could give me problem, i need to have this data all in one
moment.
(looking cpu more hight that my warning-level, i'll get what is the
process that eat more cpu-time)

Hope to receive some reply.

Thanks in advance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 11:31 AM
Christopher Petersen
 
Posts: n/a
Default Re: topas output to file

On Thu, 29 Mar 2007 16:11:19 -0700, flyzone wrote:

> Hi.
> I'm trying to run topas in a script and to write the output to a file.
> The problem is that in the file appear many strange simbol, maybe
> cause of the grafic and not-standard update of the value in
> interactive mode.
> There isn't a "non interactive mode" like in the "top -b" command in
> linux?
>
> I need to have the CPU busy/idle and all the process with the
> occupation in the cpu, but i can't run other commands cause they'll
> give the ouput in different moment and just with a difference of 1
> second could give me problem, i need to have this data all in one
> moment.
> (looking cpu more hight that my warning-level, i'll get what is the
> process that eat more cpu-time)
>
> Hope to receive some reply.
>
> Thanks in advance


It's not my favorite tool, but have you looked at 'nmon'? It's not
entirely supported, but it is maintained by an IBMer with IBM's blessing.
We do most of our scripted monitoring of AIX boxes with it, and it works
fine... :-)

-Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 11:31 AM
John Doe
 
Posts: n/a
Default Re: topas output to file

<flyzone@technologist.com> wrote in message
news:1175209879.524392.67170@o5g2000hsb.googlegrou ps.com...
> Hi.
> I'm trying to run topas in a script and to write the output to a file.
> The problem is that in the file appear many strange simbol, maybe
> cause of the grafic and not-standard update of the value in
> interactive mode.
> There isn't a "non interactive mode" like in the "top -b" command in
> linux?
>
> I need to have the CPU busy/idle and all the process with the
> occupation in the cpu, but i can't run other commands cause they'll
> give the ouput in different moment and just with a difference of 1
> second could give me problem, i need to have this data all in one
> moment.
> (looking cpu more hight that my warning-level, i'll get what is the
> process that eat more cpu-time)
>
> Hope to receive some reply.
>
> Thanks in advance
>


This can be useful:
xmwlm [ -d recording_dir ] [ -n recording_name ] [ -t trace_level ] [ -L ]

The xmwlm agent provides recording capability for a limited set of local
system performance metrics. These include common CPU, memory, network, disk,
and partition metrics typically displayed by the topas command. Daily
recordings are stored in the /etc/perf/daily directory. The topasout command
is used to output these recordings in raw ASCII or speadsheet format. The
xmwlm agent can also be used to provide recording data from Workload
Management (WLM). This is the default format used when xmwlm is run without
any flags. Daily recordings are stored in the /etc/perf/wlm directory. The
wlmmon command can be used to process WLM-related recordings. The xmwlm
agent can be started from the command line, from a user script, or can be
placed near the end of the /etc/inittab file. All recordings cover 24-hour
periods and are only retained for two days.
topasout Command
Purpose
Tabulates the contents of an xmwlm recording file.

Syntax
topasout [ -c | -s ] [ -m type ] recording_file

Description
The topasout command provides post-processing of recordings made by xmwlm.
It can generate reports in ASCII or spreadsheet format.

The topasout command has the following options (topasout -?):

topasout [-c|-s|-a|-R daily|-R weekly] [-R detailed|-R summary|-R disk |-R
lan [ -i MM -b HHMM -e HHMM]] [xmwlm_recording|topas_recording]
flags: -c comma separated output format
-s spreadsheet import format
-R daily | weekly WLE output report
-R detailed | summary | disk | lan (local recordings)
-R detailed | summary (topas recordings)
-i MM split the recording reports into equal size time
periods.Allowed Values (in minutes) are 5, 10, 15, 30,60
-b HHMM begin time in hours (HH) and minutes (MM).Range is
between 0000 and 2400]
-e HHMM end time in hours (HH) and minutes (MM).Range is
between 0000 and 2400 and is greater than the begin time]
-a nmon analyzer format style;
For using nmon analyzer with topasout then please refer
/usr/lpp/perfagent/README.perfagent.tools for more help


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 11:31 AM
flyzone@technologist.com
 
Posts: n/a
Default Re: topas output to file

On 30 Mar, 02:57, "John Doe" <a.a.com> wrote:
> This can be useful:
> xmwlm [ -d recording_dir ] [ -n recording_name ] [ -t trace_level ] [ -L ]
>
> The xmwlm agent provides recording capability for a limited set of local
> system performance metrics. These include common CPU, memory, network, disk,

[...]
> xmwlm agent can also be used to provide recording data from Workload
> Management (WLM).


Just a question: this means that not use the workload management?
For other reason (not a mine idea), i can't start the wlm.
xmwlm, is another agent, maybe light or just a easy program to run
every 5 minutes?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 11:31 AM
flyzone@technologist.com
 
Posts: n/a
Default Re: topas output to file

On 30 Mar, 02:03, Christopher Petersen <cpeter...@crystallized-
software.com> wrote:
> It's not my favorite tool, but have you looked at 'nmon'? It's not
> entirely supported, but it is maintained by an IBMer with IBM's blessing.


Ohw great! I have just seen some screenshot and look nice.
The bad news is that i need to install in every machine :-P

What you means for "not entirely supported", which problem it give
you?
A grep/redirect output in txt is possible, right?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 11:31 AM
Christopher Petersen
 
Posts: n/a
Default Re: topas output to file

On Fri, 30 Mar 2007 02:47:36 -0700, flyzone wrote:

> On 30 Mar, 02:03, Christopher Petersen <cpeter...@crystallized-
> software.com> wrote:
>> It's not my favorite tool, but have you looked at 'nmon'? It's not
>> entirely supported, but it is maintained by an IBMer with IBM's blessing.

>
> Ohw great! I have just seen some screenshot and look nice.
> The bad news is that i need to install in every machine :-P
>
> What you means for "not entirely supported", which problem it give
> you?
> A grep/redirect output in txt is possible, right?


In this case "not entirely supported" means that it's not an official
product of IBM with a whole team supporting it. It's the work of one
(very smart) person who still supports and maintains it...

Sorry about the need to install it everywhere... You could always wrap it
in an installp-compatible package and push it through NIM...

-Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-05-2008, 11:32 AM
Emerson Seiti Takahashi
 
Posts: n/a
Default Re: topas output to file

On Mar 29, 8:11 pm, flyz...@technologist.com wrote:
> Hi.
> I'm trying to run topas in a script and to write the output to a file.
> The problem is that in the file appear many strange simbol, maybe
> cause of the grafic and not-standard update of the value in
> interactive mode.
> There isn't a "non interactive mode" like in the "top -b" command in
> linux?
>
> I need to have the CPU busy/idle and all the process with the
> occupation in the cpu, but i can't run other commands cause they'll
> give the ouput in different moment and just with a difference of 1
> second could give me problem, i need to have this data all in one
> moment.
> (looking cpu more hight that my warning-level, i'll get what is the
> process that eat more cpu-time)
>
> Hope to receive some reply.
>
> Thanks in advance


I don't know if this will help but here we go:
topas -i <segundos> -P | tee [-ai] [filename]
This isn't non-interactive

But I believe you would have more success if you use ps and then sort
by %CPU.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:32 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com