Amanda-Users

Re: how to get columns to line up in summary?

2003-08-05 14:53:17
Subject: Re: how to get columns to line up in summary?
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: Scott Mcdermott <smcdermott AT questra DOT com>, amanda-users AT amanda DOT org
Date: Tue, 5 Aug 2003 14:50:16 -0400
On Tuesday 05 August 2003 12:13, Scott Mcdermott wrote:
>anyone know of an easy way to get columns to appear somewhat
>legibly without hacking the amanda source?
>
>here's what output looks like for me:
>
>HOSTNAME     DISK          L ORIG-KB  OUT-KB COMP%  MMM:SS KB/s  
> MMM:SS KB/s -------------------------- ----------------   ------
>localhost    /export/corp  1 9639610  9639610.000000 --    25:51
> 6213.500000    25:52 6212.200195 localhost    /export/local 1
> 2865760  2865760.000000 --     7:51 6083.299805     7:51
> 6080.000000 localhost    user-a        1 11103710  11103710.000000
> --    32:49 5639.000000    32:50 5637.500000 localhost    user-b   
>     1   30240  30240.000000 --     0:07 4593.600098     0:07
> 4566.500000 localhost    user-c        0 10103330  10103330.000000
> --    28:10 5978.500000    28:10 5977.500000 localhost    user-d   
>     1 6710600  6710600.000000 --    20:51 5365.700195    20:51
> 5363.600098 localhost    user-e        1 12390460  12390460.000000
> --    33:36 6147.200195    33:36 6146.399902
>
>here's my columnspec:
>
>       
> HostName=0:-1,Disk=4:-1,Level=1:-1,OutKB=2:-1,Compress=1:-1,DumpTim
>e=2:-1,DumpRate=1:-1,TapeTime=3:-1,TapeRate=1:-1
>
>docs say using -1 lets field size be calculated from largest
>one, but that doesn't appear to be the case?

I'm using this, and it looks pretty decent in my email reports:
columnspec 
"Disk=1:18,HostName=0:10,Level=1:3,OrigKB=1:9,OutKB=1:9,Compress=1:7,DumpTime=1:7,DumpRate=1:7,TapeTime=
1:7,TapeRate=1:7"

Bear in mind that of the number:doublet, the first one is leading 
spaces, the second one is how many to use for the data proper.  Like 
you, I saw the -1 note, but all it would do is muck the columns out 
of line.

Also, get rid of 'localhost'!  Amanda is a client/server program and 
will only work right (although no effect on this formatting problem) 
for all functions if the FQDN of the machine is used.  We should fix 
a filter to add this to the sig of every message posted thru the 
list.  If you cannot recover, you have been warned.

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.27% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.