ironic-status

ironic-status is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 12 tokens per session (2,627 once invoked), scanned C, original, Apache-2.0.

A command for checking the health, provisioning state, enrollment, availability, and maintenance state of bare-metal machines managed by Ironic in an OpenShift cluster.

In plain words
What is it for?
Use it to monitor Ironic nodes, verify that machines are available, and troubleshoot OpenShift bare-metal provisioning.
Why use it?
It gathers the node information needed to investigate provisioning failures and other bare-metal infrastructure problems without checking each component manually.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to monitor Ironic nodes, verify that machines are available, and troubleshoot OpenShift bare-metal provisioning.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/ironic-status
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 ironic-status

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/ironic-status"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/ironic-status.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 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,627 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. 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.00012 $0.02627
Opus 5 $0.00006 $0.01314
Sonnet 5 $0.00002 $0.00525
Haiku 4.5 $0.00001 $0.00263

Measured 6d ago against content hash 70e040df80af, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

ironic-status scanned grade C with 2 findings 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.

Enumerates the file system for secretshighData exfiltration

Searching home directories for .env, .ssh, .aws or credential files is reconnaissance for credential theft.

# Find credential files

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# Or use curl directly
extensions/openshift/commands/ironic-status.md · 309 lines

How it starts

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

Name

openshift:ironic-status

Synopsis

/openshift:ironic-status

Description

The openshift:ironic-status command checks the status of Ironic baremetal nodes in an OpenShift cluster.

This command is useful for:

  • Monitoring baremetal node health and provisioning status
  • Troubleshooting node provisioning issues
  • Verifying node enrollment and availability
  • Checking node maintenance states
  • Diagnosing baremetal infrastructure problems

Prerequisites

Before using this command, ensure you have:

  1. OpenShift CLI (oc): Must be installed and configured

  2. Active cluster connection: Must be connected to an OpenShift cluster with baremetal nodes

    • Verify with: oc whoami
    • Ensure KUBECONFIG is set if needed
  3. Sufficient permissions: Must have access to the openshift-machine-api namespace

    • Ability to exec into pods in openshift-machine-api namespace
    • Read access to services and deployments
  4. baremetal cluster: The cluster must be running on baremetal infrastructure with Metal3/Ironic enabled

    • Verify Metal3 components: oc get pods -n openshift-machine-api | grep metal3-ironic

Implementation

The command performs the following steps to retrieve Ironic node status:

1. Detect Ironic Service Endpoint

Locate the Ironic service in the openshift-machine-api namespace:

# Find the Ironic service (typically named metal3-state)
oc get service -n openshift-machine-api metal3-state

# Get the ClusterIP of the Ironic service
IRONIC_SERVICE=$(oc get service -n openshift-machine-api metal3-state)
IRONIC_IP=$(oc get service -n openshift-machine-api $IRONIC_SERVICE -o jsonpath='{.spec.clusterIP}')

# Ironic API typically runs on port 6385
IRONIC_ENDPOINT="https://localhost:6385"

2. Retrieve Ironic Credentials

Extract authentication credentials from the baremetal operator container:

# Find the metal3-baremetal-operator pod
BAREMETAL_OPERATOR_POD=$(oc get pods -n openshift-machine-api -l baremetal.openshift.io/cluster-baremetal-operator=metal3-baremetal-operator -o jsonpath='{.items[0].metadata.name}')

# Extract username from the mounted auth volume
IRONIC_USERNAME=$(oc exec -n openshift-machine-api $BAREMETAL_OPERATOR_POD -c metal3-baremetal-operator -- cat /auth/ironic/username)

# Extract password from the mounted auth volume
IRONIC_PASSWORD=$(oc exec -n openshift-machine-api $BAREMETAL_OPERATOR_POD -c metal3-baremetal-operator -- cat /auth/ironic/password)

Read the full file on GitHub · 309 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 · 309 lines · 12 tokens per session scan C 70e040df80af

Subscribe to this mod's changes

ironic-status is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 12 tokens to every session and 2,627 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (enumerates the file system for secrets, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.