mirror of
https://github.com/ceph/ceph
synced 2024-12-12 22:46:21 +00:00
34 lines
1.1 KiB
Groff
34 lines
1.1 KiB
Groff
.TH CCONF 8
|
|
.SH NAME
|
|
cconf \- ceph conf file tool
|
|
.SH SYNOPSIS
|
|
.B cconf
|
|
\fB\-c \fIconffile\fR
|
|
( \fB\-l \fIprefix\fR | \fIkey\fR [ \fIdefault\fR ] \fB\-s \fIsection\fR [ \fB\-s \fIsection2\fP ... ] )
|
|
.SH DESCRIPTION
|
|
.B cconf
|
|
is a utility for extracting values from a "INI" style configuration files. It has
|
|
two basic modes of operation.
|
|
.PP
|
|
The first mode simply prints all section names that begin with \fIprefix\fP.
|
|
.PP
|
|
The second mode extracts an option value by searching through one or more \fIsection\fPs,
|
|
in the order specified on the command line. If the option does not exist in
|
|
\fIconffile\fP, an optional \fIdefault\fP value may be output instead.
|
|
.SH EXAMPLES
|
|
To extract the value of the "osd data" option from section \fI[osd0]\fP,
|
|
\fI[osd]\fP, or \fI[global]\fP, in that order of preference:
|
|
.IP
|
|
cconf -c foo.conf "osd data" -s osd0 -s osd -s global
|
|
.PP
|
|
To list all sections that begin with \fIosd\fP:
|
|
.IP
|
|
cconf -c foo.conf -l osd
|
|
.SH AVAILABILITY
|
|
.B cconf
|
|
is part of the Ceph distributed file system. Please refer to the Ceph wiki at
|
|
http://ceph.newdream.net/wiki for more information.
|
|
.SH SEE ALSO
|
|
.BR ceph (8),
|
|
.BR mkcephfs (8)
|