πŸ›‘οΈ check_multiEnterprise Device Audit Framework
GitHub β†—

check_multi 2.0#

Enterprise Device Audit Framework
Multi-function, parallel SSH-based audit tool for network appliances (primarily F5 BIG-IP).

CI Docs Version ShellCheck License

πŸ“– 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-precheck is a Python, iControl REST–driven companion focused on pre-upgrade / change-window readiness for LTM & GTM. Where check_multi runs fast SSH/tmsh sweeps, bigip-precheck performs 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 check
  • platform – Version, build, modules, serial, telemetry
  • umm – Provisioned modules
  • certs – Certificate inventory
  • keys – Key inventory
  • syncgroup – CM sync status
  • network – Interfaces & trunks
  • ntp – NTP config and clock synchronisation
  • license – Licence status and feature modules
  • diskspace – Filesystem utilisation
  • ha – 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#

  1. Prefer SSH keys – password mode (-p) prints a large warning.
  2. Temporary files are created with mode 0600 and removed on exit.
  3. Output directories use 0750.
  4. Host key checking is controlled via environment profile.
  5. 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