Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Compliance

Direct answer

Cisco compliance automation collects running configs and compares them with required settings — AAA, SSH only, logging, NTP, banners — reporting or fixing devices that do not match.

When to use this

Use this when checking Cisco configs against required settings.

First 30 seconds

1. Cisco compliance: golden config sections, security baselines.

2. Rules as code.

3. Report and remediate.

4. Exceptions documented.

5. Trend.

Operational verification

configs → rules → report → remediation

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco network compliance automation / pyATS-style structured state checks
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco network compliance automation / pyATS-style structured state checks · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when checking Cisco configs against required settings.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

Exercise failure-oriented cases such as regex false positives, parser drift after upgrade, command unsupported on a platform, stale inventory, waived finding treated as compliant and remediation changing unrelated config so the test covers failure cases, not only the happy path.

Step 2 Common mistakes Narrow the fault
  • Compliance rules not covering all platforms.
Step 3 Where it fails Narrow the fault

Failure analysis for Cisco Automation → Compliance should follow the path through the components: inventory/device selection → transport/collection → parser/model → fact normalization → policy evaluation → finding/remediation workflow. Tests should include edge cases such as regex false positives, parser drift after upgrade, command unsupported on a platform, stale inventory, waived finding treated as compliant and remediation changing unrelated config. Recovery should retain raw/structured evidence and rule version, repair parser/scope or policy first, re-evaluate the same device, then separately verify any remediation against running and operational state.

Evidence references

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.

observation · 1
Key points
  • Compliance compares running config with required settings.
  • Typical rules: AAA, SSH only, logging, NTP, banners.
  • Run regularly, not only before audits.
Key checks
  • Compliance rules (AAA, NTP, logging, SNMPv3) — standards
  • Compliance report — results
  • Remediation playbooks — fix
ReferenceWhy it matters1 section · depth on demand

In depth

Compliance automation for Cisco devices checks configurations against required standards — AAA, SSH-only management, logging, NTP, SNMPv3, disabled services — and reports or fixes violations.

CheckExample rule
Required linesip ssh version 2, service password-encryption
Forbidden linestransport input telnet, ip http server
ValuesNTP servers match the approved list
SoftwareVersion in approved list, no open PSIRT advisories

Tools: Ansible with ios_config in check mode, Batfish, custom Python on backups, or Catalyst Center compliance. Store rules in Git so the standard and its checks evolve together.

ReferenceImportant terms & boundaries1 section · depth on demand

Mechanics

Compliance in Cisco Automation is owned at runtime by the compliance collector/evaluator that gathers Cisco device state, normalizes it and compares explicit facts against reviewed policy. The durable intent is versioned compliance rules bound to device/platform scope, parser/model versions, severity and remediation ownership. Reliable automation must carry stable identity across the path: device stable ID, software/platform version, command/model fact path and policy rule/version. The consumer-visible target is a compliance finding and optional bounded remediation proposal, not automatic evidence that the network service is healthy. The key invariants are facts come from deterministic structured output where possible, rule scope matches platform/version, exceptions are explicit/expiring, and remediation is separated from detection unless confirmed safe.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Lifecycle

Store and review versioned compliance rules bound to device/platform scope, parser/model versions, severity and remediation ownership; pin or at least record implementation/model versions and keep environment-specific identity outside reusable logic where possible. The stable identity contract is device stable ID, software/platform version, command/model fact path and policy rule/version.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco network compliance automation / pyATS-style structured state checks current

Authoritative/upstream documentation reviewed for bounded claims in Cisco Automation > Compliance. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://developer.cisco.com/docs/pyats/ · confidence 94%
Embedded reference data

Quick lookup tables

Cisco Automation → Compliance · operational reference

Context-specific ownership, verification, output and failure-boundary lookup for Cisco Automation → Compliance.

LayerCisco Automation → Compliance operational reference
Runtime/ownershipCisco network compliance automation / pyATS-style structured state checks · the compliance collector/evaluator that gathers Cisco device state, normalizes it and compares explicit facts against reviewed policy
Persistent intentversioned compliance rules bound to device/platform scope, parser/model versions, severity and remediation ownership
VerificationCollect a bounded structured fact set from one IOS XE fixture, evaluate versioned rules, inspect pass/fail evidence, and independently verify one remediated finding if remediation is enabled.
Expected interpretationEach finding points to a stable device, exact fact/rule/version and evidence; unsupported or collection failures are distinct from noncompliance, and remediation never silently broadens scope.
Recovery boundaryretain raw/structured evidence and rule version, repair parser/scope or policy first, re-evaluate the same device, then separately verify any remediation against running and operational state
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

At minimum retain device/platform/version, collection ID, parser/model, policy/rule version, fact path/value, expected value, pass/fail/error class, exception and remediation/read-back IDs. The useful output makes ambiguity visible, links to the target identity from device stable ID, software/platform version, command/model fact path and policy rule/version, and provides enough context to safely decide whether a retry is permitted.

Confirmation

Confirm action

Continue?