Use it for audits, after onboarding devices, and to find drift from the standard.
Compliance Checking
1. Compliance checking compares configs to standards.
2. Rules as code.
3. Report per device and rule.
4. Auto-remediate low-risk items.
5. Track trends.
configs → rules → compliance report
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
policy/baseline revision → applicability → device evidence collection → normalization → rule evaluation → exception/waiver → remediation → recollection/retest
Healthy evidence: policy and evidence revisions are explicit, missing data is not mistaken for pass and remediation is verified by fresh collection.
Step 2 Verification path Verify boundary
Record device ID/management address, platform/version, interface/VRF/object identity and request/run ID; inspect the runtime/control-plane result; then query network-device configuration and operational/forwarding state relevant to the change through an independent read path and compare it with the versioned intent. For Network Automation → Compliance Checking, the evidence must connect the control-plane result to network-device configuration and operational/forwarding state relevant to the change and explain any gap between desired, controller-reported and consumer-visible state.
Step 3 Failure modes and next checks Narrow the fault
Suspicious evidence: stale snapshots, broad exceptions or failed collectors produce apparently compliant dashboards without reliable device evidence.
Step 4 Common mistakes Narrow the fault
- Compliance rules out of date.
Step 5 Where it fails Narrow the fault
Failure analysis for Network Automation → Compliance Checking should follow the path through the components: inventory/controller → transport/API/CLI → device parser/model/datastore → control plane → forwarding/operational read-back. Common failure classes include wrong device/context, syntax/model drift, privilege mismatch, partial config, asynchronous convergence and controller cache differing from device truth. Before retrying a mutating operation, read current target state using the stable identity device ID/management address, platform/version, interface/VRF/object identity and request/run ID; if state is unknown, stop broad retries.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
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.
- Compliance rules (golden config, required lines) — policy
- Compliance report per device — results
- Remediation workflow — fixing
ReferenceWhat it is1 section · depth on demand
Core model
Keep policy source/version, applicability, collected evidence, normalization, rule evaluation, exception/waiver context and remediation verification distinct.
ReferenceWhy it matters1 section · depth on demand
In depth
Compliance checking compares device configurations or state against required rules — security baselines, standards, golden configuration — and reports violations per device.
| Rule type | Example |
|---|---|
| Must contain | service password-encryption, AAA settings |
| Must not contain | transport input telnet, SNMP community public |
| Value check | NTP servers equal the approved list |
| Version | Software version on approved list |
Run checks on backups (no device load) daily, publish a report with trends, and decide which violations may be remediated automatically.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Compliance automation shows evaluated controls for the captured evidence and rule set, but it does not show total security, availability or runtime enforcement outside that scope.
Mechanics
Network Automation → Compliance Checking is owned at runtime by the automation controller/client plus network-device API/CLI/model interface and device control plane. Its durable intent is versioned device inventory and bounded network configuration/verification intent; the stable identity contract is device ID/management address, platform/version, interface/VRF/object identity and request/run ID. The consumer-visible target is network-device configuration and operational/forwarding state relevant to the change. The operating invariants are that device/platform capability is known, scope is explicit, parsing/model assumptions match software, writes are read back and control-plane versus forwarding verification remain distinct. Follow the chain of components inventory/controller → transport/API/CLI → device parser/model/datastore → control plane → forwarding/operational read-back and record which layer currently owns truth. The linked authority for bounded mechanics is Cisco DevNet — Network Automation; documentation support is separate from observed lab/production Evidence.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network Automation > Compliance Checking. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://developer.cisco.com/site/networking/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Compliance Checking Network Automation proof-boundary map
Fast intent/scope, management-operation, device-state and network-acceptance boundaries for Compliance Checking.
| 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 |
Deep reference
Healthy vs suspicious evidence
Output interpretation
Capture at minimum device/platform, request/command/RPC ID, config diff, parser/API result, operational state, counters/routes/neighbors and final service verification.