How to troubleshoot / Useful command around openVswitch in XenServer

How to troubleshoot / Useful command around openVswitch in XenServer

book

Article ID: CTX217744

calendar_today

Updated On:

Description

This article provides information about ovs and command that can be used to troubleshoot ovs related issues
 


Instructions

  1. Getting general information    

# ovs-vsctl list open_vswitch

#ovs-vswitchd -V

 

  1. Check the status of openvswitch

# service openvswitch status

 

  1. List all bridges

 

# ovs-vsctl list bridge
 

  1. List All ports

# ovs-vsctl list port
 

  1. Show mac learning table for a bridge

# ovs-appctl fdb/show xenbr0

       6. Show flows on ovs

 

# ovs-dpctl show -s



7. Dump flows

 

# ovs-dpctl dump-flows xenbr0

 

8. To list bonds

 

# ovs-appctl bond/list

 

  1. To show bond properties for a bond

 

 # ovs-appctl bond/show bond0
 

Log locations for ovs

XenServer 6.0, 6.1 Log Files

In XenServer 6.0 and XenServer 6.1 all openvswitch logs have been sent through syslogd and are thus present in /var/log/messages*

XenServer 6.2+ Log Files

Starting in XenServer 6.2 and beyond all openvswitch logs have been sent through syslogd and are thus present in /var/log/daemon*

Additional Information

https://support.citrix.com/article/CTX138335   - How to Validate If XenServer is Using Bridge or vSwitch for the Network Stack

https://support.citrix.com/article/CTX131752  -  How to Change XenServer Network Backend to Linux Bridge