4.3. Display traffic control configurations (tcshow command)

tcshow is a command to display the current traffic control settings for network interface(s).

4.3.1. tcshow command help

usage: tcshow [-h] [--version] [--tc-command | --tc-script]
              [--debug | --quiet] [--stacktrace] [--ipv6] [--color]
              device [device ...]

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. these commands
                are not actually executed.
  --tc-script   generate a shell script file that described tc commands. this
                tc script execution result nearly equivalent with the tcconfig
                command. the script can be executed without tcconfig package
                installation.
  --debug       for debug print.
  --quiet       suppress execution log messages.
  --color       colorize the output.

Debug:
  --stacktrace  print stack trace for debug information. --debug option
                required to see the debug print.

Traffic Control:
  device        network device name (e.g. eth0)
  --ipv6        Display IPv6 shaping rules. Defaults to show IPv4 shaping
                rules.

        Documentation: http://tcconfig.rtfd.io/
        Issue tracker: https://github.com/thombashi/tcconfig/issues

4.3.1.1. Example

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

Note

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).

Note

tcshow may output improper values when using tbf.