base/frameworks/control/main.bro
-
Control
The control framework provides the foundation for providing “commands”
that can be taken remotely at runtime to modify a running Bro instance
or collect information from the running instance.
Detailed Interface
Redefinable Options
-
Control::arg
-
This can be used by commands that take an argument.
-
Control::cmd
-
The command that is being done. It’s typically set on the
command line.
-
Control::commands
-
{
"shutdown",
"net_stats",
"peer_status",
"id_value",
"configuration_update"
}
The commands that can currently be given on the command line for
remote control.
-
Control::controllee_listen
-
Whether the controllee should call Broker::listen
.
In a cluster, this isn’t needed since the setup process calls it.
-
Control::host
-
The address of the host that will be controlled.
-
Control::host_port
-
The port of the host that will be controlled.
-
Control::zone_id
-
If Control::host
is a non-global IPv6 address and
requires a specific RFC 4007 zone_id
, it can be set here.
Constants
-
Control::ignore_ids
-
Variable IDs that are to be ignored by the update process.
-
Control::topic_prefix
Type: | string |
Default: | "bro/control" |
The topic prefix used for exchanging control messages via Broker.
Events
-
Control::configuration_update
-
This event is a wrapper and alias for the
Control::configuration_update_request
event.
This event is also a primary hooking point for the control framework.
-
Control::configuration_update_request
-
Inform the remote Bro instance that it’s configuration may have been
updated.
-
Control::configuration_update_response
-
Message in response to a configuration update request.
-
Control::id_value_request
-
Event for requesting the value of an ID (a variable).
-
Control::id_value_response
-
Event for returning the value of an ID after an
Control::id_value_request
event.
-
Control::net_stats_request
-
Requests the current net_stats.
-
Control::net_stats_response
-
Returns the current net_stats.
-
Control::peer_status_request
-
Requests the current communication status.
-
Control::peer_status_response
-
Returns the current communication status.
-
Control::shutdown_request
-
Requests that the Bro instance begins shutting down.
-
Control::shutdown_response
-
Message in response to a shutdown request.