8 .TH ovsdb\-client 1 "November 2009" "Open vSwitch" "Open vSwitch Manual"
9 .\" This program's name:
11 .\" SSL peer program's name:
15 ovsdb\-client \- command-line interface to \fBovsdb-server\fR(1)
18 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist\-dbs\fI server\fR
20 \fBovsdb\-client \fR[\fIoptions\fR] \fBget\-schema\fI server database\fR
22 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist\-tables\fI server database\fR
24 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist\-columns\fI server database \fR[\fItable\fR]
26 \fBovsdb\-client \fR[\fIoptions\fR] \fBtransact\fI server transaction\fR
28 \fBovsdb\-client \fR[\fIoptions\fR] \fBdump\fI server database\fR
30 \fBovsdb\-client \fR[\fIoptions\fR] \fBmonitor\fI server database table\fR
31 [\fIcolumn\fR[\fB,\fIcolumn\fR]...]...
33 \fBovsdb\-client help\fR
34 .IP "Output formatting options:"
35 [\fB\-\-format=\fIformat\fR]
36 [\fB\-\-no\-heading\fR]
37 .so lib/daemon-syn.man
40 .so lib/ssl-bootstrap-syn.man
41 .so lib/common-syn.man
44 The \fBovsdb\-client\fR program is a command-line client for
45 interacting with a running \fBovsdb\-server\fR process. For each
46 command, the \fIserver\fR to connect to must be specified in one of
49 .so ovsdb/remote-active.man
50 .so ovsdb/remote-passive.man
54 The following commands are implemented:
55 .IP "\fBlist\-dbs\fI server\fR"
56 Connects to \fIserver\fR, retrieves the list of known databases, and
57 prints them one per line. These database names are the ones that may
58 be used for \fIdatabase\fR in the following commands.
60 .IP "\fBget\-schema\fI server database\fR"
61 Connects to \fIserver\fR, retrieves the schema for \fIdatabase\fR, and
62 prints it in JSON format.
64 .IP "\fBlist\-tables\fI server database\fR"
65 Connects to \fIserver\fR, retrieves the schema for \fIdatabase\fR, and
66 prints a table listing the name of each table
69 .IP "\fBlist\-columns\fI server database \fR[\fItable\fR]"
70 Connects to \fIserver\fR, retrieves the schema for \fIdatabase\fR, and
71 prints a table listing the name and type of each
72 column. If \fItable\fR is specified, only columns in that table are
73 listed; otherwise, the tables include columns in all tables.
75 .IP "\fBtransact\fI server transaction\fR"
76 Connects to \fIserver\fR, sends it the specified \fItransaction\fR,
77 which must be a JSON array containing one or more valid OVSDB
78 operations, and prints the received reply on stdout.
80 .IP "\fBdump\fI server database\fR"
81 Connects to \fIserver\fR, retrieves all of the data in \fIdatabase\fR,
82 and prints it on stdout as a series of tables.
84 .IP "\fBmonitor\fI server database table\fR [\fIcolumn\fR[\fB,\fIcolumn\fR]...]..."
85 Connects to \fIserver\fR and monitors the contents of \fItable\fR in
86 \fIdatabase\fR. By default, the initial contents of \fItable\fR are
87 printed, followed by each change as it occurs. If at least one
88 \fIcolumn\fR is specified, only those columns are monitored. The
89 following \fIcolumn\fR names have special meanings:
92 Do not print the initial contents of the specified columns.
94 Do not print newly inserted rows.
96 Do not print deleted rows.
98 Do not print modifications to existing rows.
101 Multiple [\fIcolumn\fR[\fB,\fIcolumn\fR]...] groups may be specified
102 as separate arguments, e.g. to apply different reporting parameters to
103 each group. Whether multiple groups or only a single group is
104 specified, any given column may only be mentioned once on the command
107 If \fB\-\-detach\fR is used with \fBmonitor\fR, then \fBovsdb\-client\fR
108 detaches after it has successfully received and printed the initial
109 contents of \fItable\fR.
111 .SS "Output Formatting Options"
112 Much of the output from \fBovsdb\-client\fR is in the form of tables.
113 The following options controlling output formatting:
115 .IP "\fB\-f \fIformat\fR"
116 .IQ "\fB\-\-format=\fIformat\fR"
117 Sets the type of table formatting. The following types of
118 \fIformat\fR are available:
120 .IP "\fBtable\fR (default)"
121 Text-based tables with aligned columns.
125 Comma-separated values as defined in RFC 4180.
128 .IP "\fB\-d \fIformat\fR"
129 .IP "\fB\-\-data=\fIformat\fR"
130 Sets the formatting for cells within output tables. The following
131 types of \fIformat\fR are available:
133 .IP "\fBstring\fR (default)"
134 The simple format described in \fBovs\-vsctl\fR(8).
139 .IP "\fB\-\-no\-heading\fR"
140 This option suppresses the heading row that otherwise appears in the
141 first row of table output.
143 .IP "\fB\-\-pretty\fR"
144 By default, JSON in output is printed as compactly as possible. This
145 option causes JSON in output to be printed in a more readable
146 fashion. Members of objects and elements of arrays are printed one
147 per line, with indentation.
149 This option does not affect JSON in tables, which is always printed
153 The daemon options apply only to the \fBmonitor\fR command. With any
154 other command, they have no effect.
156 .SS "Logging Options"
158 .SS "Public Key Infrastructure Options"
160 .so lib/ssl-bootstrap.man
165 \fBovsdb\-server\fR(1),
166 \fBovsdb\-client\fR(1),
167 and the OVSDB specification.