man-pages/man8/devlink.8.html
2021-03-31 01:06:50 +01:00

240 lines
4.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of DEVLINK</TITLE>
</HEAD><BODY>
<H1>DEVLINK</H1>
Section: Linux (8)<BR>Updated: 14 Mar 2016<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
devlink - Devlink tool
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<BR>
<B>devlink</B>
[ <I>OPTIONS</I> ] { <I>dev</I>|<I>port</I>|<I>monitor</I>|<I>sb</I>|<I>resource</I>|<I>region</I>|<I>health</I>|<I>trap</I> } { <I>COMMAND</I> |
<B>help</B> }
<P>
<P>
<BR>
<B>devlink</B>
[ <B>-force</B> ]
<B>-batch </B><I>filename</I>
<P>
<P>
<A NAME="lbAD">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
<DL COMPACT>
<DT id="1"><B>-V</B>,<B> --Version</B>
<DD>
Print the version of the
<B>devlink</B>
utility and exit.
<P>
<DT id="2"><B>-b,</B> -batch <B>&lt;FILENAME&gt;</B>
<DD>
Read commands from provided file or standard input and invoke them.
First failure will cause termination of devlink.
<P>
<DT id="3"><B>-force</B>
<DD>
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.
<P>
<DT id="4"><B>-n</B>,<B> --no-nice-names</B>
<DD>
Turn off printing out nice names, for example netdevice ifnames instead of devlink port identification.
<P>
<DT id="5"><B>-j</B>,<B> --json</B>
<DD>
Generate JSON output.
<P>
<DT id="6"><B>-p</B>,<B> --pretty</B>
<DD>
When combined with -j generate a pretty JSON output.
<P>
<DT id="7"><B>-v</B>,<B> --verbose</B>
<DD>
Turn on verbose output.
<P>
<DT id="8"><B>-s</B>,<B> --statistics</B>
<DD>
Output statistics.
<P>
<DT id="9"><B>-N,</B> -Netns <B>&lt;NETNSNAME&gt;</B>
<DD>
Switches to the specified network namespace.
<P>
</DL>
<A NAME="lbAE">&nbsp;</A>
<H3><I>OBJECT</I>
</H3>
<P>
<DL COMPACT>
<DT id="10"><B>dev</B>
<DD>
- devlink device.
<P>
<DT id="11"><B>port</B>
<DD>
- devlink port.
<P>
<DT id="12"><B>monitor</B>
<DD>
- watch for netlink messages.
<P>
<DT id="13"><B>sb</B>
<DD>
- devlink shared buffer configuration.
<P>
<DT id="14"><B>resource</B>
<DD>
- devlink device resource configuration.
<P>
<DT id="15"><B>region</B>
<DD>
- devlink address region access
<P>
<DT id="16"><B>health</B>
<DD>
- devlink reporting and recovery
<P>
<DT id="17"><B>trap</B>
<DD>
- devlink trap configuration
<P>
</DL>
<A NAME="lbAF">&nbsp;</A>
<H3><I>COMMAND</I>
</H3>
<P>
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>
(or
<B>list</B>
) objects, but some objects do not allow all of these operations
or have some additional commands. The
<B>help</B>
command is available for all objects. It prints
out a list of available commands and argument syntax conventions.
<P>
If no command is given, some default command is assumed.
Usually it is
<B>list</B>
or, if the objects of this class cannot be listed,
<B>help</B>.
<P>
<A NAME="lbAG">&nbsp;</A>
<H2>EXIT STATUS</H2>
Exit status is 0 if command was successful or a positive integer upon failure.
<P>
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?8+devlink-dev">devlink-dev</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+devlink-port">devlink-port</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+devlink-monitor">devlink-monitor</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+devlink-sb">devlink-sb</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+devlink-resource">devlink-resource</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+devlink-region">devlink-region</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+devlink-health">devlink-health</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+devlink-trap">devlink-trap</A></B>(8),
<BR>
<P>
<A NAME="lbAI">&nbsp;</A>
<H2>REPORTING BUGS</H2>
Report any bugs to the Network Developers mailing list
<B>&lt;<A HREF="mailto:netdev@vger.kernel.org">netdev@vger.kernel.org</A>&gt;</B>
where the development and maintenance is primarily done.
You do not have to be subscribed to the list to send a message there.
<P>
<A NAME="lbAJ">&nbsp;</A>
<H2>AUTHOR</H2>
Jiri Pirko &lt;<A HREF="mailto:jiri@mellanox.com">jiri@mellanox.com</A>&gt;
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="18"><A HREF="#lbAB">NAME</A><DD>
<DT id="19"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="20"><A HREF="#lbAD">OPTIONS</A><DD>
<DL>
<DT id="21"><A HREF="#lbAE"><I>OBJECT</I>
</A><DD>
<DT id="22"><A HREF="#lbAF"><I>COMMAND</I>
</A><DD>
</DL>
<DT id="23"><A HREF="#lbAG">EXIT STATUS</A><DD>
<DT id="24"><A HREF="#lbAH">SEE ALSO</A><DD>
<DT id="25"><A HREF="#lbAI">REPORTING BUGS</A><DD>
<DT id="26"><A HREF="#lbAJ">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:11 GMT, March 31, 2021
</BODY>
</HTML>