Amanda-Users

Re: amstatus problem

2006-05-01 13:59:06
Subject: Re: amstatus problem
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: AMANDA users <amanda-users AT amanda DOT org>
Date: Mon, 01 May 2006 13:52:31 -0400
Jean-Francois,

Thanks for pointing me to the right RFC.

The attached should fix the problem.

Jean-Louis

Jean-Francois Malouin wrote:
* Jean-Louis Martineau <martineau AT zmanda DOT com> [20060501 13:34]:
amstatus doesn't like ':' in diskname because we use at as separator between the hostname and diskname.

Anyone know if ':' is a valid character in a hostname?
What are the valid characters of a hostname?

RFC 952 says:

   1. A "name" (Net, Host, Gateway, or Domain name) is a text string up
   to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus
   sign (-), and period (.).  Note that periods are only allowed when
   they serve to delimit components of "domain style names". (See
   RFC-921, "Domain Name System Implementation Schedule", for
   background).

jf

Jean-Loui
Only in amanda-2.5.1b1.new: oldrecover-src
diff -u -r --show-c-function --exclude-from=amanda.diff 
amanda-2.5.1b1.orig/server-src/amstatus.pl.in 
amanda-2.5.1b1.new/server-src/amstatus.pl.in
--- amanda-2.5.1b1.orig/server-src/amstatus.pl.in       2006-04-05 
09:05:36.000000000 -0400
+++ amanda-2.5.1b1.new/server-src/amstatus.pl.in        2006-05-01 
13:36:46.000000000 -0400
@@ -186,7 +186,7 @@ while(<AMDUMP>) {
                        push @datestamp, $gdatestamp;
                }
        }
-       elsif(/setup_estimate: (\S+):(\S+): command .*, options: *(\S+) 
*last_level -?\d+ next_level0 -?\d+ level_days \d+ *getting estimates (-?\d) 
\(-2\) (-?\d) \(-2\) (-?\d) \(-2\)/) {
+       elsif(/setup_estimate: ([\-\d\.A-Za-z]*):(\S+): command .*, options: 
*(\S+) *last_level -?\d+ next_level0 -?\d+ level_days \d+ *getting estimates 
(-?\d) \(-2\) (-?\d) \(-2\) (-?\d) \(-2\)/) {
                $host=$1;
                $partition=$2;
                $hostpart=&make_hostpart($host,$partition,$gdatestamp);
<Prev in Thread] Current Thread [Next in Thread>