Amanda-Users

Re: amoverview bug?

2003-05-28 03:31:22
Subject: Re: amoverview bug?
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: amanda-hackers AT amanda DOT org
Date: Wed, 28 May 2003 09:28:14 +0200
Mathias Koerber wrote:
Is this bug known or due to something wrong in my setup?
amoverview not only lists my DLEs but also some other
lines from the disklist file.
My guess is that this is due to amoverview not being in sync
with the new disklist format yet???

can someone confirm?

Yes, it's a bug.

in Line 87 we find:

   ($host, $disk, $type, $spindle) = split ' ', $_;

but the syntax of a DLE has been extended since.  It is now:

 hostname diskname [ diskdevice ] dumptype [ spindle
              [ interface ] ]

and dumptype can be defined inline by enclosing it in curly braces
and spans multiple lines.
Ugh.  Not easy to parse with a perl one liner.

It's probably better to parse the output of "amadmin ConFig disklist",
instead of parsing the disklist file itself.

--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



<Prev in Thread] Current Thread [Next in Thread>