.\" Man page generated from reStructuredText. . .TH "OVS-APPCTL" "8" "Oct 20, 2021" "2.15" "Open vSwitch" .SH NAME ovs-appctl \- utility for configuring running Open vSwitch daemons . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .sp \fBovs\-appctl\fP [\fB\-\-target=\(ga\(ga | \(ga\(ga\-t\fP ] [\fB\-\-timeout=\(ga\(ga | \(ga\(ga\-T\fP ] […] .sp \fBovs\-appctl \-\-help\fP .sp \fBovs\-appctl \-\-version\fP .SH DESCRIPTION .sp Open vSwitch daemons accept certain commands at runtime to control their behavior and query their settings. Every daemon accepts a common set of commands documented under \fI\%Common Commands\fP below. Some daemons support additional commands documented in their own manpages. \fBovs\-vswitchd\fP in particular accepts a number of additional commands documented in \fBovs\-vswitchd(8)\fP\&. .sp The \fBovs\-appctl\fP program provides a simple way to invoke these commands. The command to be sent is specified on \fBovs\-appctl\fP’s command line as non\-option arguments. \fBovs\-appctl\fP sends the command and prints the daemon’s response on standard output. .sp In normal use only a single option is accepted: .INDENT 0.0 .IP \(bu 2 \fB\-t\fP or \fB\-\-target\fP .sp Tells \fBovs\-appctl\fP which daemon to contact. .sp If begins with \fB/\fP it must name a Unix domain socket on which an Open vSwitch daemon is listening for control channel connections. By default, each daemon listens on a Unix domain socket in the rundir (e.g. \fB/run\fP) named \fB..ctl\fP, where is the program’s name and is its process ID. For example, if \fBovs\-vswitchd\fP has PID 123, it would listen on \fBovs\-vswitchd.123.ctl\fP\&. .sp Otherwise, \fBovs\-appctl\fP looks in the rundir for a pidfile, that is, a file whose contents are the process ID of a running process as a decimal number, named \fB.pid\fP\&. (The \fB\-\-pidfile\fP option makes an Open vSwitch daemon create a pidfile.) \fBovs\-appctl\fP reads the pidfile, then looks in the rundir for a Unix socket named \fB..ctl\fP, where is replaced by the process ID read from the pidfile, and uses that file as if it had been specified directly as the target. .sp On Windows, can be an absolute path to a file that contains a localhost TCP port on which an Open vSwitch daemon is listening for control channel connections. By default, each daemon writes the TCP port on which it is listening for control connection into the file \fB.ctl\fP located inside the rundir. If is not an absolute path, \fBovs\-appctl\fP looks in the rundir for a file named \fB.ctl\fP\&. The default target is \fBovs\-vswitchd\fP\&. .IP \(bu 2 \fB\-T \fP or \fB\-\-timeout=\fP .sp By default, or with a of \fB0\fP, \fBovs\-appctl\fP waits forever to connect to the daemon and receive a response. This option limits runtime to approximately seconds. If the timeout expires, \fBovs\-appctl\fP exits with a \fBSIGALRM\fP signal. .UNINDENT .SH COMMON COMMANDS .sp Every Open vSwitch daemon supports a common set of commands, which are documented in this section. .SS General Commands .sp These commands display daemon\-specific commands and the running version. Note that these commands are different from the \fB\-\-help\fP and \fB\-\-version\fP options that return information about the \fBovs\-appctl\fP utility itself. .INDENT 0.0 .IP \(bu 2 \fBlist\-commands\fP .sp Lists the commands supported by the target. .IP \(bu 2 \fBversion\fP .sp Displays the version and compilation date of the target. .UNINDENT .SS Logging Commands .sp Open vSwitch has several log levels. The highest\-severity log level is: .INDENT 0.0 .IP \(bu 2 \fBoff\fP .sp No message is ever logged at this level, so setting a logging destination’s log level to \fBoff\fP disables logging to that destination. .UNINDENT .sp The following log levels, in order of descending severity, are available: .INDENT 0.0 .IP \(bu 2 \fBemer\fP .sp A major failure forced a process to abort. .IP \(bu 2 \fBerr\fP .sp A high\-level operation or a subsystem failed. Attention is warranted. .IP \(bu 2 \fBwarn\fP .sp A low\-level operation failed, but higher\-level subsystems may be able to recover. .IP \(bu 2 \fBinfo\fP .sp Information that may be useful in retrospect when investigating a problem. .IP \(bu 2 \fBdbg\fP .sp Information useful only to someone with intricate knowledge of the system, or that would commonly cause too\-voluminous log output. Log messages at this level are not logged by default. .UNINDENT .sp Every Open vSwitch daemon supports the following commands for examining and adjusting log levels: .INDENT 0.0 .IP \(bu 2 \fBvlog/list\fP .sp Lists the known logging modules and their current levels. .IP \(bu 2 \fBvlog/list\-pattern\fP .sp Lists logging pattern used for each destination. .IP \(bu 2 \fBvlog/set\fP [] .sp Sets logging levels. Without any , sets the log level for every module and destination to \fBdbg\fP\&. Otherwise, is a list of words separated by spaces or commas or colons, up to one from each category below: .INDENT 2.0 .IP \(bu 2 A valid module name, as displayed by the \fBvlog/list\fP command on \fBovs\-appctl(8)\fP, limits the log level change to the specified module. .IP \(bu 2 \fBsyslog\fP, \fBconsole\fP, or \fBfile\fP, to limit the log level change to only to the system log, to the console, or to a file, respectively. .sp On Windows platform, \fBsyslog\fP is only useful if was started with the \fB\-\-syslog\-target\fP option (it has no effect otherwise). .IP \(bu 2 \fBoff\fP, \fBemer\fP, \fBerr\fP, \fBwarn\fP, \fBinfo\fP, or \fBdbg\fP, to control the log level. Messages of the given severity or higher will be logged, and messages of lower severity will be filtered out. \fBoff\fP filters out all messages. .UNINDENT .sp Case is not significant within . .sp Regardless of the log levels set for \fBfile\fP, logging to a file will not take place unless the target application was invoked with the \fB\-\-log\-file\fP option. .sp For compatibility with older versions of OVS, \fBany\fP is accepted within but it has no effect. .IP \(bu 2 \fBvlog/set PATTERN::\fP .sp Sets the log pattern for to . Each time a message is logged to , determines the message’s formatting. Most characters in are copied literally to the log, but special escapes beginning with \fB%\fP are expanded as follows: .INDENT 2.0 .IP \(bu 2 \fB%A\fP .sp The name of the application logging the message, e.g. \fBovs\-vswitchd\fP\&. .IP \(bu 2 \fB%B\fP .sp The RFC5424 syslog PRI of the message. .IP \(bu 2 \fB%c\fP .sp The name of the module (as shown by \fBovs\-appctl \-\-list\fP) logging the message. .IP \(bu 2 \fB%d\fP .sp The current date and time in ISO 8601 format (YYYY\-MM\-DD HH:MM:SS). .IP \(bu 2 \fB%d{}\fP .sp The current date and time in the specified , which takes the same format as the