NAME
switchctl —
control the SDN flow
controller
SYNOPSIS
switchctl |
[-q] [-s
socket] command
[arg ...] |
DESCRIPTION
The switchctl program controls the
switchd(8) daemon.
The options are as follows:
-q- Don't ask for confirmation of any default options.
-ssocket- Use socket instead of the default /var/run/switchd.sock to communicate with switchd(8).
The following commands are available to control switchd(8):
connectaddress [forward-toaddress]- Connect to a new switch by address, for example
10.1.1.1, or a
switch(4) control device, for example
/dev/switch0.
switchdwill forward all OpenFlow requests of the switch to a remote controller if the optionalforward-toaddress is specified. disconnectaddress- Close the client connection to a remote switch or a switch(4) control device.
dumpaddress request- Request information from a remote switch.
switchctlwill send an OpenFlow request to the remote switch that is specified by address. The request can be one of the following: loadfilename address- Reload the configuration from the specified file.
log brief- Disable verbose logging.
log verbose- Enable verbose logging.
monitor- Monitor internal messages of the switchd(8) subsystems.
reload- Reload the configuration from the default configuration file.
reset all- Reset the running state.
show macs- Display all known mac addresses.
show summary- Display a list of all switches and mac addresses.
show switches- Display all known switches.
FILES
- /etc/switchd.conf
- Active configuration.
- /var/run/switchd.sock
- default UNIX-domain socket used for communication with switchd(8)
SEE ALSO
HISTORY
The switchctl program first appeared in
OpenBSD 6.1.
AUTHORS
The switchctl program was written by
Reyk Floeter
<reyk@openbsd.org>.