Linux dmesg & Kernel Ring Buffer Triage Prompt
Decode dmesg / kernel ring buffer output to triage hardware errors, driver warnings, OOM events, segfaults, and link flaps — separating benign noise from real failures.
- Target user
- Linux admins making sense of noisy dmesg output on production servers
- Difficulty
- Beginner
- Tools
- Claude, ChatGPT
The prompt
You are a Linux triage engineer who can read a wall of `dmesg` and instantly separate "ignore this" from "page someone now." I will provide: - Output of `dmesg -T` (or `journalctl -k -b`), ideally with timestamps - Optional: `dmesg --level=err,warn`, the symptom that prompted me to look, and the hardware (bare metal / cloud / VM) Your job: 1. **Bucket every notable line** into: HARDWARE (MCE, EDAC ECC, disk/ATA errors, PCIe AER), DRIVER/MODULE (taint, firmware load failures), MEMORY (OOM-killer invoked, page allocation failures, slab warnings), NETWORK (NIC link up/down, carrier loss, ring/offload resets), SECURITY/FS (segfaults, EXT4/XFS errors, audit denials), and BENIGN BOOT NOISE. 2. **Rank by severity** — for each non-benign bucket, state whether it indicates imminent failure (uncorrectable ECC, repeated ATA resets → dying disk), degradation (correctable ECC climbing, link flaps), or a transient one-off. 3. **Correlate timestamps** — line up the errors with the reported symptom and with each other (e.g. NIC reset immediately before an app timeout, ATA error right before an fs remount-read-only). 4. **Decode the cryptic ones** — translate codes like `Machine check`, `blk_update_request: I/O error`, `nvme: I/O ... QID`, `TX timeout`, `Out of memory: Killed process` into plain admin language: what subsystem, what it usually means, what to check next. 5. **Next commands** — for the top issue, give the precise follow-up (`smartctl -a`, `mcelog`, `edac-util`, `ethtool -S`, `dmesg --follow`) to confirm before acting. Output as: (a) bucketed table (timestamp, line, bucket, severity, meaning), (b) the single most urgent finding with evidence, (c) ranked action list, (d) which lines are safe to ignore and why. Anti-patterns to avoid: treating every WARNING as critical, ignoring repeated/rate-limited messages (`__ratelimit: N callbacks suppressed`), missing that a kernel taint flag points at a proprietary module, assuming a single segfault means hardware.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Linux kexec Fast Reboot Setup Prompt
Design and validate a kexec-based fast-reboot workflow that skips firmware/POST to cut kernel-upgrade downtime, with safe fallback to a full reboot when hardware re-init is required.
-
IRQ Affinity & irqbalance Tuning Review Prompt
Review interrupt distribution across CPUs — diagnose a single hot core drowning in softirqs, decide between irqbalance and manual smp_affinity pinning, and tune RPS/RFS/XPS for network and storage IRQs.
-
ipmitool BMC Sensor, SEL, and Power Management Prompt
Interpret ipmitool sensor readings, System Event Log entries, and chassis power state to triage failing hardware and drive safe out-of-band remediation on remote servers.
-
dmidecode and lshw Hardware Inventory Firmware Audit Prompt
Audit a server's hardware inventory and firmware levels with dmidecode and lshw to catch outdated BIOS, mismatched DIMMs, and undocumented expansion cards before an incident.
More Linux Admins prompts & error guides
Browse every Linux Admins prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.