AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.147.49.19


Current Path : /snap/lxd/31333/share/openvswitch/scripts/
Upload File :
Current File : //snap/lxd/31333/share/openvswitch/scripts/ovs-bugtool-get-port-stats

#! /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