Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

topas output to file

1,041 views
Skip to first unread message

fly...@technologist.com

unread,
Mar 29, 2007, 7:11:19 PM3/29/07
to
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

Christopher Petersen

unread,
Mar 29, 2007, 8:03:20 PM3/29/07
to

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

John Doe

unread,
Mar 29, 2007, 8:57:23 PM3/29/07
to
<fly...@technologist.com> wrote in message
news:1175209879....@o5g2000hsb.googlegroups.com...

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


fly...@technologist.com

unread,
Mar 30, 2007, 5:45:43 AM3/30/07
to
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?

fly...@technologist.com

unread,
Mar 30, 2007, 5:47:36 AM3/30/07
to
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? :)

Christopher Petersen

unread,
Apr 1, 2007, 7:14:17 PM4/1/07
to

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

Emerson Seiti Takahashi

unread,
Apr 2, 2007, 8:51:48 AM4/2/07
to

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.

0 new messages