-
Notifications
You must be signed in to change notification settings - Fork 0
/
osdbg.sh
executable file
·59 lines (50 loc) · 1.02 KB
/
osdbg.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
set -x
echo
echo "New capture: $1"
echo
echo "=========="
sudo virsh list
echo "=========="
ip link
echo "=========="
ip addr
echo "=========="
ip route
echo "=========="
for i in $(ip netns); do
echo "-----"
sudo ip netns exec $i ip link
echo "-----"
sudo ip netns exec $i ip addr
echo "-----"
sudo ip netns exec $i ip route
done
#sudo ovsdb-client dump
echo "=========="
sudo brctl show
echo "=========="
sudo ovs-dpctl show
echo "=========="
sudo ovs-dpctl dump-flows
echo "=========="
sudo ovs-vsctl show
echo "=========="
sudo ovs-vsctl list Interface | grep -E '^name|^ofport '
echo "=========="
for br in `sudo ovs-vsctl list-br`; do
sudo ovs-vsctl list bridge $br | grep OpenFlow13
if [ $? -eq 0 ]; then
proto="OpenFlow13"
else
proto="OpenFlow10"
fi
echo "-----"
sudo ovs-ofctl --protocol=$proto show $br
echo "-----"
sudo ovs-ofctl --protocol=$proto dump-flows $br
echo "-----"
sudo ovs-appctl fdb/show $br
done
set +o xtrace
exit 0