ZEEK-CLIENT(1)

πŸ“¦ version 8.2.2, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, meet zeek-client β€” the actual main character of the ZEEK-CLIENT(1) manual page (User Commands section, iykyk). That’s the name, and yes it’s giving command-line royalty. πŸ‘‘

✨ 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 🌸

okay so zeek-client is 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. No cap, that’s the whole vibe. πŸ’…

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

πŸŽ€ OPTIONS πŸŽ€

  • -c FILE, --configfile FILE β€” Path to zeek-client config file. (Default: @ZEEK_CLIENT_CONFIG_FILE@)
  • --controller HOST:PORT β€” Address and port of the controller, either of which may be omitted (default: 127.0.0.1:2149)
  • --set SECTION.KEY=VAL β€” Adjust a configuration setting. Can use repeatedly. See show-settings.
  • --quiet, -q β€” Suppress informational output to stderr.
  • --verbose, -v β€” Increase informational output to stderr. Repeat for more output (e.g. -vvv).
  • --version β€” Show version number and exit.

πŸ¦‹ COMMANDS πŸ¦‹

here’s the command menu, bestie β€” every single one, no skipping. πŸ’–

πŸ’… 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 β€” 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 β€” Output file for the configuration, default stdout
  • --as-json β€” Report in JSON instead of INI-style config file
  • --deployed β€” Return deployed configuration
  • --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 β€” Name of the Zeek script identifier to retrieve.
  • 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. honestly iconic. 🫢

usage: zeek-client monitor [-h]

πŸ’… zeek-client restart

Restart cluster nodes.

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

arguments:

  • NODES β€” 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 β€” 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 β€” Make request stateful in the controller.

πŸ’€ 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. So yeah: 0 = slay, 1 = something’s off. πŸ’…

🌈 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 🫢

⚠️ heads up, bestie: 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.


That’s the whole zeek-client page from the ZEEK-CLIENT(1) manual, bestie πŸ’– β€” the footer’s source/manual tag is zeek-client / ZEEK-CLIENT(1), and no separate version number or date was printed in this copy, so I’m not inventing one. periodt. ✨

πŸ“¦ where this page comes from