]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/ceph-conf/help.t
import 15.2.0 Octopus source
[ceph.git] / ceph / src / test / cli / ceph-conf / help.t
CommitLineData
7c673cae
FG
1 $ ceph-conf --help
2 Ceph configuration query tool
3
4 USAGE
5 ceph-conf <flags> <action>
6
7 ACTIONS
8 -L|--list-all-sections List all sections
9 -l|--list-sections <prefix> List sections with the given prefix
10 --filter-key <key> Filter section list to only include sections
11 with given key defined.
12 --filter-key-value <key>=<val> Filter section list to only include sections
13 with given key/value pair.
14 --lookup <key> Print a configuration setting to stdout.
15 Returns 0 (success) if the configuration setting is
16 found; 1 otherwise.
17 -r|--resolve-search search for the first file that exists and
18 can be opened in the resulted comma
19 delimited search list.
b32b8144 20 -D|--dump-all dump all variables.
9f95a23c
TL
21 --show-config-value <key> Print the corresponding ceph.conf value
22 that matches the specified key. Also searches
23 global defaults.
7c673cae
FG
24
25 FLAGS
26 --name name Set type.id
27 [-s <section>] Add to list of sections to search
b32b8144
FG
28 [--format plain|json|json-pretty]
29 dump variables in plain text, json or pretty
30 json
7c673cae
FG
31
32 If there is no action given, the action will default to --lookup.
33
34 EXAMPLES
35 [$] ceph-conf --name mon.0 -c /etc/ceph/ceph.conf 'mon addr' (re)
224ce89b 36 Find out what the value of 'mon addr' is for monitor 0.
7c673cae
FG
37
38 [$] ceph-conf -l mon (re)
39 List sections beginning with 'mon'.
40
41 RETURN CODE
42 Return code will be 0 on success; error code otherwise.
9f95a23c 43