How to see STP status in OVS

George Shuklin
OpsOps
Published in
1 min readNov 17, 2021

STP is spanning tree protocol and OVS is openvswitch.

Documentation for OVS is somewhat sparse. There are complicated topics covered, and some basics skipped.

That’s because most of appctl commands are hidden and can be viewed only by calling ‘ovs-appctl list-commands’, and it requires root privileges! They are not in man pages nor in documentation.

The STP status command is very simple: ovs-appctl stp/show

Example:

# ovs-appctl stp/show---- intercept ----
Root ID:
stp-priority 32768
stp-system-id 22:48:5b:61:c7:46
stp-hello-time 2s
stp-max-age 20s
stp-fwd-delay 15s
This bridge is the root
Bridge ID:
stp-priority 32768
stp-system-id 22:48:5b:61:c7:46
stp-hello-time 2s
stp-max-age 20s
stp-fwd-delay 15s
Interface Role State Cost Pri.Nbr
---------- ---------- ---------- ----- -------
ens5 designated forwarding 19 128.1
outside_tr designated forwarding 19 128.2
outside_tr designated forwarding 19 128.3
ens3 designated forwarding 19 128.4
---- cleared ----
Root ID:
stp-priority 32768
stp-system-id 22:48:5b:61:c7:46
stp-hello-time 2s
stp-max-age 20s
stp-fwd-delay 15s
root-port inside_trafi1
root-path-cost 21
Bridge ID:
stp-priority 32768
stp-system-id b6:a4:ea:63:44:45
stp-hello-time 2s
stp-max-age 20s
stp-fwd-delay 15s
Interface Role State Cost Pri.Nbr
---------- ---------- ---------- ----- -------
safe6_in_b designated forwarding 2 128.1
safe_in_br designated forwarding 2 128.2
inside_tra designated forwarding 19 128.3
inside_tra root forwarding 19 128.4

--

--

George Shuklin
OpsOps

I work at Servers.com, most of my stories are about Ansible, Ceph, Python, Openstack and Linux. My hobby is Rust.