I'm trying to run "amstatus" on existing logfiles after upgrading from version 2.4.4p3 to 2.5.0p2. Unfortunately, the command will most of the time fail with a message like:

amstatus ks --file  /dumps/amanda/ks/log/amdump.1
Using /dumps/amanda/ks/log/amdump.1 from Thu Jun  8 17:04:30 CEST 2006
ERROR getting estimates 0 (909420) -1 (-1) -1 (-1) at /usr/sbin/amstatus line 213, <AMDUMP> line 74.

The error seems to come from the following section of PERL code:

       if(/getting estimates (-?\d) \(-2\) (-?\d) \(-2\) (-?\d) \(-2\)/) {
           if($1 != -1) { $getest{$hostpart} .= ":$1:" };
           if($2 != -1) { $getest{$hostpart} .= ":$2:" };
           if($3 != -1) { $getest{$hostpart} .= ":$3:" };
       }
       else {
           die("ERROR $_");
       }

Which does not really make sense to me. Am I missing something, or does the above match operator *require* a number of ocurreces of the string "(-2)" (as opposed to "some value in brackets")?

Isn't the new amstatus expected to work with old logfiles?

- Toralf

Reply via email to