1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/tools/tc-dump.sh
Steffen Vogel ab5a3004bf Use spaces for indention of shell scripts
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2024-02-29 21:54:10 +01:00

14 lines
384 B
Bash
Executable file

#!/usr/bin/env bash
#
# Dump Linux traffic control state to screen.
#
# Author: Steffen Vogel <post@steffenvogel.de>
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
IF=$1
for cmd in qdisc filter class; do
echo "======= $IF: $cmd ========"
tc -s -d -p $cmd show dev $IF
done