blob: 12d489440a3d68712c36e4aaa29985b777a9eddb [file] [log] [blame]
.TH DEVLINK 8 "14 Mar 2016" "iproute2" "Linux"
devlink \- Devlink tool
.ad l
.in +8
.ti -8
.B devlink
.RI "[ " OPTIONS " ] { " dev | port | monitor | sb | resource | region | health | trap " } { " COMMAND " | "
.BR help " }"
.ti -8
.B devlink
.RB "[ " -force " ] "
.BI "-batch " filename
.BR "\-V" , " --Version"
Print the version of the
.B devlink
utility and exit.
.BR "\-b", " \-batch " <FILENAME>
Read commands from provided file or standard input and invoke them.
First failure will cause termination of devlink.
.BR "\-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.
.BR "\-n" , " --no-nice-names"
Turn off printing out nice names, for example netdevice ifnames instead of devlink port identification.
.BR "\-j" , " --json"
Generate JSON output.
.BR "\-p" , " --pretty"
When combined with -j generate a pretty JSON output.
.BR "\-v" , " --verbose"
Turn on verbose output.
.BR "\-s" , " --statistics"
Output statistics.
.B dev
- devlink device.
.B port
- devlink port.
.B monitor
- watch for netlink messages.
.B sb
- devlink shared buffer configuration.
.B resource
- devlink device resource configuration.
.B region
- devlink address region access
.B health
- devlink reporting and recovery
.B trap
- 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
.B show
.B list
) objects, but some objects do not allow all of these operations
or have some additional commands. The
.B 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
.B list
or, if the objects of this class cannot be listed,
.BR "help" .
Exit status is 0 if command was successful or a positive integer upon failure.
.BR devlink-dev (8),
.BR devlink-port (8),
.BR devlink-monitor (8),
.BR devlink-sb (8),
.BR devlink-resource (8),
.BR devlink-region (8),
.BR devlink-health (8),
.BR devlink-trap (8),
Report any bugs to the Network Developers mailing list
.B <>
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 <>