summaryrefslogtreecommitdiff
path: root/package/qos-scripts/files/usr/bin/qos-stat
blob: fc940a82183ef3211aef3d02d6f197d44af0b825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
echo '#################'
echo '# EGRESS STATUS #'
echo '#################'
echo
for iface in $(tc qdisc show | grep hfsc | awk '{print $5}' | grep -v imq); do
	tc -s class show dev "$iface"
done

echo '##################'
echo '# INGRESS STATUS #'
echo '##################'
echo
for iface in $(tc qdisc show | grep hfsc | awk '{print $5}' | grep imq); do
	tc -s class show dev "$iface"
done