4.3. Display traffic control configurations (tcshow command)

tcshow is a command to display traffic control to network interface(s).


Scope of tcshow command is limited to parameters that can be set with tcset (i.e. tcshow is not a general purpose tool to display all of the parameters of the tc command).

4.3.1. tcshow command help

usage: tcshow [-h] [–version] [–tc-command | –tc-script]
[–debug | –quiet] –device DEVICE [–ipv6]
optional arguments:
-h, --help show this help message and exit
--version show program’s version number and exit
--tc-command display tc commands to be executed and exit. commands are not actually executed.
--tc-script generate a script file that described tc commands to be executed by this command.
--debug for debug print.
--quiet suppress execution log messages.
Traffic Control:
--device DEVICE
 network device name (e.g. eth0)
--ipv6 Display IPv6 shaping rules. Defaults to show IPv4 shaping rules. Example

# tcset --device eth0 --delay 10 --delay-distro 2  --loss 0.01 --rate 0.25M --network --port 8080
# tcset --device eth0 --delay 1 --loss 0.02 --rate 500K --direction incoming
# tcshow --device eth0
    "eth0": {
        "outgoing": {
            "network=, port=8080": {
                "delay": "10.0",
                "loss": "0.01",
                "rate": "250K",
                "delay-distro": "2.0"
            "network=": {}
        "incoming": {
            "network=": {
                "delay": "1.0",
                "loss": "0.02",
                "rate": "500K"