1DEVLINK(8)                           Linux                          DEVLINK(8)
2
3
4

NAME

6       devlink - Devlink tool
7

SYNOPSIS

9       devlink [ OPTIONS ] { dev|port|monitor|sb|resource } { COMMAND | help }
10
11
12       devlink [ -force ] -batch filename
13
14
15

OPTIONS

17       -V, --Version
18              Print the version of the devlink utility and exit.
19
20
21       -b, -batch <FILENAME>
22              Read commands from provided file or standard input and invoke
23              them.  First failure will cause termination of devlink.
24
25
26       -force Don't terminate devlink on errors in batch mode.  If there were
27              any errors during execution of the commands, the application
28              return code will be non zero.
29
30
31       -n, --no-nice-names
32              Turn off printing out nice names, for example netdevice ifnames
33              instead of devlink port identification.
34
35
36       -j, --json
37              Generate JSON output.
38
39
40       -p, --pretty
41              When combined with -j generate a pretty JSON output.
42
43
44       -v, --verbose
45              Turn on verbose output.
46
47
48   OBJECT
49       dev    - devlink device.
50
51
52       port   - devlink port.
53
54
55       monitor
56              - watch for netlink messages.
57
58
59       sb     - devlink shared buffer configuration.
60
61
62       resource
63              - devlink device resource configuration.
64
65
66   COMMAND
67       Specifies the action to perform on the object.  The set of possible
68       actions depends on the object type.  As a rule, it is possible to show
69       (or list ) objects, but some objects do not allow all of these opera‐
70       tions or have some additional commands. The help command is available
71       for all objects. It prints out a list of available commands and argu‐
72       ment syntax conventions.
73
74       If no command is given, some default command is assumed.  Usually it is
75       list or, if the objects of this class cannot be listed, help.
76
77

EXIT STATUS

79       Exit status is 0 if command was successful or a positive integer upon
80       failure.
81
82

SEE ALSO

84       devlink-dev(8), devlink-port(8), devlink-monitor(8), devlink-sb(8),
85       devlink-resource(8),
86
87

REPORTING BUGS

89       Report any bugs to the Network Developers mailing list <net‐
90       dev@vger.kernel.org> where the development and maintenance is primarily
91       done.  You do not have to be subscribed to the list to send a message
92       there.
93
94

AUTHOR

96       Jiri Pirko <jiri@mellanox.com>
97
98
99
100iproute2                          14 Mar 2016                       DEVLINK(8)
Impressum