{"id":3146,"date":"2022-12-20T16:43:36","date_gmt":"2022-12-20T19:43:36","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/devlink-man8\/"},"modified":"2022-12-20T16:43:36","modified_gmt":"2022-12-20T19:43:36","slug":"devlink-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/devlink-man8\/","title":{"rendered":"DEVLINK (man8)"},"content":{"rendered":"<h1 align=\"center\">DEVLINK<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#EXIT STATUS\">EXIT STATUS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#REPORTING BUGS\">REPORTING BUGS<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">devlink \u2212 Devlink tool<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:23%; margin-top: 1em\"><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>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>devlink<\/b> [ <b>-force<\/b> ] <b>-batch<\/b> <i>filename<\/i><\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>\u2212V<\/b><\/i>, <b>&#8211;Version<\/b><\/p>\n<p style=\"margin-left:22%;\">Print the version of the <b>devlink<\/b> utility and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212b<\/b>, <b>\u2212batch<\/b> <FILENAME><\/p>\n<p style=\"margin-left:22%;\">Read commands from provided file or standard input and invoke them. First failure will cause termination of devlink.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>\u2212force<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>Don\u2019t 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>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212n<\/b>, <b>&#8211;no-nice-names<\/b><\/p>\n<p style=\"margin-left:22%;\">Turn off printing out nice names, for example netdevice ifnames instead of devlink port identification.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212j<\/b>, <b>&#8211;json<\/b><\/p>\n<p style=\"margin-left:22%;\">Generate JSON output.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212p<\/b>, <b>&#8211;pretty<\/b><\/p>\n<p style=\"margin-left:22%;\">When combined with -j generate a pretty JSON output.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212v<\/b>, <b>&#8211;verbose<\/b><\/p>\n<p style=\"margin-left:22%;\">Turn on verbose output.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212s<\/b>, <b>&#8211;statistics<\/b><\/p>\n<p style=\"margin-left:22%;\">Output statistics.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212N<\/b>, <b>\u2212Netns<\/b> <NETNSNAME><\/p>\n<p style=\"margin-left:22%;\">Switches to the specified network namespace.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212i<\/b>, <b>&#8211;iec<\/b><\/p>\n<p style=\"margin-left:22%;\">Print human readable rates in IEC units (e.g. 1Ki = 1024).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>OBJECT<\/i><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>dev<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"26%\">\n<p>&#8211; devlink device.<\/p>\n<\/td>\n<td width=\"52%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>port<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"26%\">\n<p>&#8211; devlink port.<\/p>\n<\/td>\n<td width=\"52%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>monitor<\/b><\/p>\n<p style=\"margin-left:22%;\">&#8211; watch for netlink messages.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>sb<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"58%\">\n<p>&#8211; devlink shared buffer configuration.<\/p>\n<\/td>\n<td width=\"20%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>resource<\/b><\/p>\n<p style=\"margin-left:22%;\">&#8211; devlink device resource configuration.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>region<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"49%\">\n<p>&#8211; devlink address region access<\/p>\n<\/td>\n<td width=\"29%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>health<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"49%\">\n<p>&#8211; devlink reporting and recovery<\/p>\n<\/td>\n<td width=\"29%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>trap<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"49%\">\n<p>&#8211; devlink trap configuration<\/p>\n<\/td>\n<td width=\"29%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>COMMAND<\/i> <br \/> 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>\n<p style=\"margin-left:11%; margin-top: 1em\">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>\n<h2>EXIT STATUS <a name=\"EXIT STATUS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Exit status is 0 if command was successful or a positive integer upon failure.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>devlink-dev<\/b>(8), <b>devlink-port<\/b>(8), <b>devlink-monitor<\/b>(8), <b>devlink-sb<\/b>(8), <b>devlink-resource<\/b>(8), <b>devlink-region<\/b>(8), <b>devlink-health<\/b>(8), <b>devlink-trap<\/b>(8),<\/p>\n<h2>REPORTING BUGS <a name=\"REPORTING BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Report any bugs to the Network Developers mailing list <b><netdev@vger.kernel.org><\/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>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Jiri Pirko <jiri@mellanox.com><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  devlink \u2212 Devlink tool <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,290,4],"class_list":["post-3146","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-devlink","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3146"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3146\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}