The show command has additional formatting options:
-s
, -stats
, -statistics
output more statistics about packet usage.
-d
, -details
output more detailed information about rates and cell
sizes.
-r
, -raw
output raw hex values for handles.
-p
, -pretty
for u32 filter, decode offset and mask values to
equivalent filter commands based on TCP/IP. In JSON
output, add whitespace to improve readability.
-iec
print rates in IEC units (ie. 1K = 1024).
-g
, -graph
shows classes as ASCII graph. Prints generic stats info
under each class if -s
option was specified. Classes can
be filtered only by dev
option.
-c
[color
][=
{always
|auto
|never
}
Configure color output. If parameter is omitted or always
,
color output is enabled regardless of stdout state. If
parameter is auto
, stdout is checked to be a terminal
before enabling color output. If parameter is never
, color
output is disabled. If specified multiple times, the last
one takes precedence. This flag is ignored if -json
is
also given.
-j
, -json
Display results in JSON format.
-nm
, -name
resolve class name from /etc/iproute2/tc_cls
file or from
file specified by -cf
option. This file is just a mapping
of classid
to class name:
# Here is comment
1:40 voip # Here is another comment
1:50 web
1:60 ftp
1:2 home
tc
will not fail if -nm
was specified without -cf
option
but /etc/iproute2/tc_cls
file does not exist, which makes
it possible to pass -nm
option for creating tc
alias.
-br
, -brief
Print only essential data needed to identify the filter
and action (handle, cookie, etc.) and stats. This option
is currently only supported by tc filter show
and tc
actions ls
commands.