File: ovs-bugtool-get-port-stats

package info (click to toggle)
openvswitch 3.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 97,848 kB
  • sloc: sh: 1,643,930; ansic: 313,386; python: 27,939; xml: 21,526; makefile: 546; javascript: 191
file content (15 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/bash

#Iterate through each port of every bridge and print
#the port statistics

for bridge in `ovs-vsctl -- --real list-br`
do
    echo "${bridge} : "
    echo "  ${bridge} : `ovs-vsctl get interface ${bridge} statistics`"
    for iface in `ovs-vsctl list-ifaces ${bridge}`
    do
        echo "  ${iface} : `ovs-vsctl get interface ${iface} statistics`"
    done
    echo -e "\n"
done