man > devlink(8)

📄 DEVLINK(8)

Linux

DEVLINK(8)

📝 NAME

devlink - Devlink tool

🚀 Quick Reference

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

📋 SYNOPSIS

devlink [ OPTIONS ] { dev|port|monitor|sb|resource|region|health|trap } { COMMAND | help }

devlink [ -force ] -batch filename

⚙ïļ OPTIONS

ðŸ”đ -V, --Version

Print the version of the devlink utility and exit.

ðŸ”đ -b, -batch <FILENAME>

Read commands from provided file or standard input and invoke them. 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).

ðŸ“Ķ OBJECT

ðŸ”đ dev

devlink device.

ðŸ”đ port

devlink port.

ðŸ”đ monitor

watch for netlink messages.

ðŸ”đ sb

devlink shared buffer configuration.

ðŸ”đ resource

devlink device resource configuration.

ðŸ”đ region

devlink address region access

ðŸ”đ health

devlink reporting and recovery

ðŸ”đ trap

devlink trap configuration

💎 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.

📚 SEE ALSO

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),

🐛 REPORTING BUGS

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.

ðŸ‘Ī AUTHOR

Jiri Pirko <jiri AT mellanox.com>

devlink(8)
📄 DEVLINK(8) 📝 NAME 🚀 Quick Reference 📋 SYNOPSIS ⚙ïļ OPTIONS
ðŸ”đ -V, --Version ðŸ”đ -b, -batch <FILENAME> ðŸ”đ -force ðŸ”đ -n, --no-nice-names ðŸ”đ -j, --json ðŸ”đ -p, --pretty ðŸ”đ -v, --verbose ðŸ”đ -s, --statistics ðŸ”đ -N, -Netns <NETNSNAME> ðŸ”đ -i, --iec ðŸ“Ķ OBJECT 💎 COMMAND
🚊 EXIT STATUS 📚 SEE ALSO 🐛 REPORTING BUGS ðŸ‘Ī AUTHOR

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)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^