Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

State Verification · Cisco Automation

Direct answer

State verification checks operational status after a change, such as interfaces up, OSPF or BGP neighbours established and routes present, using show commands parsed with TextFSM, Genie or pyATS.

When to use this

Use this when checking device state after changes.

First 30 seconds

1. Verify state after changes: interfaces, neighbors, routes.

2. Genie learn/diff for comparisons.

3. Automate pass/fail.

4. Rollback on failure.

5. Store evidence.

Operational verification

pre snapshot → change → post snapshot → diff

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco network automation
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 automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior. · Cisco IOS XE
Key commandshow ip interface brief
Scope / prerequisiteUse this when checking device state after changes.
Show · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Verification

Show Commands

Read-only and diagnostic commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

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

4 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 Known-good, broken and when it is fixed Verify boundary

Verification for Cisco Automation → State Verification must discriminate known-good from broken/suspicious state. With show ip interface brief, known-good is: target interfaces have the intended addressing and up/up state where expected. Broken/suspicious is: wrong address or administratively/operationally down state reveals deployment/state drift. Read back the same target after the minimal approved change, then inspect interface detail/routing and the original service path after configuration read-back.

Step 2 Common mistakes Narrow the fault
  • Checking config instead of operational state.
Step 3 Observation-driven troubleshooting tree Narrow the fault

Troubleshoot Cisco Automation → State Verification from one exact failing target, revision/input and timestamp. Capture show ip interface brief before mutation, then branch by the first divergent observation: interface/address is wrong or down, stay local; local interface is correct but peer/route is absent, move to adjacency/control plane; control plane is correct but traffic fails, inspect forwarding/policy; original test succeeds but adjacent service regresses, treat the change as incomplete. Typical failure signatures include configuration present with line protocol down, wrong address/VRF, neighbor not established, route absent, forwarding blackhole, policy drop, or one test passing while a neighboring path regresses.

Step 4 Failure signatures, dependencies and operational guardrails Narrow the fault

Failure-signature and guardrail reference for Cisco Automation → State Verification: Configuration present with line protocol down, wrong address/VRF, neighbor not established, route absent, forwarding blackhole, policy drop, or one test passing while a neighboring path regresses. Operational guardrail: show ip interface brief is a first local discriminator for interface/IP/line state; it cannot show routing, policy, forwarding or application success. Dependencies that can mimic the same symptom are interface physical state, VLAN/VRF, routing protocols, FIB/CEF, ACL/NAT/QoS policy, DNS and application endpoints depending on the changed network state.

Key points
  • Check interfaces, neighbours and routes.
  • Parse with TextFSM, Genie or pyATS.
  • Compare before and after.
Key checks
  • pyats learn interface --testbed-file tb.yaml — state snapshot
  • genie diff before/ after/ — compare
  • ansible <dev> -m cisco.ios.ios_command -a "commands='show ip ospf neighbor'" — quick check
ReferenceHow it works1 section · depth on demand

How it works

Cisco Automation → State Verification owns the chain from intended configuration through device operational state, neighbor/control-plane state, forwarding/data-plane behavior and the original consumer path. Execution mechanics: Post-change verification first shows the local object exists in the expected state, then shows the adjacent dependency or peer, then repeats the original end-to-end test and finally checks a nearby known-good path for regression. Keep adjacent dependencies separate: interface physical state, VLAN/VRF, routing protocols, FIB/CEF, ACL/NAT/QoS policy, DNS and application endpoints depending on the changed network state. The mapped read surface show ip interface brief exposes interface identity, IP address and line/protocol state.

ReferenceImportant terms & boundaries1 section · depth on demand

Method

State verification on Cisco devices proves that a change produced the intended operational state, not just that commands were accepted.

1. Define expected state per change (e.g. interface up, VLAN present, OSPF neighbor Full, BGP prefixes received).

2. Capture the same state before the change.

3. Collect after the change with structured parsers or model-based queries.

4. Compare against expectation and against the before snapshot.

5. Fail the job on mismatch and trigger rollback.

after = device.parse("show ip ospf neighbor")
full = [n for i in after["interfaces"].values() for n in i["neighbors"].values() if n["state"].startswith("FULL")]
assert len(full) == expected_neighbors

Check state from more than one angle: control plane (neighbors), data plane (ping/traceroute) and user-facing service.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 automation current

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

Basis: https://developer.cisco.com/docs/yangsuite/ · confidence 94%
Confirmation

Confirm action

Continue?