Setting tag sliver-openvswitch-2.2.90-1
[sliver-openvswitch.git] / ovsdb / ovsdb-client.1.in
1 .\" -*- nroff -*-
2 .de IQ
3 .  br
4 .  ns
5 .  IP "\\$1"
6 ..
7 .\" -*- nroff -*-
8 .TH ovsdb\-client 1 "@VERSION@" "Open vSwitch" "Open vSwitch Manual"
9 .\" This program's name:
10 .ds PN ovsdb\-client
11 .
12 .SH NAME
13 ovsdb\-client \- command-line interface to \fBovsdb-server\fR(1)
14 .
15 .SH SYNOPSIS
16 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist\-dbs \fR[\fIserver\fR]
17 .br
18 \fBovsdb\-client \fR[\fIoptions\fR] \fBget\-schema \fR[\fIserver\fR] \fR[\fIdatabase\fR]
19 .br
20 \fBovsdb\-client \fR[\fIoptions\fR] \fBget\-schema\-version\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR]
21 .br
22 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist\-tables\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR]
23 .br
24 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist\-columns\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR] [\fItable\fR]
25 .br
26 \fBovsdb\-client \fR[\fIoptions\fR] \fBtransact\fI \fR[\fIserver\fR] \fItransaction\fR
27 .br
28 \fBovsdb\-client \fR[\fIoptions\fR] \fBdump\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR]\fR
29 .br
30 \fBovsdb\-client \fR[\fIoptions\fR] \fBmonitor\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR] \fItable\fR
31 [\fIcolumn\fR[\fB,\fIcolumn\fR]...]...
32 .br
33 \fBovsdb\-client \fR[\fIoptions\fR] \fBmonitor\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR] \fBALL\fR
34 .br
35 \fBovsdb\-client help\fR
36 .IP "Output formatting options:"
37 [\fB\-\-format=\fIformat\fR]
38 [\fB\-\-data=\fIformat\fR]
39 [\fB\-\-no-heading\fR]
40 [\fB\-\-pretty\fR]
41 [\fB\-\-bare\fR]
42 [\fB\-\-no\-heading\fR]
43 [\fB\-\-timestamp\fR]
44 .so lib/daemon-syn.man
45 .so lib/vlog-syn.man
46 .so lib/ssl-syn.man
47 .so lib/ssl-bootstrap-syn.man
48 .so lib/common-syn.man
49 .
50 .SH DESCRIPTION
51 The \fBovsdb\-client\fR program is a command-line client for
52 interacting with a running \fBovsdb\-server\fR process.
53 Each command connects to an OVSDB server, which is
54 \fBunix:@RUNDIR@/db.sock\fR by default, or may be specified as
55 \fIserver\fR in one of the following forms:
56 .RS
57 .so ovsdb/remote-active.man
58 .so ovsdb/remote-passive.man
59 .RE
60 .PP
61 The default \fIdatabase\fR is \fBOpen_vSwitch\fR.
62 .
63 .SS "Commands"
64 The following commands are implemented:
65 .IP "\fBlist\-dbs \fR[\fIserver\fR]"
66 Connects to \fIserver\fR, retrieves the list of known databases, and
67 prints them one per line.  These database names are the ones that may
68 be used for \fIdatabase\fR in the following commands.
69 .
70 .IP "\fBget\-schema \fR[\fIserver\fR] \fR[\fIdatabase\fR]"
71 Connects to \fIserver\fR, retrieves the schema for \fIdatabase\fR, and
72 prints it in JSON format.
73 .
74 .IP "\fBget\-schema\-version\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR]"
75 Connects to \fIserver\fR, retrieves the schema for \fIdatabase\fR, and
76 prints its version number on stdout.  A schema version number has the form
77 \fIx\fB.\fIy\fB.\fIz\fR.  See \fBovs\-vswitchd.conf.db\fR(5) for
78 details.
79 .IP
80 Schema version numbers and Open vSwitch version numbers are
81 independent.
82 .IP
83 If \fIdatabase\fR was created before schema versioning was introduced,
84 then it will not have a version number and this command will print a
85 blank line.
86 .
87 .IP "\fBlist\-tables\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR]"
88 Connects to \fIserver\fR, retrieves the schema for \fIdatabase\fR, and
89 prints a table listing the name of each table
90 within the database.
91 .
92 .IP "\fBlist\-columns\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR] \fItable\fR"
93 Connects to \fIserver\fR, retrieves the schema for \fIdatabase\fR, and
94 prints a table listing the name and type of each
95 column.  If \fItable\fR is specified, only columns in that table are
96 listed; otherwise, the tables include columns in all tables.
97 .
98 .IP "\fBtransact\fI \fR[\fIserver\fR] \fItransaction\fR"
99 Connects to \fIserver\fR, sends it the specified \fItransaction\fR,
100 which must be a JSON array containing one or more valid OVSDB
101 operations, and prints the received reply on stdout.
102 .
103 .IP "\fBdump\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR]\fR"
104 Connects to \fIserver\fR, retrieves all of the data in \fIdatabase\fR,
105 and prints it on stdout as a series of tables.
106 .
107 .IP "\fBmonitor\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR] \fItable\fR [\fIcolumn\fR[\fB,\fIcolumn\fR]...]..."
108 Connects to \fIserver\fR and monitors the contents of \fItable\fR in
109 \fIdatabase\fR.  By default, the initial contents of \fItable\fR are
110 printed, followed by each change as it occurs.  If at least one
111 \fIcolumn\fR is specified, only those columns are monitored.  The
112 following \fIcolumn\fR names have special meanings:
113 .RS
114 .IP "\fB!initial\fR"
115 Do not print the initial contents of the specified columns.
116 .IP "\fB!insert\fR"
117 Do not print newly inserted rows.
118 .IP "\fB!delete\fR"
119 Do not print deleted rows.
120 .IP "\fB!modify\fR"
121 Do not print modifications to existing rows.
122 .RE
123 .IP
124 Multiple [\fIcolumn\fR[\fB,\fIcolumn\fR]...] groups may be specified
125 as separate arguments, e.g. to apply different reporting parameters to
126 each group.  Whether multiple groups or only a single group is
127 specified, any given column may only be mentioned once on the command
128 line.
129 .IP
130 If \fB\-\-detach\fR is used with \fBmonitor\fR, then \fBovsdb\-client\fR
131 detaches after it has successfully received and printed the initial
132 contents of \fItable\fR.
133 .
134 .IP "\fBmonitor\fI \fR[\fIserver\fR] \fR[\fIdatabase\fR] \fBALL\fR"
135 Connects to \fIserver\fR and monitors the contents of all tables in
136 \fIdatabase\fR.  Prints initial values and all kinds of changes to all
137 columns in the database.  The \fB\-\-detach\fR option causes
138 \fBovsdb\-client\fR to detach after it successfully receives and
139 prints the initial database contents.
140 .
141 .SH OPTIONS
142 .SS "Output Formatting Options"
143 Much of the output from \fBovsdb\-client\fR is in the form of tables.
144 The following options controlling output formatting:
145 .
146 .ds TD (default)
147 .so lib/table.man
148 .
149 .IP "\fB\-\-timestamp\fR"
150 For the \fBmonitor\fR command, adds a timestamp to each table
151 update.  Most output formats add the timestamp on a line of its own
152 just above the table.  The JSON output format puts the timestamp in a
153 member of the top-level JSON object named \fBtime\fR.
154 .
155 .SS "Daemon Options"
156 The daemon options apply only to the \fBmonitor\fR command.  With any
157 other command, they have no effect.
158 .ds DD
159 .so lib/daemon.man
160 .SS "Logging Options"
161 .so lib/vlog.man
162 .SS "Public Key Infrastructure Options"
163 .so lib/ssl.man
164 .so lib/ssl-bootstrap.man
165 .SS "Other Options"
166 .so lib/common.man
167 .SH "SEE ALSO"
168 .
169 \fBovsdb\-server\fR(1),
170 \fBovsdb\-client\fR(1),
171 and the OVSDB specification.