X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Fovsdb-tool.1.in;h=3c2a37c294d1f50f965d653b89cfd4c3b0fc0dbe;hb=fb115f912bf9e608e32606ea0a5bae6e11c9fbfa;hp=567131039f929a89b67cf724eca5488e045b526f;hpb=58fda1dab104041fc693032475ec4662c1a52849;p=openvswitch diff --git a/ovsdb/ovsdb-tool.1.in b/ovsdb/ovsdb-tool.1.in index 56713103..3c2a37c2 100644 --- a/ovsdb/ovsdb-tool.1.in +++ b/ovsdb/ovsdb-tool.1.in @@ -14,10 +14,27 @@ ovsdb\-tool \- Open vSwitch database management utility .SH SYNOPSIS \fBovsdb\-tool \fR[\fIoptions\fR] \fBcreate\fI db schema\fR .br +\fBovsdb\-tool \fR[\fIoptions\fR] \fBcompact \fIdb \fR[\fItarget\fR] +.br +\fBovsdb\-tool \fR[\fIoptions\fR] \fBconvert\fI db schema +\fR[\fItarget\fR] +.br +\fBovsdb\-tool \fR[\fIoptions\fR] \fBneeds\-conversion\fI db schema\fR +.br +\fBovsdb\-tool \fR[\fIoptions\fR] \fBdb\-version\fI db\fR +.br +\fBovsdb\-tool \fR[\fIoptions\fR] \fBschema\-version\fI schema\fR +.br +\fBovsdb\-tool \fR[\fIoptions\fR] \fBdb\-cksum\fI db\fR +.br +\fBovsdb\-tool \fR[\fIoptions\fR] \fBschema\-cksum\fI schema\fR +.br \fBovsdb\-tool \fR[\fIoptions\fR] \fBquery\fI db transaction\fR .br \fBovsdb\-tool \fR[\fIoptions\fR] \fBtransact\fI db transaction\fR .br +\fBovsdb\-tool \fR[\fIoptions\fR] [\fB\-m\fR | \fB\-\-more\fR]... \fBshow\-log\fI db\fR +.br \fBovsdb\-tool help\fR .so lib/vlog-syn.man .so lib/common-syn.man @@ -38,6 +55,57 @@ existing \fIdb\fR. \fIschema\fR must contain an OVSDB schema in JSON format. Refer to the OVSDB specification for details. . +.IP "\fBcompact\fI db \fR[\fItarget\fR]" +Reads \fIdb\fR and writes a compacted version. If \fItarget\fR is +specified, the compacted version is written as a new file named +\fItarget\fR, which must not already exist. If \fItarget\fR is +omitted, then the compacted version of the database replaces \fIdb\fR +in-place. +. +.IP "\fBconvert\fI db schema \fR[\fItarget\fR]" +Reads \fIdb\fR, translating it into to the schema specified in +\fIschema\fR, and writes out the new interpretation. If \fItarget\fR +is specified, the translated version is written as a new file named +\fItarget\fR, which must not already exist. If \fItarget\fR is +omitted, then the translated version of the database replaces \fIdb\fR +in-place. +.IP +This command can do simple ``upgrades'' and ``downgrades'' on a +database's schema. The data in \fIdb\fR must be valid when +interpreted under \fIschema\fR, with only one exception: data in +\fIdb\fR for tables and columns that do not exist in \fIschema\fR are +ignored. Columns that exist in \fIschema\fR but not in \fIdb\fR are +set to their default values. All of \fIschema\fR's constraints apply +in full. +. +.IP "\fBneeds\-conversion\fI db schema\fR" +Reads the schema embedded in \fIdb\fR and the standalone schema in +\fIschema\fR and compares them. If the schemas are the same, prints +\fBno\fR on stdout; if they differ, print \fByes\fR. +. +.IP "\fBdb\-version\fI db\fR" +.IQ "\fBschema\-version\fI schema\fR" +Prints the version number in the schema embedded within the database +\fIdb\fR or in the standalone schema \fIschema\fR on stdout. A schema +version number has the form \fIx\fB.\fIy\fB.\fIz\fR. See +\fBovs\-vswitchd.conf.db\fR(5) for details. +.IP +Schema version numbers and Open vSwitch version numbers are +independent. +.IP +If \fIschema\fR or \fIdb\fR was created before schema versioning was +introduced, then it will not have a version number and this command +will print a blank line. +. +.IP "\fBdb\-cksum\fI db\fR" +.IQ "\fBschema\-cksum\fI schema\fR" +Prints the checksum in the schema embedded within the database +\fIdb\fR or of the standalone schema \fIschema\fR on stdout. +.IP +If \fIschema\fR or \fIdb\fR was created before schema checksums were +introduced, then it will not have a checksum and this command +will print a blank line. +. .IP "\fBquery\fI db transaction\fR" Opens \fIdb\fR, executes \fItransaction\fR on it, and prints the results. The \fItransaction\fR must be a JSON array in the format of @@ -46,11 +114,11 @@ described in the OVSDB specification. .IP The \fIdb\fR is opened for read-only access, so this command may safely run concurrently with other database activity, including -\fBovsdb-server\fR and other database writers. The \fItransaction\fR +\fBovsdb\-server\fR and other database writers. The \fItransaction\fR may specify database modifications, but these will have no effect on \fIdb\fR. . -.IQ "\fBtransact\fI db transaction\fR" +.IP "\fBtransact\fI db transaction\fR" Opens \fIdb\fR, executes \fItransaction\fR on it, prints the results, and commits any changes to \fIdb\fR. The \fItransaction\fR must be a JSON array in the format of the \fBparams\fR array for the JSON-RPC @@ -58,9 +126,21 @@ JSON array in the format of the \fBparams\fR array for the JSON-RPC .IP The \fIdb\fR is opened and locked for read/write access, so this command will fail if the database is opened for writing by any other -process, including \fBovsdb-server\fR(1). Use \fBovsdb\-client\fR(1), +process, including \fBovsdb\-server\fR(1). Use \fBovsdb\-client\fR(1), instead, to write to a database that is served by -\fBovsdb-server\fR(1). +\fBovsdb\-server\fR(1). +. +.IP "\fBshow\-log\fI db\fR" +Prints a summary of the records in \fBdb\fR's log, including the time +and date at which each database change occurred and any associated +comment. This may be useful for debugging. +.PP +To increase the verbosity of output, add \fB\-m\fR (or \fB\-\-more\fR) +one or more times to the command line. With one \fB\-m\fR, +\fBshow\-log\fR prints a summary of the records added, deleted, or +modified by each transaction. With two \fB\-m\fRs, \fBshow\-log\fR +also prints the values of the columns modified by each change to a +record. . .SH OPTIONS .SS "Logging Options"