3 .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
8 .TH "AMGETCONF" "8" "06/06/2007" "" ""
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 amgetconf \- look up amanda.conf variables
17 \fBamgetconf\fR [\fIconfig\fR] [\fI\-\-list\fR] \fIparameter\fR [\-o\ \fIconfigoption\fR]...
21 looks up parameters in
22 \fIamanda.conf\fR, the
24 configuration file, or from the build and runtime environment, and returns their corresponding value.
30 assumes it is being run from the configuration directory and that
37 \fIbuild.\fR, the (case insensitive) string following the period is a build environment variable. Variables without a value (e.g.
39 on a system that does not support that type of file system) will not report an error and will return an empty string as the value. Flag variables (e.g.
40 \fIUSE_AMANDAHOSTS\fR) will return
42 if the flag is set or an empty string if it is not.
47 \fIdbopen.\fR, the string following the period is a program name and an
49 debug file will be created for the caller. The name of the file is returned.
54 \fIdbclose.\fR, the string following the period is a program name previously used with
55 \fIdbopen.\fR, followed by a colon (:) and the previously opened file name.
59 man page for more details about
65 The parameter must be 'tapetype', 'dumptype, 'holdingdisk' or 'interface'. It will output, one by line, the list of identifier for the parameter.
70 Output the list of tapetype, one by line.
75 Output the list of dumptype, one by line.
80 Output the list of holdingdisk, one by line.
85 Output the list of interface, one by line.
92 It could be one of the below format:
99 DUMPTYPE:no\-compress:compress
103 TAPETYPE:HP\-DAT:length
117 \fB\-o\fR \fIconfigoption\fR
119 See the "\fBCONFIGURATION OVERRIDE\fR" section in
124 Find out the path to the log file directory:
128 % amgetconf daily logdir
129 /usr/local/etc/amanda//daily
134 Find out the current tape type:
138 % amgetconf daily tapetype
144 Find out the default configuration directory:
148 % amgetconf daily build.CONFIG_DIR
149 /usr/local/etc/amanda/
154 Create, use and close a debug file in a script:
158 % set debug_file = `amgetconf daily dbopen.myscript`
159 % echo debug information >> $debug_file
160 % amgetconf daily dbclose.myscript:$debug_file
166 amgetconf: no such parameter \fIparam\fR
170 is not a known keyword (e.g. not a valid