Ask ten network engineers whether they detect configuration drift on their Cisco estate and nine will say yes. Ask what they did about the last alert and the room goes quiet. The failure isn't tooling — every shop has a diff engine somewhere. It's that the output is unreadable: hundreds of lines a week, of which a handful matter, so the alerts get filtered into a folder nobody opens. A diff nobody reads is functionally identical to no diff at all.
Normalize first, or drown in false positives
Pull a running-config from a switch that's been up 30 days, diff it against the config you captured when it was racked, and you will get a change list. On a 3,000-line IOS-XE config, expect 20 to 60 lines of difference — and on a healthy device, roughly three of them are real. Everything else is artifact:
ntp clock-period— the box rewrites this itself as it disciplines its clock.! Last configuration change at ...and! NVRAM config last updated at ...— pure timestamps.Current configuration : 14823 bytes— the line count moves whenever anything else does.- Secrets under
service password-encryption, where the same plaintext yields a different Type 7 string on each write. crypto pki certificate chainserials and validity windows on renewal.- EEM or TCL stubs that leaked
show-style state into the config in the first place.
Strip these at ingest. A pattern list of 15–25 entries handles the overwhelming majority of it in a typical enterprise estate. If your tool won't let you maintain that list, it isn't a drift detector — it's a log generator with a network diagram attached.
Three baselines, not one
Single-baseline detection fails in both directions. Diff against startup-config alone and you'll see every change but have no way to judge authorization. Diff against a hand-maintained "golden config" from two years ago and most of your alerts will be legitimate changes nobody bothered to backport into the template.
Keep three, and be explicit about which question each one answers:
- Last-known-good — the running-config captured immediately after the last approved change window, per device. Answers: what has changed since we agreed this device was correct?
- Approved intent — the template or source-of-truth render. Answers: how far does this device sit from the design? It will always lag reality; that lag is a metric, not a bug.
- Startup-config — the on-box fallback. Answers: will this device come back the same way after a reload?
That third check is the one to automate first, because it needs no CMDB, no ownership data, and no politics. show archive config differences nvram:startup-config system:running-config gives you it natively, and running-versus-startup divergence is the cheapest high-value signal on the box.
Make detection event-driven, keep a sweep as backstop
Scheduled polling is necessary but not sufficient. A change made at 09:14 that gets swept at 02:00 leaves up to 17 hours of quiet for a mistyped ACL or a planted local user. IOS and IOS-XE give you two mechanisms to close that window: the archive feature with path and write-memory set writes a copy to a remote destination on every write memory, and an EEM applet bound to event syslog pattern "%SYS-5-CONFIG_I" fires the instant anyone leaves configuration mode.
Keep the sweep anyway, for the boxes where syslog is broken or the collector is unreachable. Do the arithmetic before you size it: pulling a config over SSH takes 3–8 seconds depending on size and auth method. Serialized across 4,000 devices that's 4 to 9 hours. At 50 parallel workers it's 5 to 12 minutes, which is cheap enough to run twice a day and still call it a backstop rather than a primary detector.
Classify before you page anyone
A diff is not an incident, and a tool that treats them as the same thing trains your team to ignore it. Route every detected change into one of four buckets before it reaches a human:
| Class | Example | Action |
|---|---|---|
| Noise | ntp clock-period | Suppress at parse |
| Dynamic | BGP-learned state, DHCP bindings, dynamic crypto maps | Exclude from baseline |
| Unauthorized | New local user, new SNMP community, ACL permit any | Page immediately |
| Unmanaged | Device absent from inventory, no owner | Weekly digest ticket |
The fourth bucket is the one teams skip, and it's the one that matters most: an unowned device is a device where every change is unauthorized, including the ones that look routine.
The only drift alert worth waking someone for is a change to an authentication, access-control, or routing-policy line — everything else can wait for the morning digest.
Remediation needs a rollback timer or it will burn you
Cisco already ships the right primitive. configure replace applies an entire config atomically rather than line-by-line the way configure terminal does, and with a timer — configure replace nvram:golden.cfg time 5 — the device self-reverts after 5 minutes unless an operator confirms. That dead-man's switch is the entire difference between "we auto-remediate" and "we auto-outage."
Rules that survive contact with production:
- Auto-remediate only classes that have been page-verified for 90 days with zero false positives.
- Never auto-remediate a device with an open change ticket or an active maintenance window.
- Never start at core. Begin at access layer, where the blast radius is one floor of one building.
- Require post-replace verification — BGP sessions established, interface count unchanged, SSH reachable — before the timer is cancelled.
Where this is going: drift becomes a control loop
Today most drift detection is archaeology: something changed, we found it later, we argued about it in a review. The direction of travel is toward the golden config being rendered from a source of truth rather than captured from a device. When intent is generated, reconciliation stops being a weekly report and becomes a continuous loop, and any running-config that isn't in the source of truth is illegitimate by definition — not suspicious, not worth a discussion, just out of policy. At that point the interesting question stops being "did the device drift?" and becomes "who changed the source of truth, and did that change get reviewed?" The teams that get there first won't have the best diff engine. They'll be the ones whose normalization list and drift taxonomy were disciplined enough that they could let the loop act on its own.

