DEVLINK(8) Linux DEVLINK(8)

# [NAME](#NAME)

devlink - Devlink tool

# [SYNOPSIS](#SYNOPSIS)

**devlink** \[ *OPTIONS* ] { *dev*|*port*|*monitor*|*sb*|*resource*|*region*|*health*|*trap*|*rate*|*lc*|*dpipe* } { *COMMAND* | **help** }

**devlink** \[ **-force** ] **-batch filename**

# [OPTIONS](#OPTIONS)

[**-V**, **--Version**](#V)

Print the version of the **devlink** utility and exit.

[**-b**, **-batch** &lt;FILENAME&gt;](#b)

Read commands from provided file or standard input and invoke them. The first failure will cause termination of devlink.

[**-force**](#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**](#n)

Turn off printing out nice names, for example netdevice ifnames instead of devlink port identification.

[**-j**, **--json**](#j)

Generate JSON output.

[**-p**, **--pretty**](#p)

When combined with -j generate a pretty JSON output.

[**-v**, **--verbose**](#v)

Turn on verbose output.

[**-s**, **--statistics**](#s)

Output statistics.

[**-N**, **-Netns** &lt;NETNSNAME&gt;](#N)

Switches to the specified network namespace.

[**-i**, **--iec**](#i)

Print human readable rates in IEC units (e.g. 1Ki = 1024).

[**-x**, **--hex**](#x)

Print dump numbers in hexadecimal format.

## [*OBJECT*](#OBJECT)

[**dev**](#dev)

\- devlink device.

[**port**](#port)

\- devlink port.

[**monitor**](#monitor)

\- watch for netlink messages.

[**sb**](#sb)

\- devlink shared buffer configuration.

[**resource**](#resource)

\- devlink device resource configuration.

[**region**](#region)

\- devlink address region access.

[**health**](#health)

\- devlink reporting and recovery.

[**trap**](#trap)

\- devlink trap configuration.

[**rate**](#rate)

\- devlink rate object configuration.

[**lc**](#lc)

\- devlink line card configuration.

[**dpipe**](#dpipe)

\- devlink datapath pipeline visualization.

## [*COMMAND*](#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)

Exit status is 0 if command was successful or a positive integer upon failure.

# [SEE ALSO](#SEE_ALSO)

[**devlink-dev**(8)](/man/os/iproute2/devlink-dev.8), [**devlink-port**(8)](/man/os/iproute2/devlink-port.8), [**devlink-monitor**(8)](/man/os/iproute2/devlink-monitor.8), [**devlink-sb**(8)](/man/os/iproute2/devlink-sb.8), [**devlink-resource**(8)](/man/os/iproute2/devlink-resource.8), [**devlink-region**(8)](/man/os/iproute2/devlink-region.8), [**devlink-health**(8)](/man/os/iproute2/devlink-health.8), [**devlink-trap**(8)](/man/os/iproute2/devlink-trap.8), [**devlink-rate**(8)](/man/os/iproute2/devlink-rate.8), [**devlink-lc**(8)](/man/os/iproute2/devlink-lc.8), [**devlink-dpipe**(8)](/man/os/iproute2/devlink-dpipe.8)

# [REPORTING BUGS](#REPORTING_BUGS)

Report any bugs to the Network Developers mailing list **&lt;netdev@vger.kernel.org&gt;** where the development and maintenance is primarily done. You do not have to be subscribed to the list to send a message there.

# [AUTHOR](#AUTHOR)

Jiri Pirko &lt;jiri@mellanox.com&gt;

14 Mar 2016 iproute2

---

Document: devlink(8) from iproute2 7.2.0-r0 (Chainguard OS)
Source: https://kernel.googlesource.com/pub/scm/network/iproute2/iproute2
