Showing link impairments#
With the containerlab tools netem show
command users can list all link impairments for a given containerlab node.
For links with no associated qdisc the output will contain N/A
values.
Usage#
Flags#
node#
With the mandatory --node | -n
flag a user specifies the name of the containerlab node to show link impairments on.
format#
The optional --format | -f flag can be used to choose the output format. The default value is table, which displays the output in a formatted table. Specifying json returns the link impairment details in JSON format.
Examples#
Showing link impairments for a node#
containerlab tools netem show -n clab-netem-r1
+-----------+-------+--------+-------------+-------------+
| Interface | Delay | Jitter | Packet Loss | Rate (kbit) |
+-----------+-------+--------+-------------+-------------+
| lo | N/A | N/A | N/A | N/A |
| eth0 | N/A | N/A | N/A | N/A |
| eth1 | 15ms | 2ms | 0.00 | 0 |
+-----------+-------+--------+-------------+-------------+
Showing link impairments for a node in json format#
When displaying the netem details in json format, the fields have the following types:
- delay - string with the time suffix (ms, s, etc)
- jitter - string with the time suffix (ms, s, etc)
- packet_loss - a value with a floating point and 2 decimal places
- rate - an integer value expressed in kbit/s
- corruption - a value with a floating point and 2 decimal places