44. ns
55. IP " \\$1 "
66..
7- .TH ovs\- appctl 8 "April 2009" "Open vSwitch" "Open vSwitch Manual"
7+ .TH ovs\- appctl 8 "November 2009" "Open vSwitch" "Open vSwitch Manual"
88.ds PN ovs\- appctl
99
1010.SH NAME
1111ovs\- appctl \- utility for configuring running Open vSwitch daemons
1212
1313.SH SYNOPSIS
14- \fB ovs \- appctl \fR [\fB -h \fR | \fB --help \fR ] [\fI target \fR ...] [\fI action \fR ...]
15- .sp 1
16- The available \fI target \fR options are:
14+ \fB ovs \- appctl \fR [\fB --target= \fI target \fR | \fB -t \fR \fI target \fR ]
15+ \fI command \fR [\fI arg \fR ...]
1716.br
18- [\fB -t \fR \fI socket \fR | \fB --target= \fI socket \fR ]
19- .sp 1
20- The available \fI action \fR options are:
17+ \fB ovs \- appctl \fR --help
2118.br
22- [\fB -l \fR | \fB --list \fR ] [\fB -s \fR
23- \fI module \fR [\fB : \fI facility \fR [\fB : \fI level \fR ]] |
24- \fB --set= \fI module \fR [\fB : \fI facility \fR [\fB : \fI level \fR ]]]
25- [\fB -r \fR | \fB --reopen \fR ]
26- [\fB -e \fR | \fB --execute= \fI command \fR ]
27-
19+ \fB ovs \- appctl \fR --version
2820.SH DESCRIPTION
29- The \fB ovs \- appctl \fR program connects to one or more running
30- Open vSwitch daemons (such as \fB ovs \- vswitchd \fR (8)), as specified by the
31- user, and sends them commands to query or modify their behavior.
32- Its primary purpose is currently to adjust daemons' logging levels.
33-
34- \fB ovs \- appctl \fR applies one or more actions to each of one or more
35- target processes. Targets may be specified using:
36-
37- .IP " \fB -t \fI socket \fR "
38- .IQ " \fB --target= \fI socket \fR "
39- The specified \fI socket \fR must be the name of a Unix domain socket
40- for a \fB ovs \- appctl \fR -controllable process. If \fI socket \fR does not
41- begin with \fB / \fR , it is treated as relative to \fB @RUNDIR@ \fR .
42-
43- Each Open vSwitch daemon by default creates a socket named
44- \fB @RUNDIR@/ \fI program \fB .\fI pid \fB .ctl \fR , where \fI program \fR is
45- the program's name (such as \fB ovs \- vswitchd \fR ) and \fI pid \fR is the
46- daemon's PID.
47-
48- .PP
49- The available actions are:
50-
51- .IP " \fB -l \fR "
52- .IQ " \fB --list \fR "
53- Print the list of known logging modules and their current levels to
54- stdout.
55-
56- .IP " \fB -s \fR \fI module \fR [\fB : \fI facility \fR [\fB : \fI level \fR ]]"
57- .IQ " \fB --set= \fI module \fR [\fB : \fI facility \fR [\fB : \fI level \fR ]]"
58-
21+ Open vSwitch daemons accept certain commands at runtime to control
22+ their behavior and query their settings. Every daemon accepts the
23+ commands for querying and adjusting its logging settings documented
24+ under \fB LOGGING COMMANDS \fR below, and \fB ovs \- vswitchd \fR in
25+ particular accepts a number of additional commands documented in
26+ \fB ovs \- vswitchd \fR (8).
27+
28+ The \fB ovs \- appctl \fR program provides a simple way to invoke these
29+ commands. The command to be sent is specified on \fB ovs \- appctl \fR 's
30+ command line as non-option arguments. \fB ovs \- appctl \fR sends the
31+ command and prints the daemon's response on standard output.
32+
33+ In normal use only a single option is accepted:
34+
35+ .IP " \fB \- t \fI target \fR "
36+ .IQ " \fB \-\- target= \fI target \fR "
37+ Tells \fB ovs \- appctl \fR which daemon to contact.
38+ .IP
39+ If \fI target \fR begins with \fB / \fR it must name a Unix domain socket
40+ on which an Open vSwitch daemon is listening for control channel
41+ connections. By default, each daemon listens on a Unix domain socket
42+ named \fB @RUNDIR@/ \fI program \fB .\fI pid \fB .ctl \fR , where \fI program \fR
43+ is the program's name and \fI pid \fR is its process ID. For example,
44+ if \fB ovs-vswitchd \fR has PID 123, it would listen on
45+ \fB @RUNDIR@/ovs-vswitchd.123.ctl \fR .
46+ .IP
47+ Otherwise, \fB ovs \- appctl \fR looks for a pidfile, that is, a file
48+ whose contents are the process ID of a running process as a decimal
49+ number, named \fB @RUNDIR@/ \fI target \fB .pid \fR . (The \fB \-\- pidfile \fR
50+ option makes an Open vSwitch daemon create a pidfile.)
51+ \fB ovs \- appctl \fR reads the pidfile, then looks for a Unix socket
52+ named \fB @RUNDIR@/ \fI target \fB .\fI pid \fB .ctl \fR , where \fI pid \fR is
53+ replaced by the process ID read from the pidfile, and uses that file
54+ as if it had been specified directly as the target.
55+ .IP
56+ The default target is \fB ovs \- vswitchd \fR .
57+ .
58+ .SH LOGGING COMMANDS
59+ Every Open vSwitch daemon supports the following commands for
60+ examining and adjusting log levels.
61+ .
62+ .IP " \fB vlog/list \fR "
63+ Lists the known logging modules and their current levels.
64+ .
65+ .IP " \fB vlog/set \fR \fI module \fR [\fB : \fI facility \fR [\fB : \fI level \fR ]]"
5966Sets the logging level for \fI module \fR in \fI facility \fR to
6067\fI level \fR . The \fI module \fR may be any valid module name (as
6168displayed by the \fB --list \fR option) or the special name \fB ANY \fR to
@@ -67,10 +74,8 @@ logging levels for both facilities. If it is omitted,
6774\fB emer \fR , \fB err \fR , \fB warn \fR , \fB info \fR , or \fB dbg \fR , designating the
6875minimum severity of a message for it to be logged. If it is omitted,
6976\fI level \fR defaults to \fB dbg \fR .
70-
71- .IP " \fB -s PATTERN: \fI facility \fB : \fI pattern \fR "
72- .IQ " \fB --set=PATTERN: \fI facility \fB : \fI pattern \fR "
73-
77+ .
78+ .IP " \fB vlog/set PATTERN: \fI facility \fB : \fI pattern \fR "
7479Sets the log pattern for \fI facility \fR to \fI pattern \fR . Each time a
7580message is logged to \fI facility \fR , \fI pattern \fR determines the
7681message's formatting. Most characters in \fI pattern \fR are copied
@@ -140,27 +145,29 @@ width. (A field wider than \fIwidth\fR is not truncated to fit.)
140145The default pattern for console output is \fB %d{%b %d
141146%H:%M:%S}|%05N|%c|%p|%m \fR ; for syslog output, \fB %05N|%c|%p|%m \fR .
142147
143- .IP \fB -r \fR
144- .IQ \fB --reopen \fR
145- Causes the target application to close and reopen its log file. (This
148+ .IP " \fB vlog/reopen \fR "
149+ Causes the daemon to close and reopen its log file. (This
146150is useful after rotating log files, to cause a new log file to be
147151used.)
148152
149153This has no effect if the target application was not invoked with the
150154\fB --log-file \fR option.
151155
152- .IP " \fB -e \fI command \fR "
153- .IQ " \fB --execute= \fI command \fR "
154- Passes the specified \fI command \fR literally to the target application
155- and prints its response to stdout, if successful, or to stderr if an
156- error occurs. Use \fB -e help \fR to print a list of available commands.
157-
158156.SH OPTIONS
159157
160158.so lib/common.man
161159
160+ .SH BUGS
161+
162+ The protocol used to speak to Open vSwitch daemons does not contain a
163+ quoting mechanism, so command arguments should not generally contain
164+ white space.
165+
162166.SH "SEE ALSO"
163167
168+ \fB ovs \- appctl \fR can control the following daemons:
169+ .BR ovs\- vswitchd (8),
170+ .BR ovs\- openflowd (8),
164171.BR ovs\- controller (8),
165- .BR ovs\- dpctl (8),
166- .BR ovs\- openflowd (8)
172+ .BR ovs\- brcompatd (8),
173+ .BR ovs\- discover (8).
0 commit comments