Root/package/qos-scripts/files/usr/bin/qos-stat

1#!/bin/sh
2echo '#################'
3echo '# EGRESS STATUS #'
4echo '#################'
5echo
6for iface in $(tc qdisc show | grep hfsc | awk '{print $5}' | grep -v imq); do
7    tc -s class show dev "$iface"
8done
9
10echo '##################'
11echo '# INGRESS STATUS #'
12echo '##################'
13echo
14for iface in $(tc qdisc show | grep hfsc | awk '{print $5}' | grep imq); do
15    tc -s class show dev "$iface"
16done
17

Archive Download this file



interactive