]>
Commit | Line | Data |
---|---|---|
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. | |
20 | ||
21 | FLAGS | |
22 | --name name Set type.id | |
23 | [-s <section>] Add to list of sections to search | |
24 | ||
25 | If there is no action given, the action will default to --lookup. | |
26 | ||
27 | EXAMPLES | |
28 | [$] ceph-conf --name mon.0 -c /etc/ceph/ceph.conf 'mon addr' (re) | |
224ce89b | 29 | Find out what the value of 'mon addr' is for monitor 0. |
7c673cae FG |
30 | |
31 | [$] ceph-conf -l mon (re) | |
32 | List sections beginning with 'mon'. | |
33 | ||
34 | RETURN CODE | |
35 | Return code will be 0 on success; error code otherwise. | |
36 | [1] |