ovs-db

ovs-db is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 13 tokens per session (3,483 once invoked), scanned B, original, Apache-2.0.

A command for examining Open vSwitch data in sosreport archives, either as text files or from its configuration database. Open vSwitch provides virtual switching for servers and Kubernetes networks.

In plain words
What is it for?
Use it to investigate packet drops, bridge and port issues, flow performance, tunnels, datapaths, and Kubernetes pod network interfaces.
Why use it?
It gathers network topology, bridge settings, interfaces, traffic flows, and error information in one troubleshooting command.

Command for Claude Code

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

Good fit Use it to investigate packet drops, bridge and port issues, flow performance, tunnels, datapaths, and Kubernetes pod network interfaces.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/ovs-db
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

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 ovs-db

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/ovs-db/github.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/ovs-db)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/ovs-db"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/ovs-db/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 ovs-db

Your own site · 80×15
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/ovs-db"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/ovs-db.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 3,483 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.03483
Opus 5 $0.00006 $0.01741
Sonnet 5 $0.00003 $0.00697
Haiku 4.5 $0.00001 $0.00348

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

Security

Grade B, and why

ovs-db 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 9d 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.

- Fedora/RHEL: `sudo dnf install openvswitch`
extensions/sosreport/commands/ovs-db.md · 392 lines

How it starts

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

Name

sosreport:ovs-db

Synopsis

/sosreport:ovs-db [sosreport-path] [--db] [--flows-only] [--query <json>]

Description

The ovs-db command analyzes Open vSwitch data collected in sosreports. It operates in four modes:

  1. Default mode: Full analysis - conf.db + all text files (requires ovsdb-tool)
  2. Database mode (--db): Database only - analyze conf.db (requires ovsdb-tool)
  3. Text files mode (--flows-only): Text files only - no ovsdb-tool needed!
  4. Query mode (--query): Run custom OVSDB JSON queries (requires ovsdb-tool)

What it analyzes:

From Database (Default or --db Mode)

  • System Information: OVS version, DPDK settings, external IDs (from conf.db)
  • Bridge Details: Datapath type (kernel/userspace), fail mode, ports (from conf.db)
  • Interface Inventory: By type, with pod-to-interface mapping (from conf.db)

From Text Files (Default or --flows-only Mode)

  • System Information: OVS version, DPDK settings, external IDs (from ovs-vsctl list Open_vSwitch)
  • Topology: Bridges with ports grouped by type (from ovs-vsctl show)
  • Bridge Details: Datapath type, fail mode, CT zones (from ovs-vsctl list bridge)
  • Interface Inventory: By type, with pod-to-interface mapping (from ovs-vsctl list interface)
  • OpenFlow Flows: Flow counts, drop detection, top flows (from ovs-ofctl dump-flows)
  • Port Statistics: RX/TX drops and errors (from ovs-ofctl dump-ports)
  • Tunnel Ports: Configured tunnels (from ovs-appctl tnl.ports.show)
  • Datapath Health: Flow table usage vs limit (from ovs-appctl upcall.show)
  • OVS Internal Stats: Netlink, OpenFlow, OVSDB counters (from ovs-appctl coverage.show)

Custom Queries (--query Mode)

  • Direct OVSDB table queries (requires ovsdb-tool)

Modes of operation:

  1. Default: Full analysis - conf.db + all text files (requires ovsdb-tool, falls back to text files if not available)
  2. Database (--db): Database only - analyze conf.db (requires ovsdb-tool)
  3. Text Files (--flows-only): Text files only - no ovsdb-tool needed
  4. Query Mode (--query): Run custom OVSDB JSON queries (requires ovsdb-tool)

Read the full file on GitHub · 392 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. 9d ago First seen · 392 lines · 13 tokens per session scan B b9d49bf9c197

Subscribe to this mod's changes

ovs-db 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 3,483 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-03.