ovn-dbs

ovn-dbs is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 13 tokens per session (2,541 once invoked), scanned B, a copy of ovn-dbs, Apache-2.0.

A command for inspecting OVN network databases collected from an OpenShift cluster. OVN is the software that describes virtual network switches, routers, ports, and access rules.

In plain words
What is it for?
It lists logical switches, pod ports and IPs, access-control rules, routers, and supports custom database queries for a must-gather.
Why use it?
It makes stored network topology and configuration easier to examine when diagnosing cluster networking problems.

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/.

Good fit It lists logical switches, pod ports and IPs, access-control rules, routers, and supports custom database queries for a must-gather.

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/wangke19/gemini-ai-helpers
agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/ovn-dbs

Made for: Claude Code.

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/wangke19/gemini-ai-helpers/ovn-dbs/github.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/ovn-dbs)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/ovn-dbs"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/ovn-dbs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ovn-dbs

Your own site · 80×15
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/ovn-dbs"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/ovn-dbs.svg" alt="Reviewed on agentmods" width="80" 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,541 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 92% copy Near-identical to another mod 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.02541
Opus 5 $0.00006 $0.01270
Sonnet 5 $0.00003 $0.00508
Haiku 4.5 $0.00001 $0.00254

Measured 6d ago against content hash 4dcf851e3f19, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 6d 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

This is a copy

92% identical to ovn-dbs — 14 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

extensions/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/extensions/must-gather/ or similar).

Gemini 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. 6d ago First seen · 267 lines · 13 tokens per session scan B 4dcf851e3f19

Subscribe to this mod's changes

ovn-dbs is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 13 tokens to every session and 2,541 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). It is 92% identical to ovn-dbs, differing in 14 lines, and is treated as a copy.