relayctl
— control
the relay daemon
relayctl |
[-s socket]
command [argument ...] |
The relayctl
program controls the
relayd(8)
daemon.
The following options are available:
-s
socket
- Use socket instead of the default
/var/run/relayd.sock to communicate with
relayd(8).
The following commands are available:
host
disable
[name |
id]
- Disable a host. Treat it as though it were always down.
host
enable
[name |
id]
- Enable the host. Start checking its health again.
load
filename
- Reload the configuration from the specified file.
log
brief
- Disable verbose debug logging.
log
verbose
- Enable verbose debug logging.
monitor
- Continuously report any changes in the host checking engine and the
pf(4)
engine.
poll
- Schedule an immediate check of all hosts.
redirect
disable
[name |
id]
- Disable a redirection. If it has
pf(4)
redirection rules installed, remove them. Mark the redirection's main
table and – if applicable – disable the backup table as
well.
redirect
enable
[name |
id]
- Enable a redirection. Mark the redirection's main table and – if
applicable – enable the backup table as well.
reload
- Reload the configuration file.
show
hosts
- Show detailed status of hosts and tables. It will also print the last
error for failed host checks; see the
DIAGNOSTICS section below.
show
redirects
- Show detailed status of redirections including the current and average
access statistics. The statistics will be updated every minute.
Redirections using the
sticky-address
option will
count the number of sticky states, not the total number of redirected
connections.
show
relays
- Show detailed status of relays including the current and average access
statistics. The statistics will be updated every minute.
show
sessions
- Dump the complete list of running relay sessions.
show
summary
- Display a list of all relays, redirections, tables, and hosts.
table
disable
[name |
id]
- Disable a table. Consider all hosts disabled. If it is a main table of a
redirection which has a non-empty backup table, swap the contents of the
pf(4)
table with those of the backup table.
table
enable
[name |
id]
- Enable a table. Start doing checks for all hosts that aren't individually
disabled again.
- /var/run/relayd.sock
- UNIX-domain socket used for communication with
relayd(8).
The relayctl
program, formerly known as
hoststatectl
, first appeared in
OpenBSD 4.1. It was renamed to
relayctl
in OpenBSD 4.3.