Added support for traffic control graphs. It integrates with fireqos to get class names.
Added support for traffic control graphs. It integrates with fireqos to get class names.
Costa Tsaousis (ktsaou) committed
Mar 25, 2014 at 03:08 UTC
4e47fccb6e157bb2a67ac8ea7bf6edc1d4914a80
1 file changed
+21
tc-all.sh
new
+21
@@ -0,0 +1,21 @@
1
+#!/bin/sh
2
+
3
+t=$1
4
+x=$(( t + 1 - 1 ))
5
+if [ "$x" -eq 0 ]
6
+ then
7
+ x=1
8
+fi
9
+
10
+while [ 1 ]
11
+do
12
+ /sbin/tc qdisc show | cut -d ' ' -f 5 | sort -u | while read x
13
+ do
14
+ echo
15
+ echo "DEVICE $x"
16
+ echo
17
+ /sbin/tc -s class show dev $x
18
+ done
19
+
20
+ sleep $x
21
+done