View Single Post

   
  #3 (permalink)  
Old 01-05-2008, 12:31 PM
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


Reply With Quote