Course contents

Unit 9: Monitoring and troubleshootingLesson 9.2 (2 of 5 in this unit)54 of 62 in the Cisco SD-WAN course

WAN Edge show commands and interpretation

The show sdwan commands on an IOS XE SD-WAN router, in the order to run them, and how to read the fields that matter.

Intermediate · 12 min read

You'll learn to run the main show commands on a WAN Edge in a sensible order, read the fields that matter in each, and say which plane a fault belongs to.

Technical definition

WAN Edge show commands are the commands on an IOS XE SD-WAN router that display the state of the control connections, OMP, TLOCs, BFD sessions, received policy and application-route measurements. They are the router's own view, and they are the reference when the Manager's dashboard and the user's experience disagree.

One order, every time

There are many show commands, and the habit that matters is to run them in the order the fabric is built: control connections first, because everything else depends on them; then OMP, which carries the routes and TLOCs; then BFD, which proves the tunnels; and last forwarding, policy and measurements. If an early step is bad, later steps will also look bad, and reading them first just creates noise.

Diagram
Five questions, in order, for a missing path
Five questions, in order, for a missing path
Five questions, in order, for a missing pathCheck control connections first, then OMP peers and routes, then whether the route's TLOC is present, then BFD sessions to that TLOC, and last the forwarding path, policy and MTU. The first question that gets a bad answer is where to look.1Control connections up?show sdwan control connections2OMP peer up, routes received?show sdwan omp summary3Route resolved, TLOC present?show sdwan omp routes / tlocs4BFD session up to that TLOC?show sdwan bfd sessions5Forwarding, policy and MTU?ping in the VRF, policy, show ip route vrfCommands are for IOS XE SD-WAN routers; names vary by release.

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Work down the list and stop at the first bad answer. A fault at step 1 explains everything below it, so later checks are not yet useful.

The commands

Diagram
Command, question and what to look at
Command, question and what to look at
CommandQuestionRead these fields
show sdwan control connectionsIs the router connected to its controllers?Peer type, state, local colour
show sdwan control connection-historyWhy did a connection fail or drop?Local and remote error, repeat count
show sdwan control local-propertiesHow does the router identify itself?System IP, site ID, organization, certificate and clock
show sdwan omp summaryIs OMP up and carrying routes?Oper state, routes and TLOCs received, installed and sent
show sdwan omp routesWhich prefixes were learned and chosen?Prefix, from peer, status codes
show sdwan omp tlocsWhich tunnel endpoints are known?TLOC, status, preference
show sdwan bfd summaryHow many tunnels are up?Sessions total, up, flaps
show sdwan bfd sessionsWhich tunnels are up or down?Remote system IP, colour, state, transitions
show sdwan app-route statsHow is each tunnel performing?Loss, latency, jitter per tunnel
show sdwan policy from-vsmartWhat policy did the Controller send?Policy name, direction, VPN list
show sdwan running-configWhat is configured as SD-WAN?System block, tunnel interfaces, colour
IOS XE SD-WAN syntax. Availability and fields depend on the release.

What a clean pass looks like

A pass is only useful if you know what you expect. The table gives the healthy reading for each step on the lab branch BR-01 (system IP 10.255.2.1, site ID 101), so a different value stands out.

Diagram
A clean pass on BR-01
A clean pass on BR-01
StepHealthy readingA reason to stop and look
control connectionsController and Manager upAny other state, or a Controller missing
control local-propertiesSystem IP 10.255.2.1, site 101, organization as agreed, both certificate lines installedA different value or a certificate line that is not installed
omp summaryoper-state UP and routes receivedDown, or no routes received
omp tlocsThe hub TLOCs are listedA hub missing from the list
bfd summarysessions-up equals sessions-totalFewer up than total
app-route statsLoss, latency and jitter inside the class limitsA tunnel over a limit, or a tunnel with no row
policy from-vsmartThe policy name you expectNothing listed on a site that should have a policy
The class limits come from the SLA class in the policy, so the numbers differ by design.

Reading three of them

Control connections show state per peer. The peer types are the Validator, Controller and Manager. A healthy router has Controller and Manager connections up. The Validator line usually appears only briefly.

Diagram
Three outputs, three questions
Three outputs, three questions

Local properties answer who the router is, with its system IP, site ID and certificate status. The OMP summary answers whether routes are flowing, with routes received, installed and sent. The BFD summary answers how many tunnels are up, with total, up and flap counts.

BR-01 outputs
  • Identitysystem IP, site ID,certificates installed
  • Routing12 received,8 installed
  • Tunnels3 of 4 up,2 flaps
Each output answers one question, so read it for that answer first.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan control local-properties
personality            vedge
system-ip              10.255.2.1
site-id                101
organization-name      LAB-EXAMPLE
certificate-status     Installed
root-ca-chain-status   Installed
time-since-last-boot   2:14:07
dns-name               vbond.example.net
Check that the system IP, site ID and organisation name are what you expect, and that both certificate lines say installed. Many control faults are visible here before you look anywhere else.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan omp summary
oper-state          UP
admin-state         UP
personality         vedge
omp-uptime          0:02:51:33
routes-received     12
routes-installed    8
routes-sent         4
tlocs-received      5
tlocs-installed     5
tlocs-sent          2
OMP is up. The router received 12 routes and installed 8, so 4 were not installed. That is not necessarily a fault, since a route may lose to a better one, but a surprising gap is the cue to look at the route status codes in the next command.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan bfd summary
sessions-total   4
sessions-up      3
sessions-max     4
sessions-flap    2
One of four tunnels is down, and there have been two flaps. The next command, show sdwan bfd sessions, names the remote system IP and colour of the session that is down.

Which plane has the fault?

Diagram
Command to plane
Command to plane

Control, OMP, data.

  1. Control planecontrol connections
  2. Overlay routingOMP routes, TLOCs
  3. Data planeBFD, app-route
  4. Forwardingpolicy, VRF route
The command that first looks wrong names the plane.
  • Control connections down: reachability, certificates, identity. Nothing below can be trusted.
  • OMP up but routes missing: the advertising site, the Controller policy, or the receiver's filters.
  • Routes present but BFD down: transport, NAT, firewall or colour restrictions between the two TLOCs.
  • BFD up but traffic fails: policy, ACLs, MTU or service-side routing.

Worked pass: BR-01 with one tunnel down

The Manager shows BR-01 with 3 of 4 tunnels up, and no user has complained. Nothing is broken for the users yet, so this is the time to find out what has been lost. The first step in the order is the control connections.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan control connections
PEER TYPE  PEER SYSTEM IP  LOCAL COLOR   STATE
vsmart     10.255.0.11     biz-internet  up
vmanage    10.255.0.10     biz-internet  up
Both controllers are up, so the fault is not in the control plane. The next stop is the tunnels.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan bfd sessions
SYSTEM IP    SITE ID  STATE  SOURCE COLOR  REMOTE COLOR  UPTIME   TRANSITIONS
10.255.1.1   10       up     mpls          mpls          2:14:02  0
10.255.1.1   10       up     biz-internet  biz-internet  2:14:01  0
10.255.1.2   20       up     mpls          mpls          2:13:58  0
10.255.1.2   20       down   biz-internet  biz-internet  -        2
The one session that is down goes to the second hub, site 20, over the internet colour. The MPLS session to the same hub is up, so the hub is reachable, and its two transitions match the two flaps in the summary.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan app-route stats
REMOTE SYSTEM IP  LOCAL COLOR   REMOTE COLOR  LOSS  LATENCY  JITTER
10.255.1.1        mpls         mpls          0     24       2
10.255.1.1        biz-internet biz-internet  1     31       4
10.255.1.2        mpls         mpls          0     27       3
Only three tunnels have a row. A tunnel that is down has no measurements, which is why the fourth one is missing. Loss is in percent, latency and jitter in milliseconds.
Diagram
What 3 of 4 means for BR-01 (computed)
What 3 of 4 means for BR-01 (computed)
HubMPLSInternetPaths leftIf MPLS fails next
Site 10, 10.255.1.1UpUp21 path left
Site 20, 10.255.1.2UpDown1No path
Total2 of 21 of 23 of 4Site 20 unreachable
Users see nothing today because every hub still has a path. The redundancy for site 20 is gone, and a second fault would cut it off.

The outputs of one pass should agree with each other, and checking that is a quick way to catch a stale or mixed-up reading.

Diagram
Cross-checks between the BR-01 outputs (computed)
Cross-checks between the BR-01 outputs (computed)
CounterCount in the other outputAgrees?
bfd summary sessions-total 44 rows in bfd sessionsYes
bfd summary sessions-up 33 rows with state upYes
bfd summary sessions-flap 2Transitions column adds up to 0 + 0 + 0 + 2 = 2Yes
Tunnels up 33 rows in app-route statsYes
Counted from the example outputs above by script. If a summary and its detail list disagree on a live router, one of them was read at a different moment, or on a different router.
Diagram
Evidence from the pass on BR-01
Evidence from the pass on BR-01

The Manager shows three of four tunnels. The control connections are up. One session is down, the one to the second hub over the internet colour, while the MPLS session to that hub is up. The fault is on the internet path to that hub, so the next checks are the translation, the firewall and the provider on that path.

  1. SymptomManager shows 3 of 4 tunnelsno user complaint yet
  2. ControlController and Manager upthe fault is not here
  3. TunnelSite 20 over biz-internet is downMPLS to site 20 is up
  4. MeaningThe hub is reachablethe internet path to it is not
  5. NextCheck NAT, firewall and provideron that path, then compare branches
Each command removed a plane from the search, and the last one named the tunnel.

Readings that look alarming but may be fine

Diagram
Received is not installed
Received is not installed

Routes received counts every route the Controller offered. Routes installed counts the routes chosen for forwarding. A gap between them is not a fault by itself, because a better route to the same prefix can win.

routes-received 12Every route offeredincluding those that lost
routes-installed 8Routes chosen to forwardA gap needs the status codes
Read the status codes in the routes command before raising the gap.
Diagram
Look twice before you raise it
Look twice before you raise it
ReadingWhy it can be normalHow to tell
routes-installed lower than routes-receivedA better route to the same prefix wonThe status codes in show sdwan omp routes
No Validator line in the control connectionsThe Validator only introduces the router and closesController and Manager are up
Old tear_down entries in the connection historyThe history records past failuresshow sdwan control connections shows the state now
A small time-since-last-bootThe router restarted recentlyBFD sessions settle a few minutes after a restart
Each reading needs a second command before it counts as a fault.

Learn more: Control Connection and Certificate DiagnosticsOMP and BFD Fault Isolation

Test yourself

Predict · scenario 1

You are told a branch has no connectivity. Which command do you run first?

Predict · scenario 2

show sdwan bfd summary shows sessions-total 4 and sessions-up 3. What do you run next?

Predict · scenario 3

omp summary shows routes-received 12 and routes-installed 8. What is the most sensible reading?

Predict · scenario 4

bfd sessions shows the internet session to hub 2 down while the MPLS session to hub 2 is up. What does that tell you?

Predict · scenario 5

The connection history lists an old tear_down, but show sdwan control connections shows the Controller and Manager up. What do you conclude?

Predict · scenario 6

Which command shows loss, latency and jitter for each tunnel?

Predict · scenario 7

bfd summary shows sessions-total 4, sessions-up 3 and sessions-flap 2, and bfd sessions lists four rows. What should the transitions column add up to?

Predict · scenario 8

app-route stats lists three rows, while bfd summary says there are four sessions. What explains the missing row?

Predict · scenario 9

On BR-01 the tunnel to site 20 over biz-internet is down. Which second failure would leave site 20 unreachable?

FAQ

Do these commands work on a vEdge?
Older Viptela OS routers use their own syntax, for example show control connections without sdwan in the command. This course uses IOS XE SD-WAN syntax.
Where do I run them for a service VPN?
Overlay state is shown with the commands below. The service-side routing table is the normal IOS XE one, shown with commands such as show ip route vrf 10 for service VPN 10.
Are the field names the same in every release?
No. Field names and columns change between releases. The idea of each command stays the same. Use help on the device, and the command reference for your release.