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   OBJECT
62       dev    - devlink device.
63
64
65       port   - devlink port.
66
67
68       monitor
69              - watch for netlink messages.
70
71
72       sb     - devlink shared buffer configuration.
73
74
75       resource
76              - devlink device resource configuration.
77
78
79       region - devlink address region access
80
81
82       health - devlink reporting and recovery
83
84
85       trap   - devlink trap configuration
86
87
88   COMMAND
89       Specifies the action to perform on the object.  The set of possible ac‐
90       tions depends on the object type.  As a rule, it is possible to show
91       (or list ) objects, but some objects do not allow all of these opera‐
92       tions or have some additional commands. The help command is available
93       for all objects. It prints out a list of available commands and argu‐
94       ment syntax conventions.
95
96       If no command is given, some default command is assumed.  Usually it is
97       list or, if the objects of this class cannot be listed, help.
98
99

EXIT STATUS

101       Exit status is 0 if command was successful or a positive integer upon
102       failure.
103
104

SEE ALSO

106       devlink-dev(8), devlink-port(8), devlink-monitor(8), devlink-sb(8), de‐
107       vlink-resource(8), devlink-region(8), devlink-health(8), devlink-
108       trap(8),
109
110

REPORTING BUGS

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

AUTHOR

119       Jiri Pirko <jiri@mellanox.com>
120
121
122
123iproute2                          14 Mar 2016                       DEVLINK(8)
Impressum