ovsdb-client: Support listening for incoming connections too.
[openvswitch] / 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 "November 2009" "Open vSwitch" "Open vSwitch Manual"
9 .ds PN ovsdb\-client
10 .
11 .SH NAME
12 ovsdb\-client \- command-line interface to \fBovsdb-server\fR(1)
13 .
14 .SH SYNOPSIS
15 \fBovsdb\-client \fR[\fIoptions\fR] \fBget-schema\fI server\fR
16 .br
17 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist-tables\fI server\fR
18 .br
19 \fBovsdb\-client \fR[\fIoptions\fR] \fBlist-columns\fI server \fR[\fItable\fR]
20 .br
21 \fBovsdb\-client help\fR
22 .IP "Output formatting options:"
23 [\fB--format=\fIformat\fR]
24 [\fB--wide\fR]
25 [\fB--no-heading\fR]
26 .so lib/vlog-syn.man
27 .so lib/common-syn.man
28 .
29 .SH DESCRIPTION
30 The \fBovsdb\-client\fR program is a command-line client for
31 interacting with a running \fBovsdb\-server\fR process.  For each
32 command, the \fIserver\fR to connect to must be specified in one of
33 the following forms:
34 .IP "\fBtcp:\fIip\fB:\fIport\fR"
35 Connect to the given TCP \fIport\fR on \fIip\fR.
36 .IP "\fBunix:\fIfile\fR"
37 Connect to the Unix domain server socket named \fIfile\fR.
38 .IP "\fBptcp:\fIport\fR[\fB:\fIip\fR]"
39 Listen on the given TCP \fIport\fR for a connection.  By default,
40 \fB\*(PN\fR listens for connections to any local IP address, but
41 \fIip\fR may be specified to listen only for connections to the given
42 \fIip\fR.
43 .IP "\fBpunix:\fIfile\fR"
44 Listen on the Unix domain server socket named \fIfile\fR for a
45 connection.
46 .
47 .SS "Commands"
48 The following commands are implemented:
49 .IP "\fBget-schema\fI server\fR"
50 Connects to \fIserver\fR, retrieves the database schema, and prints it
51 in JSON format.
52 .
53 .IP "\fBlist-tables\fI server\fR"
54 Connects to \fIserver\fR, retrieves the database schema, and prints
55 a table listing the names and comments (if any) on each table within
56 the database.
57 .
58 .IP "\fBlist-columns\fI server \fR[\fItable\fR]"
59 Connects to \fIserver\fR, retrieves the database schema, and prints
60 a table listing the names, type, and comment (if any) on each column.  If
61 \fItable\fR is specified, only columns in that table are listed;
62 otherwise, the tables include columns in all tables.
63 .SH OPTIONS
64 .SS "Output Formatting Options"
65 Much of the output from \fBovsdb\-client\fR is in the form of tables.
66 The following options controlling output formatting:
67 .
68 .IP "\fB-f \fIformat\fR"
69 .IQ "\fB--format=\fIformat\fR"
70 Sets the basic type of output formatting.  The following types of
71 \fIformat\fR are available:
72 .RS
73 .IP "\fBtable\fR (default)"
74 Text-based tables with aligned columns.
75 .IP "\fBhtml\fR"
76 HTML tables.
77 .IP "\fBcvs\fR"
78 Comma-separated values as defined in RFC 4180.
79 .RE
80 .
81 .IP "\fB--wide\fR"
82 In \fBtable\fR output (the default), when standard output is a
83 terminal device, by default lines are truncated at a width of 79
84 characters.  Specifying this option prevents line truncation.
85 .
86 .IP "\fB--no-heading\fR"
87 This option suppresses the heading row that otherwise appears in the
88 first row of table output.
89 .
90 .SS "Logging Options"
91 .so lib/vlog.man
92 .SS "Other Options"
93 .so lib/common.man
94 .SH "SEE ALSO"
95 .
96 \fBovsdb\-server\fR(1),
97 \fBovsdb\-client\fR(1),
98 and the OVSDB specification.