ZEEK-CLIENT(1) User Commands ZEEK-CLIENT(1)

# [NAME](#NAME)

zeek-client

# [SYNOPSIS](#SYNOPSIS)

**zeek-client** \[-h] \[-c FILE] \[--controller HOST:PORT] \[--set SECTION.KEY=VAL] \[--quiet | --verbose] \[--version] {deploy,deploy-config,get-config,get-id-value,get-instances,get-nodes,monitor,restart,stage-config,show-settings,test-timeout} ...

# [DESCRIPTION](#DESCRIPTION)

A command-line client for Zeek's Management Framework.

Use this client to push cluster configurations to a cluster controller, retrieve running state from the system, restart nodes, and more.

For details about Zeek's Management Framework, please consult the documentation at https://docs.zeek.org/en/master/frameworks/management.html.

# [OPTIONS](#OPTIONS)

[**-c** *FILE*, **--configfile** *FILE*](#c)

Path to zeek-client config file. (Default: @ZEEK\_CLIENT\_CONFIG\_FILE@)

[**--controller** *HOST:PORT*](#controller)

Address and port of the controller, either of which may be omitted (default: 127.0.0.1:2149)

[**--set** *SECTION.KEY=VAL*](#set)

Adjust a configuration setting. Can use repeatedly. See show-settings.

[**--quiet**, **-q**](#quiet)

Suppress informational output to stderr.

[**--verbose**, **-v**](#verbose)

Increase informational output to stderr. Repeat for more output (e.g. -vvv).

[**--version**](#version)

Show version number and exit.

# [COMMANDS](#COMMANDS)

## **zeek-client** **deploy**

Deploy a staged cluster configuration.

usage: zeek-client deploy \[-h]

## **zeek-client** **deploy-config**

Upload a cluster configuration and deploy it.

usage: zeek-client deploy-config \[-h] FILE

arguments:

[**FILE**](#FILE)

Cluster configuration file, "-" for stdin

## **zeek-client** **get-config**

Retrieve staged or deployed cluster configuration.

usage: zeek-client get-config \[-h] \[--filename FILE] \[--as-json] \[--deployed | --staged]

options:

[**--filename** *FILE*, **-f** *FILE*](#filename)

Output file for the configuration, default stdout

[**--as-json**](#as)

Report in JSON instead of INI-style config file

[**--deployed**](#deployed)

Return deployed configuration

[**--staged**](#staged)

Return staged configuration (default)

## **zeek-client** **get-id-value**

Show the value of a given identifier in Zeek cluster nodes.

usage: zeek-client get-id-value \[-h] IDENTIFIER \[NODES ...]

arguments:

[**IDENTIFIER**](#IDENTIFIER)

Name of the Zeek script identifier to retrieve.

[**NODES**](#NODES)

Name(s) of Zeek cluster nodes to query. When omitted, queries all nodes.

## **zeek-client** **get-instances**

Show instances connected to the controller.

usage: zeek-client get-instances \[-h]

## **zeek-client** **get-nodes**

Show active Zeek nodes at each instance.

usage: zeek-client get-nodes \[-h]

## **zeek-client** **monitor**

For troubleshooting: do nothing, just report events.

usage: zeek-client monitor \[-h]

## **zeek-client** **restart**

Restart cluster nodes.

usage: zeek-client restart \[-h] \[NODES ...]

arguments:

[**NODES**](#NODES~2)

Name(s) of Zeek cluster nodes to restart. When omitted, restarts all nodes.

## **zeek-client** **stage-config**

Upload a cluster configuration for later deployment.

usage: zeek-client stage-config \[-h] FILE

arguments:

[**FILE**](#FILE~2)

Cluster configuration file, "-" for stdin

## **zeek-client** **show-settings**

Show zeek-client's own configuration.

usage: zeek-client show-settings \[-h]

## **zeek-client** **test-timeout**

Send timeout test event.

usage: zeek-client test-timeout \[-h] \[--with-state]

options:

[**--with-state**](#with)

Make request stateful in the controller.

# [EXIT STATUS](#EXIT_STATUS)

The client exits with 0 on success and 1 if a problem arises, such as lack of a response from the controller, unexpected response data, or the controller explicitly reporting an error in its handling of a command.

# [ENVIRONMENT](#ENVIRONMENT)

zeek-client supports the following environment variables:

ZEEK\_CLIENT\_CONFIG\_FILE: Same as \`--configfile\` argument, but lower precedence.  
ZEEK\_CLIENT\_CONFIG\_SETTINGS: Same as a space-separated series of \`--set\` arguments, but lower precedence.

# [SUGGESTIONS AND BUG REPORTS](#SUGGESTIONS_AND_BUG_REPORTS)

The Management Framework and this client are experimental software. The Zeek team welcomes your feedback. Please file issues on Github at https://github.com/zeek/zeek-client/issues, or contact us on Discourse or Slack: https://zeek.org/community

zeek-client

---

Document: zeek-client(1) from zeek 9.0.0-r3 (Chainguard OS)
