devlink8
Devlink tool
Usage
devlink [OPTIONS]
{dev | port | monitor | sb | resource | region | health | trap | rate | lc | dpipe}
{COMMAND | help}
devlink [-force]
-batch
filename
Options
-
-V, --Version -
Print the version of the
devlinkutility and exit.
-
-b, -batch <FILENAME> -
Read commands from provided file or standard input and invoke them. The first failure will cause termination of devlink.
-
-force -
Don't terminate devlink on errors in batch mode. If there were any errors during execution of the commands, the application return code will be non zero.
-
-n, --no-nice-names -
Turn off printing out nice names, for example netdevice ifnames instead of devlink port identification.
-
-j, --json -
Generate JSON output.
-
-p, --pretty -
When combined with -j generate a pretty JSON output.
-
-v, --verbose -
Turn on verbose output.
-
-s, --statistics -
Output statistics.
-
-N, -Netns <NETNSNAME> -
Switches to the specified network namespace.
-
-i, --iec -
Print human readable rates in IEC units (e.g. 1Ki = 1024).
-
-x, --hex -
Print dump numbers in hexadecimal format.
Object
|
- devlink device. |
|---|---|
|
- devlink port. |
|
- watch for netlink messages. |
|
- devlink shared buffer configuration. |
|
- devlink device resource configuration. |
|
- devlink address region access. |
|
- devlink reporting and recovery. |
|
- devlink trap configuration. |
|
- devlink rate object configuration. |
|
- devlink line card configuration. |
|
- devlink datapath pipeline visualization. |
Command
Specifies the action to perform on the object. The set of possible actions depends on the object type. As a rule, it is possible to show (or list ) objects, but some objects do not allow all of these operations or have some additional commands. The help command is available for all objects. It prints out a list of available commands and argument syntax conventions.
If no command is given, some default command is assumed. Usually it is list or, if the objects of this class cannot be listed, help.
Exit status
Exit status is 0 if command was successful or a positive integer upon failure.
Releases
6 releases since Debian 9 (Stretch); the text changed 4 times.
--Version since Debian 10 (Buster);
--hex since Debian 12 (Bookworm);
--iec since Debian 12 (Bookworm);
--json since Debian 10 (Buster);
--no-nice-names since Debian 10 (Buster);
--pretty since Debian 10 (Buster);
--statistics since Debian 11 (Bullseye);
--verbose since Debian 10 (Buster);
-N since Debian 11 (Bullseye);
-Netns since Debian 11 (Bullseye);
-b since Debian 10 (Buster);
-batch since Debian 10 (Buster);
-force since Debian 10 (Buster);
-i since Debian 12 (Bookworm);
-j since Debian 10 (Buster);
-p since Debian 10 (Buster);
-s since Debian 11 (Bullseye);
-v since Debian 10 (Buster);
-x since Debian 12 (Bookworm).
-Version until Debian 9 (Stretch);
-no-nice-names until Debian 9 (Stretch).