OVS-APPCTL(8)
π NAME π
ovs-appctl β utility for configuring running Open vSwitch daemons. Hi bestie, this is the ovs-appctl(8) page, and it's giving control-channel realness π
β¨ SYNOPSIS β¨
ovs-appctl [--target=target | -t target] [--timeout=secs | -T secs]
[--format=format | -f format] [--pretty] command [arg ...]
ovs-appctl --help
ovs-appctl --version
π¦ DESCRIPTION π¦
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 Common Commands below. Some daemons support additional commands documented in their own manpages. ovs-vswitchd in particular accepts a number of additional commands documented in ovs-vswitchd(8).
The ovs-appctl program provides a simple way to invoke these commands. The command to be sent is specified on ovs-appctl's command line as non-option arguments. ovs-appctl sends the command and prints the daemon's response on standard output. group-chat energy: you ask, the daemon answers β¨
In normal use only a single option is accepted:
-t targetor--target=targetβ tellsovs-appctlwhich daemon to contact.
If target begins with / 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. /run) named <program>.<pid>.ctl, where <program> is the program's name and <pid> is its process ID. For example, if ovs-vswitchd has PID 123, it would listen on ovs-vswitchd.123.ctl.
Otherwise, ovs-appctl 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 target.pid. (The --pidfile option makes an Open vSwitch daemon create a pidfile.) ovs-appctl reads the pidfile, then looks in the rundir for a Unix socket named target.<pid>.ctl, where <pid> is replaced by the process ID read from the pidfile, and uses that file as if it had been specified directly as the target.
On Windows, target 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 <program>.ctl located inside the rundir. If target is not an absolute path, ovs-appctl looks in the rundir for a file named target.ctl. The default target is ovs-vswitchd. default queen behavior π
-T secsor--timeout=secsβ by default, or with asecsof0,ovs-appctlwaits forever to connect to the daemon and receive a response. This option limits runtime to approximatelysecsseconds. If the timeout expires,ovs-appctlexits with aSIGALRMsignal. not it expiring mid-vibe check, but okay π-f formator--format=formatβ tellsovs-appctlwhich output format to use. By default, or with aformatoftext,ovs-appctlwill print plain-text for humans. Whenformatisjson,ovs-appctlwill return a JSON document. Whenjsonis requested, but a command has not implemented JSON output, the plain-text output will be wrapped in a provisional JSON document with the following structure:
{"reply-format":"plain","reply":"$PLAIN_TEXT_HERE"}
--prettyβ by default, JSON output is printed as compactly as possible. This option causes JSON in output to be printed in a more readable fashion. For example, members of objects and elements of arrays are printed one per line, with indentation. Requires--format=json. pretty-privilege unlocked, but only with the JSON pass π
πΈ COMMON COMMANDS πΈ
Every Open vSwitch daemon supports a common set of commands, which are documented in this section.
π General Commands π
These commands display daemon-specific commands and the running version. Note that these commands are different from the --help and --version options that return information about the ovs-appctl utility itself. iykyk: daemon version β appctl version π¦
list-commandsβ lists the commands supported by the target.versionβ displays the version and compilation date of the target.
π Logging Commands π
Open vSwitch has several log levels. The highest-severity log level is:
offβ no message is ever logged at this level, so setting a logging destination's log level tooffdisables logging to that destination.
The following log levels, in order of descending severity, are available:
emerβ a major failure forced a process to abort.errβ a high-level operation or a subsystem failed. Attention is warranted.warnβ a low-level operation failed, but higher-level subsystems may be able to recover.infoβ information that may be useful in retrospect when investigating a problem.dbgβ 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.
Every Open vSwitch daemon supports the following commands for examining and adjusting log levels:
vlog/listβ lists the known logging modules and their current levels.vlog/list-patternβ lists logging pattern used for each destination.vlog/set [spec]β sets logging levels. Without anyspec, sets the log level for every module and destination todbg. Otherwise,specis a list of words separated by spaces or commas or colons, up to one from each category below:- A valid module name, as displayed by the
vlog/listcommand onovs-appctl(8), limits the log level change to the specified module. syslog,console, orfile, to limit the log level change to only to the system log, to the console, or to a file, respectively.
- A valid module name, as displayed by the
On Windows platform, syslog is only useful if target was started with the --syslog-target option (it has no effect otherwise).
off,emer,err,warn,info, ordbg, to control the log level. Messages of the given severity or higher will be logged, and messages of lower severity will be filtered out.offfilters out all messages.
Case is not significant within spec.
Regardless of the log levels set for file, logging to a file will not take place unless the target application was invoked with the --log-file option.
For compatibility with older versions of OVS, any is accepted within spec but it has no effect. legacy tag, zero effect, still invited to the group chat π«Ά
vlog/set PATTERN:destination:patternβ sets the log pattern fordestinationtopattern. Each time a message is logged todestination,patterndetermines the message's formatting. Most characters inpatternare copied literally to the log, but special escapes beginning with%are expanded as follows:%Aβ the name of the application logging the message, e.g.ovs-vswitchd.%Bβ the RFC5424 syslog PRI of the message.%cβ the name of the module (as shown byovs-appctl --list) logging the message.%dβ the current date and time in ISO 8601 format (YYYY-MM-DD HH:MM:SS).%d{format}β the current date and time in the specifiedformat, which takes the same format as the template argument tostrftime(3). As an extension, any#characters informatwill be replaced by fractional seconds, e.g. use%H:%M:%S.###for the time to the nearest millisecond. Sub-second times are only approximate and currently decimal places after the third will always be reported as zero.%Dβ the current UTC date and time in ISO 8601 format (YYYY-MM-DD HH:MM:SS).%D{format}β the current UTC date and time in the specifiedformat, which takes the same format as the template argument tostrftime(3). Supports the same extension for sub-second resolution as%d{...}.%Eβ the hostname of the node running the application.%mβ the message being logged.%Nβ a serial number for this message within this run of the program, as a decimal number. The first message a program logs has serial number1, the second one has serial number2, and so on.%nβ a new-line.%pβ the level at which the message is logged, e.g.DBG.%Pβ the program's process ID (pid), as a decimal number.%rβ the number of milliseconds elapsed from the start of the application to the time the message was logged.%tβ the subprogram name, that is, an identifying name for the process or thread that emitted the log message, such asmonitorfor the process used for--monitorormainfor the primary process or thread in a program.%Tβ the subprogram name enclosed in parentheses, e.g.(monitor), or the empty string for the primary process or thread in a program.%%β a literal%.
A few options may appear between the % and the format specifier character, in this order:
-β left justify the escape's expansion within its field width. Right justification is the default.0β pad the field to the field width with0characters. Padding with spaces is the default.widthβ a number specifies the minimum field width. If the escape expands to fewer characters thanwidththen it is padded to fill the field width. (A field wider thanwidthis not truncated to fit.)
The default pattern for console and file output is %D{%Y-%m-%dT %H:%M:%SZ}|%05N|%c|%p|%m; for syslog output, %05N|%c|%p|%m.
Daemons written in Python (e.g. ovs-monitor-ipsec) do not allow control over the log pattern. Python said no to pattern control, respectfully π
vlog/set FACILITY:facilityβ sets the RFC5424 facility of the log message.facilitycan be one ofkern,user,mail,daemon,auth,syslog,lpr,news,uucp,clock,ftp,ntp,audit,alert,clock2,local0,local1,local2,local3,local4,local5,local6orlocal7.vlog/closeβ causes the daemon to close its log file, if it is open. (Usevlog/reopento reopen it later.)vlog/reopenβ causes the daemon to close its log file, if it is open, and then reopen it. (This is useful after rotating log files, to cause a new log file to be used.)
This has no effect if the target application was not invoked with the --log-file option. no --log-file, no reopen magic πͺ
π― OPTIONS π―
-h,--helpβ prints a brief help message to the console.-V,--versionβ prints version information to the console.
π SEE ALSO π
ovs-appctl can control all Open vSwitch daemons, including ovs-vswitchd(8) and ovsdb-server(1).
π«Ά AUTHOR π«Ά
The Open vSwitch Development Community
π COPYRIGHT π
2016-2024, The Open vSwitch Development Community
π and that's the page, bestie! Cute sign-off from Open vSwitch version 3.6, dated Feb 13, 2026 β OVS-APPCTL(8) out, no cap π
β¨
π¦ where this page comes from
- fedora 43: openvswitch 3.6.2-1.fc43 Β· Apache-2.0 AND LGPL-2.0-or-later AND SISSL
- fedora 43: openvswitch 3.6.2-1.fc43 Β· Apache-2.0 AND LGPL-2.0-or-later AND SISSL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms