ovn-dbs

ovn-dbs is a command for Claude Code from openshift-eng/ai-helpers. It costs 13 tokens per session (2,538 once invoked), scanned B, original, Apache-2.0.

A command for examining OVN database files collected from a cluster. OVN is the networking system used to describe virtual switches, routers, ports, and access rules.

In plain words
What is it for?
It is for inspecting switches, ports, pod addresses, access-control rules, and routers, or running custom database queries.
Why use it?
It turns low-level database files from a cluster diagnostic bundle into information about the cluster's logical network.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is /must-gather:ovn-dbs ./must-gather/registry-ci-openshift-org-origin-4-20-...-sha256-abc123/.

Part of the must-gather plugin — 1 skill, 3 commands shipped together

Good fit It is for inspecting switches, ports, pod addresses, access-control rules, and routers, or running custom database queries.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers
agentmods
npx agentmods add commands/openshift-eng/ai-helpers/ovn-dbs

Made for: Claude Code.

Or install must-gather, the plugin that ships this one along with the rest of its 1 skill, 3 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ovn-dbs

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/ovn-dbs.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/ovn-dbs)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/ovn-dbs"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/ovn-dbs.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,538 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.02538
Opus 5 $0.00006 $0.01269
Sonnet 5 $0.00003 $0.00508
Haiku 4.5 $0.00001 $0.00254

Measured 3d ago against content hash e7b0282248cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

ovn-dbs scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Install: `sudo dnf install openvswitch` or `sudo apt install openvswitch-common`
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • ovn-dbs — 92% identical, 14 lines differ
plugins/must-gather/commands/ovn-dbs.md · 267 lines

How it starts

The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

must-gather:ovn-dbs

Synopsis

/must-gather:ovn-dbs [must-gather-path] [--node <node-name>] [--query <json>]

Description

The ovn-dbs command analyzes OVN Northbound and Southbound databases collected from clusters. It uses ovsdb-tool to query the binary database files (.db) collected per-node, providing detailed information about the logical network topology, pods, ACLs, and routers on each node.

The command automatically maps ovnkube pods to their corresponding nodes by reading pod specifications from the must-gather data.

Two modes of operation:

  1. Standard Analysis (default): Runs pre-built analysis showing switches, ports, ACLs, and routers
  2. Query Mode (--query): Run custom OVSDB JSON queries for specific data extraction

What it analyzes:

  • Per-zone logical network topology
  • Logical Switches and their ports
  • Pod Logical Switch Ports with namespace, pod name, and IP addresses
  • Access Control Lists (ACLs) with priorities, directions, and match rules
  • Logical Routers and their ports

Important: This command only works with must-gathers from clusters, where each node/zone has its own database files.

Prerequisites

The must-gather should contain:

network_logs/
└── ovnk_database_store.tar.gz

Required Tools:

  • ovsdb-tool must be installed (from openvswitch package)
    • Check with: which ovsdb-tool
    • Install: sudo dnf install openvswitch or sudo apt install openvswitch-common

Analysis Script:

The script is bundled with this plugin:

<plugin-root>/skills/must-gather-analyzer/scripts/analyze_ovn_dbs.py

Where <plugin-root> is the directory where this plugin is installed (typically ~/.cursor/commands/ai-helpers/plugins/must-gather/ or similar).

Claude will automatically locate it by searching for the script in the plugin installation directory, regardless of your current working directory.

Implementation

The command performs the following steps:

Read the full file on GitHub · 267 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 267 lines · 13 tokens per session scan B e7b0282248cf

Subscribe to this mod's changes

ovn-dbs is a command published in the GitHub repository openshift-eng/ai-helpers (116 stars, last pushed 4d ago), licensed Apache-2.0. It adds 13 tokens to every session and 2,538 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.