3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
8 .TH "AMGETCONF" "8" "03/31/2008" "" ""
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\.
69 Output the list of tapetype, one by line\.
74 Output the list of dumptype, one by line\.
79 Output the list of holdingdisk, one by line\.
84 Output the list of interface, one by line\.
90 It could be one of the below format:
96 DUMPTYPE:no\-compress:compress
100 TAPETYPE:HP\-DAT:length
113 \fB\-o\fR \fIconfigoption\fR
115 See the "\fBCONFIGURATION OVERRIDE\fR" section in
120 Find out the path to the log file directory:
124 % amgetconf daily logdir
125 /usr/local/etc/amanda//daily
129 Find out the current tape type:
133 % amgetconf daily tapetype
138 Find out the default configuration directory:
142 % amgetconf daily build\.CONFIG_DIR
143 /usr/local/etc/amanda/
147 Create, use and close a debug file in a script:
151 % set debug_file = `amgetconf daily dbopen\.myscript`
152 % echo debug information >> $debug_file
153 % amgetconf daily dbclose\.myscript:$debug_file
159 amgetconf: no such parameter \fIparam\fR
163 is not a known keyword (e\.g\. not a valid
171 \fBhttp://wiki.zmanda.com\fR()