RELAYCTL(8)             OpenBSD System Manager's Manual            RELAYCTL(8)

NAME
     relayctl - control the relay daemon

SYNOPSIS
     relayctl command [arguments ...]

DESCRIPTION
     The relayctl program controls the relayd(8) daemon.

     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.

     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 in-
             stalled, 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.

     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 in-
             dividually disabled again.

FILES
     /var/run/relayd.sock    Unix-domain socket used for communication with
                             relayd(8).

SEE ALSO
     relayd(8)

HISTORY
     The relayctl program, formerly known as hoststatectl, first appeared in
     OpenBSD 4.1.  It was renamed to relayctl in OpenBSD 4.3.

OpenBSD 4.4                    December 20, 2007                             2
