I am running HP-UX 11.00 and would like to use sar -wqu 5 5
If I write this to a file, and sorts it over 3 lines, 1st line for w output,
2nd line for q output, 3rd for u output.
What I really want to do is write it to a flat file so it can be imported
into a oracle table.
Are we missing anything?
|
|
0
|
|
|
|
Reply
|
LHradowy
|
10/21/2003 8:28:47 PM |
|
On Tue, 21 Oct 2003 15:28:47 -0500, LHradowy wrote:
> I am running HP-UX 11.00 and would like to use sar -wqu 5 5
> If I write this to a file, and sorts it over 3 lines, 1st line for w output,
> 2nd line for q output, 3rd for u output.
>
> What I really want to do is write it to a flat file so it can be imported
> into a oracle table.
>
> Are we missing anything?
Save it in binary then post-process it to meet your needs. See if your
implementation supports the "-o" switch. If not you can invoke sadc(1)
directly to save the data in binary format. You can then convert to human
readable format using the sar(1) "-f" switch. For example,
sar -o sar.raw 5 5
Then
sar -f sar.raw -q
Your sar(1) command might provide an option that produces output more
easily parsed by other programs (e.g., "-h" if you're on Linux).
|
|
0
|
|
|
|
Reply
|
Kurtis
|
10/22/2003 4:07:14 AM
|
|