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

EXIT STATUS

97       Exit status is 0 if command was successful or a positive integer upon
98       failure.
99
100

SEE ALSO

102       devlink-dev(8), devlink-port(8), devlink-monitor(8), devlink-sb(8),
103       devlink-resource(8), devlink-region(8), devlink-health(8), devlink-
104       trap(8),
105
106

REPORTING BUGS

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

AUTHOR

115       Jiri Pirko <jiri@mellanox.com>
116
117
118
119iproute2                          14 Mar 2016                       DEVLINK(8)
Impressum