Always check return value of strftime().
[sliver-openvswitch.git] / ovsdb / ovsdb-server.1.in
1 .\" -*- nroff -*-
2 .de IQ
3 .  br
4 .  ns
5 .  IP "\\$1"
6 ..
7 .TH ovsdb\-server 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
8 .\" This program's name:
9 .ds PN ovsdb\-server
10 .\" SSL peer program's name:
11 .ds SN ovsdb\-client
12 .
13 .SH NAME
14 ovsdb\-server \- Open vSwitch database server
15 .
16 .SH SYNOPSIS
17 \fBovsdb\-server\fR
18 [\fIdatabase\fR]\&...
19 [\fB\-\-remote=\fIremote\fR]\&...
20 [\fB\-\-run=\fIcommand\fR]
21 .so lib/daemon-syn.man
22 .so lib/vlog-syn.man
23 .so lib/ssl-syn.man
24 .so lib/ssl-bootstrap-syn.man
25 .so lib/unixctl-syn.man
26 .so lib/common-syn.man
27 .
28 .SH DESCRIPTION
29 The \fBovsdb\-server\fR program provides RPC interfaces to one or more
30 Open vSwitch databases (OVSDBs).  It supports JSON-RPC client
31 connections over active or passive TCP/IP or Unix domain sockets.
32 .PP
33 Each OVSDB file may be specified on the command line as \fIdatabase\fR.
34 If none is specified, the default is \fB@DBDIR@/conf.db\fR.  The database
35 files must already have been created and initialized using, for
36 example, \fBovsdb\-tool create\fR.
37 .
38 .SH OPTIONS
39 .
40 .IP "\fB\-\-remote=\fIremote\fR"
41 Adds \fIremote\fR as a connection method used by \fBovsdb\-server\fR.
42 \fIremote\fR must take one of the following forms:
43 .
44 .RS
45 .so ovsdb/remote-passive.man
46 .so ovsdb/remote-active.man
47 .
48 .IP "\fBdb:\fR[\fIdb\fB,\fR]\fItable\fB,\fIcolumn\fR"
49 Reads additional connection methods from \fIcolumn\fR in all of the
50 rows in \fItable\fR within \fIdb\fR.  (If \fBovsdb\-server\fR is
51 providing access to only one database, then \fIdb\fR is optional.)  As
52 the contents of \fIcolumn\fR changes, \fBovsdb\-server\fR also adds
53 and drops connection methods accordingly.
54 .IP
55 If \fIcolumn\fR's type is string or set of strings, then the
56 connection methods are taken directly from the column.  The connection
57 methods in the column must have one of the forms described above.
58 .IP
59 If \fIcolumn\fR's type is UUID or set of UUIDs and references a table,
60 then each UUID is looked up in the referenced table to obtain a row.
61 The following columns in the row, if present and of the correct type,
62 configure a connection method.  Any additional columns are ignored.
63 .RS
64 .IP "\fBtarget\fR (string)"
65 Connection method, in one of the forms described above.  This column
66 is mandatory: if it is missing or empty then no connection method can
67 be configured.
68 .IP "\fBmax_backoff\fR (integer)"
69 Maximum number of milliseconds to wait between connection attempts.
70 .IP "\fBinactivity_probe\fR (integer)"
71 Maximum number of milliseconds of idle time on connection to
72 client before sending an inactivity probe message.
73 .RE
74 .IP
75 It is an error for \fIcolumn\fR to have another type.
76 .RE
77 .
78 .IP "\fB\-\-run=\fIcommand\fR]"
79 Ordinarily \fBovsdb\-server\fR runs forever, or until it is told to
80 exit (see \fBRUNTIME MANAGEMENT COMMANDS\fR below).  With this option,
81 \fBovsdb\-server\fR instead starts a shell subprocess running
82 \fIcommand\fR.  When the subprocess terminates, \fBovsdb\-server\fR
83 also exits gracefully.  If the subprocess exits normally with exit
84 code 0, then \fBovsdb\-server\fR exits with exit code 0 also;
85 otherwise, it exits with exit code 1.
86 .IP
87 This option can be useful where a database server is needed only to
88 run a single command, e.g.:
89 .B "ovsdb\-server \-\-remote=punix:socket \-\-run='ovsdb\-client dump unix:socket Open_vSwitch'"
90 .SS "Daemon Options"
91 .ds DD \
92 \fBovsdb\-server\fR detaches only after it starts listening on all \
93 configured remotes.
94 .so lib/daemon.man
95 .SS "Logging Options"
96 .so lib/vlog.man
97 .SS "Public Key Infrastructure Options"
98 The options described below for configuring the SSL public key
99 infrastructure accept a special syntax for obtaining their
100 configuration from the database.  If any of these options is given
101 \fBdb:\fR[\fIdb\fB,\fR]\fItable\fB,\fIcolumn\fR as its argument, then the
102 actual file name is read from the specified \fIcolumn\fR in \fItable\fR
103 within the \fBovsdb\-server\fR database.  The \fIcolumn\fR must have type
104 string or set of strings.  The first nonempty string in the table is taken
105 as the file name.  (This means that ordinarily there should be at most
106 one row in \fItable\fR.)
107 .so lib/ssl.man
108 .so lib/ssl-bootstrap.man
109 .SS "Other Options"
110 .so lib/unixctl.man
111 .so lib/common.man
112 .SH "RUNTIME MANAGEMENT COMMANDS"
113 \fBovs\-appctl\fR(8) can send commands to a running
114 \fBovsdb\-server\fR process.  The currently supported commands are
115 described below.
116 .SS "OVSDB\-SERVER COMMANDS"
117 These commands are specific to \fBovsdb\-server\fR.
118 .IP "\fBexit\fR"
119 Causes \fBovsdb\-server\fR to gracefully terminate.
120 .IP "\fBovsdb\-server/compact\fR [\fIdb\fR]\&..."
121 Compacts each database \fIdb\fR in-place.  If no \fIdb\fR is
122 specified, compacts every database in-place.  Databases are also
123 automatically compacted occasionally.
124 .
125 .IP "\fBovsdb\-server/reconnect\fR"
126 Makes \fBovsdb\-server\fR drop all of the JSON\-RPC
127 connections to database clients and reconnect.
128 .IP
129 This command might be useful for debugging issues with database
130 clients.
131 .
132 .IP "\fBovsdb\-server/add\-remote \fIremote\fR"
133 Adds a remote, as if \fB\-\-remote=\fIremote\fR had been specified on
134 the \fBovsdb\-server\fR command line.  (If \fIremote\fR is already a
135 remote, this command succeeds without changing the configuration.)
136 .
137 .IP "\fBovsdb\-server/remove\-remote \fIremote\fR"
138 Removes the specified \fIremote\fR from the configuration, failing
139 with an error if \fIremote\fR is not configured as a remote.  This
140 command only works with remotes that were named on \fB\-\-remote\fR or
141 \fBovsdb\-server/add\-remote\fR, that is, it will not remove remotes
142 added indirectly because they were read from the database by
143 configuring a \fBdb:\fR[\fIdb\fB,\fR]\fItable\fB,\fIcolumn\fR remote.
144 (You can remove a database source with \fBovsdb\-server/remove\-remote
145 \fBdb:\fR[\fIdb\fB,\fR]\fItable\fB,\fIcolumn\fR, but not individual
146 remotes found indirectly through the database.)
147 .
148 .IP "\fBovsdb\-server/list\-remotes"
149 Outputs a list of the currently configured remotes named on
150 \fB\-\-remote\fR or \fBovsdb\-server/add\-remote\fR, that is, it does
151 not list remotes added indirectly because they were read from the
152 database by configuring a
153 \fBdb:\fR[\fIdb\fB,\fR]\fItable\fB,\fIcolumn\fR remote.
154 .
155 .so lib/vlog-unixctl.man
156 .so lib/memory-unixctl.man
157 .so lib/coverage-unixctl.man
158 .so lib/stress-unixctl.man
159 .SH "SEE ALSO"
160 .
161 .BR ovsdb\-tool (1).