Pcornel
Automation · Network Automation

Compliance Checking

Cheat sheet · https://pcornel.dk/topic.php?topic=5600

Back to the Topic

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

BoundaryHealthy evidenceSuspicious evidence
Intent / scopeSource revision and exact targets are explicitStale inventory, hidden selector or wrong variables change scope
Management operationTransport/model/payload and per-device response are traceableAuth/capability/parser differences hide partial or wrong execution
Device stateEffective and persistent state are read backAccepted config/API result is mistaken for convergence
Network proofOriginal control/data-plane or service test passesAutomation 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

Confirmation

Confirm action

Continue?