3 ==================================
4 ceph-conf -- ceph conf file tool
5 ==================================
12 | **ceph-conf** -c *conffile* --list-all-sections
13 | **ceph-conf** -c *conffile* -L
14 | **ceph-conf** -c *conffile* -l *prefix*
15 | **ceph-conf** *key* -s *section1* ...
16 | **ceph-conf** [-s *section* ] [-r] --lookup *key*
17 | **ceph-conf** [-s *section* ] *key*
23 **ceph-conf** is a utility for getting information about a ceph
24 configuration file. As with most Ceph programs, you can specify which
25 Ceph configuration file to use with the ``-c`` flag.
31 **ceph-conf** performs one of the following actions:
33 .. option:: -L, --list-all-sections
35 list all sections in the configuration file.
37 .. option:: -l, --list-sections *prefix*
39 list the sections with the given *prefix*. For example, ``--list-sections mon``
40 would list all sections beginning with ``mon``.
42 .. option:: --lookup *key*
44 search and print the specified configuration setting. Note: ``--lookup`` is
45 the default action. If no other actions are given on the command line, we will
46 default to doing a lookup.
48 .. option:: -h, --help
50 print a summary of usage.
56 .. option:: -c *conffile*
58 the Ceph configuration file.
60 .. option:: --filter-key *key*
62 filter section list to only include sections with given *key* defined.
64 .. option:: --filter-key-value *key* ``=`` *value*
66 filter section list to only include sections with given *key*/*value* pair.
68 .. option:: --name *type.id*
70 the Ceph name in which the sections are searched (default 'client.admin').
71 For example, if we specify ``--name osd.0``, the following sections will be
72 searched: [osd.0], [osd], [global]
74 .. option:: -r, --resolve-search
76 search for the first file that exists and can be opened in the resulted
77 comma delimited search list.
79 .. option:: -s, --section
81 additional sections to search. These additional sections will be searched
82 before the sections that would normally be searched. As always, the first
83 matching entry we find will be returned.
89 To find out what value osd 0 will use for the "osd data" option::
91 ceph-conf -c foo.conf --name osd.0 --lookup "osd data"
93 To find out what value will mds a use for the "log file" option::
95 ceph-conf -c foo.conf --name mds.a "log file"
97 To list all sections that begin with "osd"::
99 ceph-conf -c foo.conf -l osd
101 To list all sections::
103 ceph-conf -c foo.conf -L
105 To print the path of the "keyring" used by "client.0"::
107 ceph-conf --name client.0 -r -l keyring
113 ``/etc/ceph/$cluster.conf``, ``~/.ceph/$cluster.conf``, ``$cluster.conf``
115 the Ceph configuration files to use if not specified.
121 **ceph-conf** is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer
122 to the Ceph documentation at http://ceph.com/docs for more
129 :doc:`ceph <ceph>`\(8),