8 .TH ovsdb\-client 1 "November 2009" "Open vSwitch" "Open vSwitch Manual"
12 ovsdb\-client \- command-line interface to \fBovsdb-server\fR(1)
15 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist\-dbs\fI server\fR
17 \fBovsdb\-client \fR[\fIoptions\fR] \fBget-schema\fI server database\fR
19 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist-tables\fI server database\fR
21 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist-columns\fI server database \fR[\fItable\fR]
23 \fBovsdb\-client \fR[\fIoptions\fR] \fBtransact\fI server transaction\fR
25 \fBovsdb\-client \fR[\fIoptions\fR] \fBdump\fI server database\fR
27 \fBovsdb\-client \fR[\fIoptions\fR] \fBmonitor\fI server database table\fR
28 [\fIcolumn\fR[\fB,\fIcolumn\fR]...]
29 [\fIselect\fR[\fB,\fIselect\fR]...]
31 \fBovsdb\-client help\fR
32 .IP "Output formatting options:"
33 [\fB--format=\fIformat\fR]
35 .so lib/daemon-syn.man
38 .so lib/ssl-bootstrap-syn.man
39 .so lib/common-syn.man
42 The \fBovsdb\-client\fR program is a command-line client for
43 interacting with a running \fBovsdb\-server\fR process. For each
44 command, the \fIserver\fR to connect to must be specified in one of
47 .so ovsdb/remote-active.man
48 .so ovsdb/remote-passive.man
52 The following commands are implemented:
53 .IP "\fBlist-dbs\fI server\fR"
54 Connects to \fIserver\fR, retrieves the list of known databases, and
55 prints them one per line. These database names are the ones that may
56 be used for \fIdatabase\fR in the following commands.
58 .IP "\fBget-schema\fI server database\fR"
59 Connects to \fIserver\fR, retrieves the schema for \fIdatabase\fR, and
60 prints it in JSON format.
62 .IP "\fBlist-tables\fI server database\fR"
63 Connects to \fIserver\fR, retrieves the schema for \fIdatabase\fR, and
64 prints a table listing the name of each table
67 .IP "\fBlist-columns\fI server database \fR[\fItable\fR]"
68 Connects to \fIserver\fR, retrieves the schema for \fIdatabase\fR, and
69 prints a table listing the name and type of each
70 column. If \fItable\fR is specified, only columns in that table are
71 listed; otherwise, the tables include columns in all tables.
73 .IP "\fBtransact\fI server transaction\fR"
74 Connects to \fIserver\fR, sends it the specified \fItransaction\fR,
75 which must be a JSON array containing one or more valid OVSDB
76 operations, and prints the received reply on stdout.
78 .IP "\fBdump\fI server database\fR"
79 Connects to \fIserver\fR, retrieves all of the data in \fIdatabase\fR,
80 and prints it on stdout as a series of tables.
82 .IP "\fBmonitor\fI server database table\fR [\fIcolumn\fR[\fB,\fIcolumn\fR]...] [\fIselect\fR[\fB,\fIselect\fR]...]"
83 Connects to \fIserver\fR and monitors the contents of \fItable\fR in
84 \fIdatabase\fR. By default, the initial contents of \fItable\fR are
85 printed, followed by each change as it occurs. If at least one
86 \fIcolumn\fR is specified, only those columns are monitored. If at
87 least one \fIselect\fR is specified, they are interpreted as follows:
90 Print the initial contents of the specified columns.
92 Print newly inserted rows.
96 Print old and new values of modified rows.
99 If \fB--detach\fR is used with \fBmonitor\fR, then \fBovsdb\-client\fR
100 detaches after it has successfully received and printed the initial
101 contents of \fItable\fR.
103 .SS "Output Formatting Options"
104 Much of the output from \fBovsdb\-client\fR is in the form of tables.
105 The following options controlling output formatting:
107 .IP "\fB-f \fIformat\fR"
108 .IQ "\fB--format=\fIformat\fR"
109 Sets the type of table formatting. The following types of
110 \fIformat\fR are available:
112 .IP "\fBtable\fR (default)"
113 Text-based tables with aligned columns.
117 Comma-separated values as defined in RFC 4180.
120 .IP "\fB-d \fIformat\fR"
121 .IP "\fB--data=\fIformat\fR"
122 Sets the formatting for cells within output tables. The following
123 types of \fIformat\fR are available:
125 .IP "\fBstring\fR (default)"
126 The simple format described in \fBovs-vsctl\fR(8).
131 .IP "\fB--no-heading\fR"
132 This option suppresses the heading row that otherwise appears in the
133 first row of table output.
136 By default, JSON in output is printed as compactly as possible. This
137 option causes JSON in output to be printed in a more readable
138 fashion. Members of objects and elements of arrays are printed one
139 per line, with indentation.
141 This option does not affect JSON in tables, which is always printed
145 The daemon options apply only to the \fBmonitor\fR command. With any
146 other command, they have no effect.
148 .SS "Logging Options"
151 .so lib/ssl-bootstrap.man
156 \fBovsdb\-server\fR(1),
157 \fBovsdb\-client\fR(1),
158 and the OVSDB specification.