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

NAME

6       devlink - Devlink tool
7

SYNOPSIS

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

OPTIONS

18       -V, --Version
19              Print the version of the devlink utility and exit.
20
21
22       -b, -batch <FILENAME>
23              Read commands from provided file or standard input and invoke
24              them.  First failure will cause termination of devlink.
25
26
27       -force Don't terminate devlink on errors in batch mode.  If there were
28              any errors during execution of the commands, the application re‐
29              turn code will be non zero.
30
31
32       -n, --no-nice-names
33              Turn off printing out nice names, for example netdevice ifnames
34              instead of devlink port identification.
35
36
37       -j, --json
38              Generate JSON output.
39
40
41       -p, --pretty
42              When combined with -j generate a pretty JSON output.
43
44
45       -v, --verbose
46              Turn on verbose output.
47
48
49       -s, --statistics
50              Output statistics.
51
52
53       -N, -Netns <NETNSNAME>
54              Switches to the specified network namespace.
55
56
57       -i, --iec
58              Print human readable rates in IEC units (e.g. 1Ki = 1024).
59
60
61       -x, --hex
62              Print dump numbers in hexadecimal format.
63
64
65   OBJECT
66       dev    - devlink device.
67
68
69       port   - devlink port.
70
71
72       monitor
73              - watch for netlink messages.
74
75
76       sb     - devlink shared buffer configuration.
77
78
79       resource
80              - devlink device resource configuration.
81
82
83       region - devlink address region access
84
85
86       health - devlink reporting and recovery
87
88
89       trap   - devlink trap configuration
90
91
92   COMMAND
93       Specifies the action to perform on the object.  The set of possible ac‐
94       tions depends on the object type.  As a rule, it is possible to show
95       (or list ) objects, but some objects do not allow all of these opera‐
96       tions or have some additional commands. The help command is available
97       for all objects. It prints out a list of available commands and argu‐
98       ment syntax conventions.
99
100       If no command is given, some default command is assumed.  Usually it is
101       list or, if the objects of this class cannot be listed, help.
102
103

EXIT STATUS

105       Exit status is 0 if command was successful or a positive integer upon
106       failure.
107
108

SEE ALSO

110       devlink-dev(8), devlink-port(8), devlink-monitor(8), devlink-sb(8), de‐
111       vlink-resource(8), devlink-region(8), devlink-health(8), devlink-
112       trap(8),
113
114

REPORTING BUGS

116       Report any bugs to the Network Developers mailing list <net‐
117       dev@vger.kernel.org> where the development and maintenance is primarily
118       done.  You do not have to be subscribed to the list to send a message
119       there.
120
121

AUTHOR

123       Jiri Pirko <jiri@mellanox.com>
124
125
126
127iproute2                          14 Mar 2016                       DEVLINK(8)
Impressum