X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Fovsdb-tool.1.in;h=c2c2ce32d7452d9ca0cafb58ef004bc5e2953890;hb=f7cf2ff0b63dc76af9358282dcbe81e9433a94ae;hp=b96bdd738fa2423c0e0a2ee04ae8ae30b40d711e;hpb=722f63016f302da114e3afb145bd0c1af5aaeb8f;p=openvswitch diff --git a/ovsdb/ovsdb-tool.1.in b/ovsdb/ovsdb-tool.1.in index b96bdd73..c2c2ce32 100644 --- a/ovsdb/ovsdb-tool.1.in +++ b/ovsdb/ovsdb-tool.1.in @@ -18,7 +18,7 @@ ovsdb\-tool \- Open vSwitch database management utility .br \fBovsdb\-tool \fR[\fIoptions\fR] \fBtransact\fI db transaction\fR .br -\fBovsdb\-tool \fR[\fIoptions\fR] \fBshow\-log\fI db\fR +\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 @@ -40,6 +40,29 @@ 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 "\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 @@ -68,6 +91,13 @@ instead, to write to a database that is served by 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"