Linux
devlink - Devlink tool
| Use Case | Command | Description |
|---|---|---|
| ð Show all devlink devices | devlink dev show |
Display all devlink-capable devices and their attributes |
| ð Show devlink ports | devlink port show |
List all devlink ports and their configurations |
| ðĄ Monitor netlink messages | devlink monitor |
Watch for devlink netlink events in real-time |
| ðū View shared buffer config | devlink sb show |
Display shared buffer pool and threshold settings |
| ð§ View resource configuration | devlink resource show |
Show device resource tree (e.g. SR-IOV, memory pools) |
| ðïļ Access address regions | devlink region show |
List and dump devlink address regions for debugging |
| ðĨ Show health reporters | devlink health show |
Display health monitoring state and trigger recovery |
| ðŠĪ Show trap configuration | devlink trap show |
List hardware trap groups and packet trap actions |
| ð JSON output | devlink -j dev show |
Output device information in JSON format |
| ð Pretty JSON output | devlink -j -p dev show |
Output device information in pretty-printed JSON |
| ðĶ Batch mode | devlink -b filename |
Execute commands from a file |
| âđïļ Get help for a command | devlink dev help |
Show help for the dev object |
devlink [ OPTIONS ] { dev|port|monitor|sb|resource|region|health|trap } { COMMAND | help }
devlink [ -force ] -batch filename
Print the version of the devlink utility and exit.
Read commands from provided file or standard input and invoke them. First failure will cause termination of devlink.
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.
Turn off printing out nice names, for example netdevice ifnames instead of devlink port identification.
Generate JSON output.
When combined with -j generate a pretty JSON output.
Turn on verbose output.
Output statistics.
Switches to the specified network namespace.
Print human readable rates in IEC units (e.g. 1Ki = 1024).
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
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 is 0 if command was successful or a positive integer upon failure.
devlink-dev(8), devlink-port(8), devlink-monitor(8), devlink-sb(8), devlink-resource(8), deâvlink-region(8), devlink-health(8), devlink-trap(8),
Report any bugs to the Network Developers mailing list <netdev AT vger.org> where the development and maintenance is primarily done. You do not have to be subscribed to the list to send a message there.
Jiri Pirko <jiri AT mellanox.com>
Generated by phpman v4.10.0-16-g1a0e228 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-22 22:09 @216.73.217.0
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)