check_multi 2.0#
Enterprise Device Audit Framework
Multi-function, parallel SSH-based audit tool for network appliances (primarily F5 BIG-IP).
π Documentation site: https://willyd61.github.io/f5-staging-precheck/
Overview#
check_multi is a modular, secure, and governance-ready framework for running configuration, health, and compliance checks against large inventories of network devices.
It was completely redesigned from a legacy monolithic Bash script into a clean, extensible architecture following industry best practices.
New:
bigip-precheckis a Python, iControl RESTβdriven companion focused on pre-upgrade / change-window readiness for LTM & GTM. Wherecheck_multiruns fast SSH/tmsh sweeps,bigip-precheckperforms deeper REST checks and emits a per-device and overall GO / NO-GO verdict with a full audit trail. See its README and architecture. (alpha; phase A)
Key Features (Alpha)#
| Feature | Status |
|---|---|
| Modular library architecture | β |
| External YAML configuration | β |
| Plugin-style check modules | β |
| Secure SSH abstraction | β |
| Dry-run mode | β |
| Structured logging + JSON | β |
| Retry with backoff | β |
| Inventory pre-flight validation | β |
| Executive Excel reports | β |
| Audit trail / run logging | β |
| Environment profiles (lab/prod) | β |
| Argument validation + safety prompts | β |
| "Did you meanβ¦?" check suggestions | β |
| Bash tab-completion | β |
| GitHub Actions CI (lint, tests, smoke) | β |
| Published docs site (GitHub Pages) | β |
Requirements#
| Tool | Purpose | Required |
|---|---|---|
bash β₯ 4 |
Runtime | Yes |
ssh / OpenSSH |
Device access | Yes |
yq (mikefarah) |
YAML config/profiles | Optional (falls back to built-in defaults) |
python3 + openpyxl |
--excel reports |
Optional |
sshpass |
Password auth (-p, discouraged) |
Optional |
shellcheck, bats |
Development / CI | Dev only |
Quick Start#
# Clone the repository
git clone https://github.com/willyd61/f5-staging-precheck.git
cd f5-staging-precheck
# View help
./bin/check_multi --help
# Safe dry-run against example inventory
./bin/check_multi --dry-run platform examples/devices.txt
# Real run with Excel report
./bin/check_multi -e lab -t 10 --excel platform examples/devices.txt
Documentation#
The full, styled documentation is published to
GitHub Pages and built
from the Markdown under docs/:
| Document | Description |
|---|---|
| QUICKSTART.md | First-run guide |
| INSTALL.md | Detailed installation instructions |
| USAGE.md | Full CLI reference and safety behaviours |
| CONFIGURATION.md | YAML config, profiles, env vars |
| MODULES.md | Check catalogue and roadmap |
| ARCHITECTURE.md | Technical design |
| SECURITY.md | Security model and recommendations |
| TROUBLESHOOTING.md | Common issues and fixes |
| FAQ.md | Frequently asked questions |
Architecture#
check_multi_2.0/
βββ bin/check_multi # Main CLI entry point
βββ lib/
β βββ common.sh # Logging, colours, utils, temp files
β βββ ssh.sh # Secure SSH + retry abstraction
β βββ inventory.sh # Device list loading & validation
β βββ parallel.sh # Concurrency control
β βββ config.sh # YAML config loader
β βββ audit.sh # Run audit trail
β βββ summary.sh # summary.json generator
β βββ registry.sh # Check discovery + name validation
β βββ checks/ # Plugin check modules
β βββ platform.sh umm.sh certs.sh keys.sh
β βββ syncgroup.sh network.sh preflight.sh
β βββ ntp.sh license.sh diskspace.sh ha.sh
βββ config/
β βββ defaults.yaml
β βββ environments/{lab,prod}.yaml
βββ completions/check_multi.bash # Bash tab-completion
βββ scripts/
β βββ generate_excel_report.py
β βββ build_docs.py # Guide generator β site/docs/
β βββ build_hero.py # Hero landing page β site/index.html
β βββ shellcheck_all.sh
βββ docs/ # Markdown β published to GitHub Pages
βββ examples/ tests/ Makefile
βββ .github/workflows/{ci.yml,docs.yml}
Published site#
A repository gets exactly one GitHub Pages site, so both parts ship in a single
deployment (docs.yml) rather than competing workflows:
/ hero landing page β scripts/build_hero.py
/docs/ technical user + admin guide β scripts/build_docs.py
Build it locally with make docs (or make docs-serve to preview on :8000).
Usage#
check_multi [OPTIONS] <check_name> <inventory_file>
Global Options#
| Option | Description |
|---|---|
-h, --help |
Show help |
-d, --dry-run |
No SSH connections |
-v, --verbose |
Debug logging |
-t, --threads <N> |
Max parallel sessions |
-o, --output-dir <DIR> |
Results directory |
-e, --env <lab\|prod> |
Environment profile |
-c, --config <FILE> |
Override defaults.yaml |
-u, --user <USER> |
SSH username |
-p, --password |
Use password auth (discouraged) |
-y, --yes |
Assume "yes" for confirmation prompts |
--excel |
Generate executive Excel report |
--no-color |
Disable coloured output (also NO_COLOR) |
--list-checks |
List available check modules and exit |
--version |
Print version |
Command-line flags always override YAML config. Real runs against prod or
large inventories (β₯ 50 devices) prompt for confirmation; use -y for
unattended execution. See USAGE.md for full details.
Available Checks#
Run check_multi --list-checks for the live list.
preflightβ Lightweight connectivity + version checkplatformβ Version, build, modules, serial, telemetryummβ Provisioned modulescertsβ Certificate inventorykeysβ Key inventorysyncgroupβ CM sync statusnetworkβ Interfaces & trunksntpβ NTP config and clock synchronisationlicenseβ Licence status and feature modulesdiskspaceβ Filesystem utilisationhaβ Active/standby and failover state
New checks are added by dropping a module in lib/checks/ β see
MODULES.md.
Shell completion#
# Enable tab-completion for the current shell
source completions/check_multi.bash
Security Model#
- Prefer SSH keys β password mode (
-p) prints a large warning. - Temporary files are created with mode
0600and removed on exit. - Output directories use
0750. - Host key checking is controlled via environment profile.
- Full audit trail of every run.
Development#
All developer tasks are wrapped in the Makefile:
make lint # ShellCheck every script (including bin/check_multi)
make syntax # bash -n syntax check
make test # bats unit tests
make smoke # dry-run every check module (auto-discovered)
make check # all of the above
make docs # build the documentation site into ./site
make docs-serve # build + serve docs at http://localhost:8000
make clean # remove ./results and ./site
CI runs the same checks on every push and pull request (see
.github/workflows/ci.yml), and the documentation
site is built and deployed to GitHub Pages on merge to main (see
.github/workflows/docs.yml). Please run
make check before opening a PR. Contribution guidelines live in
CONTRIBUTING.md; notable changes are recorded in
CHANGELOG.md.
Colour output is emitted only to a TTY and honours the
NO_COLOR convention.
License#
Internal Use Only β Platform Engineering / Network Automation
check_multi 2.0.0-alpha