Skip to main content

ZooKeeper operations

v0.1.6

Cluster + 4lw command + watch + session introspection. Read-only. Set ZK_SERVERS env var (host:port,host:port,…). All four-letter words need to be in zoo.cfg's `4lw.commands.whitelist`.

8 allowed by default
Pack ID
zookeeper
Vendor
emisar
OS
linux
Actions
8
Required binaries. Install these on the host before relying on the pack — an action that calls a missing one fails at run time.
nc

Install

emisar pack install fetches this pack, re-validates it, and verifies its content hash against the --hash below — the exact bytes this page was rendered against, so a tampered copy is rejected — before copying it into the runner's packs dir. The command reloads a running daemon itself; no manual restart.

on the runner host
sudo emisar pack install zookeeper --hash sha256:564bbc3582e773c1a4b8e4da190432a1ea3ab57526e4a02f8769aafdd9c3e3e7

Actions 8 total

View on GitHub
  • zk.conf exec low

    conf (server config)

    Show the server's effective configuration.

    View source on GitHub
  • zk.cons exec low

    cons (all connections)

    List all client connections + their session + per-session stats.

    View source on GitHub
  • zk.envi exec low

    envi (server env)

    Show the server's JVM + OS environment via the `envi` four-letter word. This deliberately dumps the node's environment — JVM system properties and OS/user details (java.class.path, java.io.tmpdir, java.home, user.name, user.home, user.dir, os.*) — which discloses install paths, usernames, and topology, and on some builds carries values injected via system properties. The runner's redaction is a fail-closed backstop, not a guarantee — it is pattern-bound and can miss a bespoke secret whose name and value match no rule.

    View source on GitHub
  • zk.mntr exec low

    mntr (monitoring metrics)

    Show per-server metrics in a metrics-friendly format.

    View source on GitHub
  • zk.ruok exec low

    ruok (health probe)

    Check server health — returns 'imok' if server is serving.

    View source on GitHub
  • zk.srvr exec low

    srvr (server stats)

    Show server version, latency, packets, mode (leader/follower/standalone).

    View source on GitHub
  • zk.stat exec low

    stat (server + per-conn stats)

    Show server + per-connection latency, packet counts.

    View source on GitHub
  • zk.wchs exec low

    wchs (watch summary)

    Show active watch counts.

    View source on GitHub