1AMGETCONF(8)                                                      AMGETCONF(8)
2
3
4

NAME

6       amgetconf - look up amanda.conf variables
7

SYNOPSIS

9       amgetconf [config] [--list] parameter [-o configoption]...
10

DESCRIPTION

12       Amgetconf looks up parameters in amanda.conf, the Amanda configuration
13       file, or from the build and runtime environment, and returns their
14       corresponding value.
15
16       If config is not specified, amgetconf assumes it is being run from the
17       configuration directory and that amanda.conf is present.
18
19       If parameter begins with build., the (case insensitive) string
20       following the period is a build environment variable. Variables without
21       a value (e.g.  XFSDUMP on a system that does not support that type of
22       file system) will not report an error and will return an empty string
23       as the value. Flag variables (e.g.  USE_AMANDAHOSTS) will return 1 if
24       the flag is set or an empty string if it is not.
25
26       If parameter begins with dbopen., the string following the period is a
27       program name and an Amanda debug file will be created for the caller.
28       The name of the file is returned.
29
30       If parameter begins with dbclose., the string following the period is a
31       program name previously used with dbopen., followed by a colon (:) and
32       the previously opened file name.
33
34       See the amanda(8) man page for more details about Amanda.
35

OPTIONS

37       --list
38           The parameter must be 'tapetype', 'dumptype, 'holdingdisk' or
39           'interface'. It will output, one by line, the list of identifier
40           for the parameter.
41
42               --list tapetype
43                   Output the list of tapetype, one by line.
44
45               --list dumptype
46                   Output the list of dumptype, one by line.
47
48               --list holdingdisk
49                   Output the list of holdingdisk, one by line.
50
51               --list interface
52                   Output the list of interface, one by line.
53
54       parameter
55           It could be one of the below format:
56
57               runtapes
58
59               DUMPTYPE:no-compress:compress
60
61               TAPETYPE:HP-DAT:length
62
63               INTERFACE:local:use
64
65               HOLDINGDISK:hd1:use
66
67       -o configoption
68           See the "CONFIGURATION OVERWRITE" section in amanda(8).
69

EXAMPLE

71       Find out the path to the log file directory:
72
73           % amgetconf daily logdir
74           /usr/local/etc/amanda//daily
75
76
77       Find out the current tape type:
78
79           % amgetconf daily tapetype
80           DLT4000-IV
81
82
83       Find out the default configuration directory:
84
85           % amgetconf daily build.CONFIG_DIR
86           /usr/local/etc/amanda/
87
88
89       Create, use and close a debug file in a script:
90
91           % set debug_file = `amgetconf daily dbopen.myscript`
92           % echo debug information >> $debug_file
93           % amgetconf daily dbclose.myscript:$debug_file
94
95

MESSAGES

97       amgetconf: no such parameter param
98           Parameter param is not a known keyword (e.g. not a valid
99           amanda.conf keyword).
100

SEE ALSO

102       amanda(8)
103
104
105
106                                  02/07/2007                      AMGETCONF(8)
Impressum