Compliance Checking
Cheat sheet · https://pcornel.dk/topic.php?topic=5600
Answer
Compliance checking compares each device's configuration with a list of rules — NTP servers set, SNMPv1/v2c off, AAA configured, Telnet disabled, a login banner present — and reports which devices break which rule.
Remember
Write each rule as a check that can pass or fail on configuration text or state. Report per device and per rule, not one total score. Record agreed exceptions with a reason, or they come back in every report. Run it on fresh configuration copies.
First checks
- Compliance rules (golden config, required lines) — policy
- Compliance report per device — results
- Remediation workflow — fixing
Verify in this order
configs → rules → compliance report
Where it usually breaks
Compliance automation proves evaluated controls for the captured evidence and rule set; it does not prove total security, availability or runtime enforcement outside that scope.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness. Preserve at least three independent checks: prerequisite/interface or identity/transport state; the owning control/service/policy state; then effective data-plane, backend or workload state. A healthy upstream boundary does not prove the downstream consumer or return path.
Compliance Checking Network Automation proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / scope | Source revision and exact targets are explicit | Stale inventory, hidden selector or wrong variables change scope |
| Management operation | Transport/model/payload and per-device response are traceable | Auth/capability/parser differences hide partial or wrong execution |
| Device state | Effective and persistent state are read back | Accepted config/API result is mistaken for convergence |
| Network proof | Original control/data-plane or service test passes | Automation summary substitutes for actual network acceptance |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5600