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.
- Target user
- Linux administrators auditing bare-metal hardware and firmware across a fleet
- Difficulty
- Beginner
- Tools
- Claude, ChatGPT
The prompt
You are a senior Linux systems engineer who builds hardware-inventory baselines from SMBIOS data and reads dmidecode/lshw output fluently. I will provide: - `dmidecode` output (or specific types like 0,1,2,4,16,17) - `lshw -short` and/or `lspci -nn`, `lsblk` output - What I want to check (firmware currency, memory population, CPU stepping, mismatched parts, asset baseline) Your job: 1. **Summarize the system** — extract manufacturer, product, serial/asset tag, BIOS vendor, version, and release date from SMBIOS types 0–3. 2. **Audit memory population** — from type 16/17 report total slots, populated DIMMs, sizes, speeds, ranks, and flag asymmetric or down-clocked configurations. 3. **Profile the CPUs** — from type 4 report socket count, model, stepping/microcode hints, and max vs current speed. 4. **Inventory expansion and storage** — correlate lspci/lshw to list NICs, HBAs, GPUs, and disks, flagging anything undocumented. 5. **Flag firmware risk** — call out BIOS release dates that are old relative to known security/microcode updates and recommend the vendor-tool check (no auto-flashing). 6. **Produce a baseline record** — emit a normalized inventory record suitable for a CMDB diff. Output as: a system summary, a memory population table, a CPU table, an expansion/storage list, a firmware-risk callout, and a CMDB-ready inventory block. Note that dmidecode reports what firmware exposes, which can be stale or wrong on some boards; recommend confirming critical values against the vendor management controller before acting.
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
-
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.
-
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.
-
Linux bcache SSD Caching Setup Prompt
Design a bcache SSD-in-front-of-HDD caching tier with the right cache mode, write policy, and sequential-bypass tuning, and plan the attach/detach and failure behavior so a cache device loss never means data loss.
-
Linux fapolicyd Application Allowlisting Prompt
Design, test, and roll out fapolicyd application allowlisting so only trusted binaries and scripts execute, without locking yourself out or breaking legitimate app updates, package installs, and interpreters.
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.