# devlink(8) - man - phpman

[DEVLINK(8)](https://www.chedong.com/phpMan.php/man/DEVLINK/8/markdown)                                      Linux                                     [DEVLINK(8)](https://www.chedong.com/phpMan.php/man/DEVLINK/8/markdown)



## NAME
       devlink - Devlink tool

## SYNOPSIS
       **devlink** [ _OPTIONS_ ] { _dev_|_port_|_monitor_|_sb_|_resource_|_region_|_health_|_trap_ } { _COMMAND_ | **help** }


       **devlink** [ **-force** ] **-batch** _filename_



## OPTIONS
### -V --Version
              Print the version of the **devlink** utility and exit.


### -b -batch
              Read commands from provided file or standard input and invoke them.  First failure
              will cause termination of devlink.


### -force
              cution of the commands, the application return code will be non zero.


### -n --no-nice-names
              Turn off printing out nice names, for example netdevice ifnames instead of devlink
              port identification.


### -j --json
              Generate JSON output.


### -p --pretty
              When combined with -j generate a pretty JSON output.


### -v --verbose
              Turn on verbose output.


### -s --statistics
              Output statistics.


### -N -Netns
              Switches to the specified network namespace.


### -i --iec
              Print human readable rates in IEC units (e.g. 1Ki = 1024).


   _OBJECT_
       **dev**    - devlink device.


       **port**   - devlink port.


### monitor
              - watch for netlink messages.


       **sb**     - devlink shared buffer configuration.


### resource
              - devlink device resource configuration.


       **region** - devlink address region access


       **health** - devlink reporting and recovery


       **trap**   - devlink trap configuration


   _COMMAND_
       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 **show** (or **list** ) objects, but some objects do not
       allow all of these operations or have some additional commands. The **help** command is available
       for all objects. It prints out a list of available commands and argument syntax conventions.

       If no command is given, some default command is assumed.  Usually it is **list** or, if the ob‐
       jects of this class cannot be listed, **help**.


## EXIT STATUS
       Exit status is 0 if command was successful or a positive integer upon failure.


## SEE ALSO
       [**devlink-dev**(8)](https://www.chedong.com/phpMan.php/man/devlink-dev/8/markdown), [**devlink-port**(8)](https://www.chedong.com/phpMan.php/man/devlink-port/8/markdown), [**devlink-monitor**(8)](https://www.chedong.com/phpMan.php/man/devlink-monitor/8/markdown), [**devlink-sb**(8)](https://www.chedong.com/phpMan.php/man/devlink-sb/8/markdown), [**devlink-resource**(8)](https://www.chedong.com/phpMan.php/man/devlink-resource/8/markdown), **de**‐‐
       [**vlink-region**(8)](https://www.chedong.com/phpMan.php/man/vlink-region/8/markdown), [**devlink-health**(8)](https://www.chedong.com/phpMan.php/man/devlink-health/8/markdown), [**devlink-trap**(8)](https://www.chedong.com/phpMan.php/man/devlink-trap/8/markdown),


## REPORTING BUGS
       Report any bugs to the Network Developers mailing list **<<netdev@vger.kernel.org>>** where the de‐
       velopment and maintenance is primarily done.  You do not have to be subscribed to the list to
       send a message there.


## AUTHOR
       Jiri Pirko <<jiri@mellanox.com>>



iproute2                                     14 Mar 2016                                  [DEVLINK(8)](https://www.chedong.com/phpMan.php/man/DEVLINK/8/markdown)
